Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active Directory OpenDSObject using GET to retreive data

Status
Not open for further replies.

olorean

Programmer
Dec 5, 2002
13
0
0
US
Can someone please help me with syntax? I cannot seem to get to the detail information for the entries in my Active Directory. I want the otherTelephone information for each userid in my active directory system. I am obviously missing something.

I have ou's of
ou=division
ou=company name inc.
ou=state
ou=MIS

I do not know how to build this properly. Any help would be appreciated. I get the message 'Login Was Successful'



set userObj = GetObject("LDAP:")

set X = userObj.OpenDSObject("LDAP://dc=local,dc=company,dc=com", "admin", "", 0)

If err.number = 0 Then
Response.Write("Login Was Successful: " & uid)
' ETollf = X.get(&quot;otherTelephone&quot;) <- DOES NOT WORK
' ETollf = X.get(&quot;fullName&quot;) <- DOES NOT WORK
end if

set userObj = nothing
set X = nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top