Reputation: 3316
We are basically using this line of code to authenticate and/or retrieve informations from LDAP serveur in our web solutions:
DirectoryEntry dir = new DirectoryEntry( "LDAP://SRV-auth-01.adnav.qc.ca:636" /*db.getLDAP()*/, user + "@adnav.qc.ca", password);
Is this a secured connection? One of my coworkers was worried that if we use this it wouldn't be totally safe, not as safe as if we managed to use put an S at the end of LDAP
like so "LDAPS://SRV-auth-01.adnav.qc.ca:636"
it is working without the S though... Has someone ever managed to use an LDAPS
connection with DirectoryEntry
class?
related : How to connect to Active Directory via LDAPS in C#?
Upvotes: 0
Views: 274
Reputation: 506
636 is a ssl only port, if this works using only "LDAP://SRV-auth-01.adnav.qc.ca:636" then it's an ssl connection, and thus the prefix "ldap://" isn't used anyway.
Upvotes: 1