Need help connecting to Active Directory SSL
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
hi Guys, I am having LDAP troubles :-( Im trying to connect to AD by using the code below, but I get error messages saying the "server is not operational" !!!!
DirectoryEntry entryAgent = new DirectoryEntry("LDAP://localhost:636/", "username", "pswrd", AuthenticationTypes.SecureSocketsLayer | AuthenticationTypes.Secure); DirectorySearcher searchAgent = new DirectorySearcher(entryAgent); searchAgent.Filter = "(objectClass=*)"; foreach (SearchResult result in searchAgent.FindAll()) { Response.Write(result.GetDirectoryEntry().Name.ToString()); }
Can anyone tell me what is it that Im not doing right?? Thanks in advance!!Nila "...for that, I will need a large cup of coffee and a brand muffin!" -Samantha Bea