randyt200
asked on
Finding Users RDN
How do I search AD to find out a users RDN? I want to create a vbscript that goes out and finds a users RDN. Problem is that the user may be in a OU or a CN (will be used to query different users)
I know I need to bind to AD, then query the user. Do I have to go through the GC? or can i just do an LDAP call?
I know I need to bind to AD, then query the user. Do I have to go through the GC? or can i just do an LDAP call?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/iadsuser.asp details the properties and methods of IADsUser, including those it inherits from IADs (such as Name and Get_Name).