c# WCF LDAP Login Authentication -


I have seen some threads about LDAP but nothing is helping. I'm looking for the most basic thing.

I have a DoubleCF (C #) service and it is necessary that whoever calls that service should be a certified Windows user.

If the user is already locked (example: connecting to the desktop on the network), then the app lets him call, if he is not logged (remote connection) Window window or something like this should pop up and request your username and password.

To clarify this, when he is remotely calling the WCF service from the web application

I do not need any information on the user or any setting, the rule is , If it is a Windows network user, then it can be used.

I got an LDAP sample and this is what I found about:

  LdapConnection connection = new LdapConnection (host); Connection.AuthType = AuthType.Basic; Connection.Bind ();   

Now if the dam works, the user is authorized if the exception is thrown, then it is not.

Now I am pretty sure that I am wrong track, so any help is appreciated to fulfill my work.

Thanks

if it is not logged in (remote connection )

These will still be windows credentials.

I am looking at the WS-HTP binding. . This will allow you to pass credentials in the binding object. It does not matter if you are ASP.NSS Membership is used for authentication or simply Windows certification can handle it very easily.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -