windows-authentication

Connect To SQL Server With Windows Authentication From A Linux Machine Through JDBC

偶尔善良 提交于 2019-11-27 20:13:43
I want to be able to connect to a SQL Server using jdbc and windows authentication. I saw some answers on the internet saying i should add the following property to the connection string: integratedSecurity=true; And also add sqljdbc_auth.dll To the java path. But this, as far as i understand applies only when i'm connecting from a Windows machine. When i try this on a Linux machine i get: java.sql.SQLException: This driver is not configured for integrated authentication My question is how do I do it from a Linux machine. Thanks Well, eventually I answer my own question: This is not possible

WebAPI CORS with Windows Authentication - allow Anonymous OPTIONS request

回眸只為那壹抹淺笑 提交于 2019-11-27 20:12:36
I have a WebAPI 2 REST service running with Windows Authentication. It is hosted separately from the website, so I've enabled CORS using the ASP.NET CORS NuGet package. My client site is using AngularJS. So far, here's what I've been through: I didn't have withCredentials set, so the CORS requests were returning a 401. Resolved by adding withCredentials to my $httpProvider config. Next, I had set my EnableCorsAttribute with a wildcard origin, which isn't allowed when using credentials. Resolved by setting the explicit list of origins. This enabled my GET requests to succeed, but my POST issued

Enabling PUT on IIS 7.5 for an ASHX handler using Windows Authentication

我是研究僧i 提交于 2019-11-27 19:29:51
问题 I have an ASP.NET (.NET 4) website that uses http PUT for an .ashx generic handler. The PUT call originates from a Silverlight front end. All works in VS 2010 on my local machine (Cassini web server). Then I deployed to an IIS7.5 Win Server 2008 R2 box. The silverlight/website is fine, but PUT calls to the .ashx handler are met with a Windows Login Prompt. This is a local intranet so Windows Authentication (with NTLM & Negotiate providers) is the only enabled authentication. Then I read this:

Cross Domain SQL Server Logins Using Windows Authentication

女生的网名这么多〃 提交于 2019-11-27 19:22:26
I have a SQL Server 2005 named instance using Windows Authentication with domain groups serving as logins. The domain structures are as follows: Forest1 Forest2 / \ | Domain1 Domain2 Domain3 Objects are organized in the following domains: Forest1.Domain1 Users Global Groups Forest1.Domain2 SQL Server Instance Domain Local Groups (serving as Logins) Forest2.Domain3 Users Global Groups All my users exist in Domain1 and Domain3 but the SQL Server box exists in Domain2 . As such, my logins are domain groups in Domain2 . When a user in Domain1 is added to a domain local group in Domain2 and

using windows authentication with active directory groups as roles

本小妞迷上赌 提交于 2019-11-27 19:00:38
I've read several questions on this topic, such as here , here , here and here ; but none have provided a working solution in my case. What I want to do: Implement Windows authentication for a web app that is only used by our own employees. This way they should not need to log into the app, but already be authenticated by way of having logged into windows. Also, I need to restrict certain areas of the app, based on Active Directory Security Groups that the user may be assigned to. So I want to be able to decorate Controllers / Actions with [Authorize(Roles="SomeRole")] What I've tried: I have

Does an IIS 7.5 web app with windows authentication require end users to have file permissions?

十年热恋 提交于 2019-11-27 18:10:55
Short version: For IIS 7.5 web applications with Windows Authentication does the end user need to have Read file access? Long version: I have an intranet ASP.NET web app that uses windows authentication. It's installed at dozens of different companies and normally the authentication works fine: users navigate to the site e.g. http://appserver/MyApp , the app recognizes who they're logged in as and displays pages accordingly. I just installed it at a new client and encountered a problem: When connecting e.g. to http://appserver/MyApp I'm prompted for windows credentials but after entering them

SQL Server Management Studio 2008 Runas user on different domain over VPN

扶醉桌前 提交于 2019-11-27 17:52:32
I am currently trying to run SQL Server Management Studio 2008 as a user who is on a different domain. I noticed in other threads that running the following command from a batch script will do this however it doesn't seem to work for me. runas /netonly /user:DOMAIN\USER "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe" I am asked for my password, the Login screen appears however the Windows Authentication username and password are still incorrectly the currently logged in impersonated user on the local Domain. Attempting to connect to the database on the other

Impersonate Domain User with Integrated Pipeline

时光总嘲笑我的痴心妄想 提交于 2019-11-27 17:32:30
This is a question that continues to haunt me... In an local Intranet environment, are we doomed to use "Classic" pipeline mode in our App Pool if we want to use Impersonate our Windows domain users, or is there a new way to declaratively "run as" them (so-to-speak)? My goal is to use Windows Authentication for local web applications on my Intranet so users can authenticate and run apps under their active directory account (principle). Every time I try this (Using the NetworkService identity of course), I get this error: Thanks! ;) I wrote a small app to display the current user's network

Database + Windows Authentication + Username/Password?

蹲街弑〆低调 提交于 2019-11-27 14:31:33
问题 I have always thought that in order to connect to SQL server using windows authentication with explicitly specified credentials, you must LogonUser, Impersonate, then connect. It seems to me that this link suggests that it's possible to connect to SQL server without all this hassle, simply by specifying "uid=...;pwd=..." in connection string. I tested this method just to be sure it doesn't work, and - lo and behold - it didn't. If that blog post wasn't on msdn.com, I would have just dismissed

Impersonate a Windows or Active Directory user from a different, untrusted domain

拜拜、爱过 提交于 2019-11-27 13:53:24
问题 I need to authenticate against a remote SQL Server using Windows Authentication. The remote SQL Server is running in another domain that does not have a trust relationship with the domain I'm currently logged into via Windows. I cannot use SQL Server authentication since the SQL Server is configured to only trust domain authentication. Windows itself allows this type of impersonation through the user interface: I've used WindowsImpersonationContext class from System.Security.Principal before,