windows-authentication

Get username of client who connected to web server

℡╲_俬逩灬. 提交于 2019-12-21 04:22:08
问题 Here's the scenario. I am code running on a web server in an AD domain. Some client has connected to me. How do I get that client's username, without having the client fill out a form in their browser? Must use Java technologies on the web server side. edit: I ended up using the Spring Security Negotiate Filter as described at the below link. There is a tutorial available. Using request.getPrincipal().getName() from within a servlet gives the username. http://waffle.codeplex.com/ 回答1: You

Custom Windows Authentication Package

我的梦境 提交于 2019-12-21 04:12:19
问题 So, here is the scenario. I am developing a logon system in windows 7. I have created a Credential Provider, containing one Credential. The Credential has three input fields, username, password, and PIN. From what I have learned the documentation (CMIIW) is that when we fill in the fields and click logon, WINLOGON will retrieve the username and password, and send it to LSA by calling LSALogonUser() to authenticate. LSA then will try negotiate with Authentication Package KERBEROS (for remote

Silverlight RIA Services - how to do Windows Authentication?

╄→尐↘猪︶ㄣ 提交于 2019-12-20 14:45:11
问题 I am building my first Silverlight 3 + RI Services application and need some help. It will be deployed in an controlled corporate intranet, 100% windows clients. I have started from the Silverlight Business Application template. These are my requirements: Upon launch the application needs to recognize the currently logged-in user. The application needs to have access to other properties of the user in AD, such as email, full name, and group membership. Group membership is used to grand

windows authenticated website prompt for firefox but doesn't for internet explorer

感情迁移 提交于 2019-12-20 10:55:39
问题 i added windows authentication on my website to track user names. For IE it works fine and is seemsless but it prompts for windows login for user using firefox. any ideas? 回答1: You'll need to enable NTLM authentication in Firefox. Instructions here. Open Firefox and type “about:config” in the address bar. (without the quotes of course) In the ‘Filter’ field type the following “network.automatic-ntlm-auth.trusted-uris” Double click the name of the preference that we just searched for Enter the

Network Authentication when running exe from WMI

那年仲夏 提交于 2019-12-20 10:37:38
问题 I have a C# exe that needs to be run using WMI and access a network share. However, when I access the share I get an UnauthorizedAccessException. If I run the exe directly the share is accessible. I am using the same user account in both cases. There are two parts to my application, a GUI client that runs on a local PC and a backend process that runs on a remote PC. When the client needs to connect to the backend it first launches the remote process using WMI (code reproduced below). The

Windows Authentication not working in IIS Express, debugging with Visual studio 2013, Windows 8

十年热恋 提交于 2019-12-20 10:30:03
问题 I just upgraded my application from Visual studio 2012 to Visual studio 2013. My windows authentication is not working any more. It is giving me below error. HTTP Error 401.2 - Unauthorized You are not authorized to view this page due to invalid authentication headers. In visual studio there is option to select authentication from website properties itself. So I disabled anonymous access and enable windows authentication but it is asking me for username and password as below popup. Even if I

ASP.NET Web API Self-Host with Windows Authentication

戏子无情 提交于 2019-12-20 08:43:04
问题 I am trying to use the ASP.NET Web API Self-Host option with Windows authentication so I can determine the logged on user and ultimately accept or reject the user based on their identity. Here is my console application code: using System; using System.Web.Http; using System.Web.Http.SelfHost; namespace SelfHost { class Program { static void Main(string[] args) { var config = new HttpSelfHostConfiguration("http://myComputerName:8080"); config.UseWindowsAuthentication = true; config.Routes

ASP.NET Web API Self-Host with Windows Authentication

倖福魔咒の 提交于 2019-12-20 08:42:01
问题 I am trying to use the ASP.NET Web API Self-Host option with Windows authentication so I can determine the logged on user and ultimately accept or reject the user based on their identity. Here is my console application code: using System; using System.Web.Http; using System.Web.Http.SelfHost; namespace SelfHost { class Program { static void Main(string[] args) { var config = new HttpSelfHostConfiguration("http://myComputerName:8080"); config.UseWindowsAuthentication = true; config.Routes

MVC 4 application goes to login page first using Windows auth when run

断了今生、忘了曾经 提交于 2019-12-20 07:23:02
问题 I am currently developing a project that will use Windows authentication to authorize users and set their specific permissions. However, every time I run the program to test, the default login page created by Visual Studio when I created the project (/Account/Login) always appears first, rather than going to Home/Index. The URL is usually http://localhost:50848/Account/Login?ReturnUrl=%2fViews%2fHome%2fIndex.cshtml when I start it up, rather than just http://localhost:50848 . I should also

Cannot connect anymore to local SQL Server 2008 database

天涯浪子 提交于 2019-12-20 03:51:31
问题 Today I went to connect to my local database but I cannot connect anymore for unknown reasons. I typed in (local) and used Windows authentication like I always do yet I get this error. Cannot connect to localhost. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes