I am using the following code to connect to aLDAP server using SSL.
The following code will work only if i turn off the SSL flag. Can any
one please tell me what am i missing here to do a SSL connection.

Every time the findAll is called it is saying that

the server is not operational

ldapUrl="LDAP://x500.bund.de:636/l=Neutral,ou=BMI,o=Bund,c=DE";

DirectoryEntry dEntry =null;

// for anonymous login. x500.bund.de supports this.
dEntry = new DirectoryEntry(ldapUrl, null, null,
            AuthenticationTypes.SecureSocketsLayer |
AuthenticationTypes.Secure);

DirectorySearcher search = new DirectorySearcher(dEntry);

search.Filter = "((objectClass=*))";
search.Filter = searchQuery;
SearchResultCollection scl = search.FindAll();

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to