windows-authentication

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

房东的猫 提交于 2019-12-17 15:24:31
问题 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

NTLM authentication on specific route in ASP.NET Core

谁说胖子不能爱 提交于 2019-12-17 14:27:13
问题 Trying to implement subject in a test environment. .UseWebListener(options=> { options.ListenerSettings.Authentication.Schemes = AuthenticationSchemes.NTLM | AuthenticationSchemes.Negotiate; options.ListenerSettings.Authentication.AllowAnonymous = true; }) And app.UseWhen(context => context.Request.Path.StartsWithSegments("/ntlm"), builder => builder.UseCookieAuthentication(new CookieAuthenticationOptions() { AutomaticAuthenticate = true, AutomaticChallenge = true, LoginPath = "/Main/Login",

Connecting to MS SQL Server with Windows Authentication using Python?

两盒软妹~` 提交于 2019-12-17 10:23:31
问题 How do I connect MS SQL Server using Windows Authentication, with the pyodbc library? I can connect via MS Access and SQL Server Management Studio, but cannot get a working connection ODBC string for Python. Here's what I've tried (also without 'Trusted_Connection=yes' ): pyodbc.connect('Trusted_Connection=yes', driver='{SQL Server}', server='[system_name]', database='[databasename]') pyodbc.connect('Trusted_Connection=yes', uid='me', driver='{SQL Server}', server='localhost', database='

Native Library sqljdbc_auth.dll already loaded in another classloader

主宰稳场 提交于 2019-12-17 06:10:32
问题 I have 2 java web apps that need to connect to SQL Server Database using Windows Integrated Authentication. The first one that is loaded works fine but the second one throws the exception: Native Library sqljdbc_auth.dll already loaded in another classloader The error above occurs when I place the sqljdbc_auth.dll in one of the folders: C:\WINDOWS\system32\ C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\ If I place the sqljdbc_auth.dll in one of the folders below: /WEB-INF/lib

Windows Integrated Authentication in node.js Client

泪湿孤枕 提交于 2019-12-17 05:45:07
问题 When using node.js as a client, is it possible to connect to a server using Windows integrated authentication (e.g. when connecting to IIS)? My searches for this only turn up results where node.js is used as a server. 回答1: 2015 Update: There are now some modules that implement Windows-integrated authentication. node-sspi uses SSPI (the Windows security API) to handle the server side of things, but does not do client auth. There are several client implementations such as http-ntlm, but they

ASP.NET MVC3 and Windows Auth on IIS keeps redirecting to /Account/Login

瘦欲@ 提交于 2019-12-17 05:38:43
问题 I'm running MVC3 and a windows auth web application. When I deploy to IIS6 it runs great until I hit a page that requires authentication. It then is auto-redirecting to /Account/Login when I have no trace of that in my application and my web.config is configured to windows auth. Any ideas? Here is my entire web.config file: http://pastie.org/1568510 回答1: Check whether you have WebMatrix.Data.dll and/or WebMatrix.WebData.dll deployed in the bin directory of your application. If they are there

ASP.NET Windows Authentication logout

坚强是说给别人听的谎言 提交于 2019-12-17 03:04:09
问题 How do you logout when using Windows authentication in ASP.NET like this web.config? <authentication mode="Windows" /> I've already tried the following unsuccessfully. It redirects, but does not log out the user. void logoutButton_Click(object sender, EventArgs e) { HttpContext.Current.Session.Clear(); HttpContext.Current.Session.Abandon(); ViewState.Clear(); FormsAuthentication.SignOut(); Response.Redirect("/"); } Background Info: I have to use Windows authentication because I need to

Understanding WCF Windows Authentication

孤人 提交于 2019-12-17 02:49:05
问题 I have a service with windows authentication. Using the following code, I can get the Windows Identity of the user who (by using the client) consumes the service. String currentUser = OperationContext.Current.ServiceSecurityContext.WindowsIdentity.Name; The configuration in the server is: <binding name="messageSecurity"> <security mode="Message"> <message clientCredentialType="Windows"/> </security> </binding> I also read that in the server, it is using Kerberos for this to work. Now, I am

Using Windows Authentication with ASP.NET MVC

泪湿孤枕 提交于 2019-12-14 04:16:20
问题 I am sure this is a basic answer, but my search powers are not helping me today. I have an ASP.NET MVC 2 (.NET 3.5) application. It is hosted on IIS 6. For the sake of this question I have two urls. http://example.com/ http://example.com/admin I want admin to be available to any user on the domain, and the root to be available to all users. The server is on the domain but the domain is example1.com, so they are not the same. Since this is ASP.NET MVC there is no Admin folder to set rights on.

Why does Entity Framework with Windows Authentication not pass my credentials to SQL Server?

醉酒当歌 提交于 2019-12-14 04:10:41
问题 I'm trying to get an MVC 4 intranet site with Entity Framework 5 working on web server running IIS6 but Windows Authentication/Integrated Security is not working right because the error says Stack Trace: [SqlException (0x80131904): Login failed for user 'EASTDOMAIN\WEBDEV2$'.] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +5104926 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +260 System.Data.SqlClient.TdsParser.Run