ADsPath
Gets the LDAP path to the Active Directory user object.
Syntax
string ADsPath {get;}
Property value
The LDAP path to the Active Directory user object.
Discussion
The basic format for the LDAP path is:
LDAP://[<domain>/]<attr>=<name>…,dc=<domain part>…
For example, if the user object is john.doe in the organizational unit consultants and the domain is acme.com, the LDAP path to the object looks like this:
LDAP://cn=john.doe,ou=consultants,dc=acme,dc=com
Example
The following code sample illustrates using ADsPath in a script:
... 'Get the zone object Set objZone = cims.GetZone("ajax.org/UNIX/Zones/pilot") 'Get the Active Directory user object set objUser = cims.GetUser("ajax.org/Users/pat.hu") 'Get the UNIX profile for the user profile = objUser.UnixProfiles 'Display the LDAP path for the user wScript.Echo “LDAP Path: “ & profile.ADsPath ...