LDAP vs. Active Directory Attributes

  • Thread starter Thread starter Keith Jakobs, MCP
  • Start date Start date
K

Keith Jakobs, MCP

HELP!!!!

VB.NET has been a thorn in my side, but trying to use the
System.DirectoryServices namespace has to be one of the most ridiculously
confusing classes I have EVER encountered!!!!

Am I the only one trying to talk to ADSI using VB.NET??? No one seems to
have any sample code for using this namespace except in C#!!!

This should be a simple question....

When referring to the 'Properties' collection of a DirectoryEntry object,
you use, from what I can tell, the LDAP display name (please correct me if I
am wrong)....
However, the Platform SDK from Microsoft references all the Active Directory
Attributes using the CN.

So my question is, if I HAVE the LDAP display name, how the heck do I figure
out what Active Directory CN it correlates to????

Please Help and thank you in advance

Keith C. Jakobs, MCP
 
¤ HELP!!!!
¤
¤ VB.NET has been a thorn in my side, but trying to use the
¤ System.DirectoryServices namespace has to be one of the most ridiculously
¤ confusing classes I have EVER encountered!!!!
¤
¤ Am I the only one trying to talk to ADSI using VB.NET??? No one seems to
¤ have any sample code for using this namespace except in C#!!!
¤
¤ This should be a simple question....
¤
¤ When referring to the 'Properties' collection of a DirectoryEntry object,
¤ you use, from what I can tell, the LDAP display name (please correct me if I
¤ am wrong)....
¤ However, the Platform SDK from Microsoft references all the Active Directory
¤ Attributes using the CN.
¤
¤ So my question is, if I HAVE the LDAP display name, how the heck do I figure
¤ out what Active Directory CN it correlates to????
¤

Not sure exactly what you're trying to do, but if you want the distinguished name of the AD object
then that would be the Path property of the DirectoryEntry class. The CN of the object is the Name
property of the DirectoryEntry class.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Back
Top