Hello everyone, I have a problem to access some properties (but it works for some of them) of the containers of the Active Directory. That is because I can't use the IADs methods because my VisualSudio.NET PRO doesn't recognize that type of data (type 'IADs'
not defined). Anyone has an idea ? Here is the code : ------------------------------------------------------------------------------------- Dim obj 'As IADs //// This is the undefined type... obj = dso.OpenDSObject("LDAP://EUCLIDE/CN=LECOMTE Christophe,CN=Users,DC=myFIRM,DC=com",
"lecomte_c", "MyPASSwd", 1) Dim test As String test = obj.mail //// This works good but this doesn't : test = obj. Response.Write(test) ---------------------------------------------------------------------------------------- Maybe I need to add the good library
to my VisualStudio project ? I don't know really... Thank U all, > Christophe L
You need to add a reference to activeds.tlb in your project. Use Project > Add Reference and select from the COM tab. Alternatively, you can try to convert your code to System.DirectoryServices. MSDN has a nice reference and code snippets for common tasks:
See it here
kiki31000
Member
30 Points
6 Posts
Connecting to Active Directory (LDAP & ADSI)
Aug 19, 2003 02:08 PM|LINK
dunnry
Star
9098 Points
1806 Posts
Re: Connecting to Active Directory (LDAP & ADSI)
Aug 19, 2003 05:34 PM|LINK
Weblog
The Book
LDAP Programming Help