problem connecting to Active Directory server in C# .NET -


I am currently writing some software in C #, connecting to an AD server and getting some user details is. When I connect using the code given below, it works against most AD servers which I connect but there are a couple where it is accompanied by an error of "logon failure: unknown user name or incorrect password" Fails The server name / credentials I am using are definitely correct because I have tested them with the LDAP browser and the AD server is using standard security (port 389 etc.). Can anyone offer any advice?

Cheers

Tim

  DirectoryInterityD = new directoryInterity ("LDAP: //" + domain, administration_design, admin_password); Try {object x = d.NativeObject; } Hold {throw; }  "

I have programming in the past .net / AD similar problems. I have found, is useful to use an LDAP viewer to see if I can connect to some servers, etc. In this way, I can at least decide that this one. NET error (probably my code), a credential error etc.

I use the free / light version of Softer's LDAP viewer () However, I'm sure there are many more people there to choose from. If you try someone listed here, do not forget to download 'LDAP Browser' and do not 'LDAP Administrator'. The browser is a free one.

Try using the LDAP browser / viewer to connect to the same LDAP path, in which you are having difficulty in code. This will be determined as a minimum step whether it is a .NET / code problem. If you can not connect through the browser, then port options, such as port, domain (FQDN), etc. can be useful to play with.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -