Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello buddy

I am creating a Web application (MVC4). I intend to use windows logon information for LDAP authentication. Imaging that: User logon windows with username and password, after that click a link to access web application. Web application needs to be authenticated with LDAP to check permission. Can we do this way? your feedback will be very appriciated!

Dung.NV
Posted

Yes it is possible. Refer this Link for more details
 
Share this answer
 
Thanks Madhu Nair!
But my concern is not authentication method on LDAP. What i want is how to get UserName (Window Logon) and DomainName (Machine where the http Request send from) using C# (MVC). I have searched and used method like: Environment.UserDomainName, or string strUserName=HttpContext.Request.LogonUserIdentity.Name; but the result returned is the Server information (User Logon Server, Domain Name Server Machine).
How to get client logon information?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900