-- StephenNickerson - 2016-03-01

An example to find the homeDirectory, profilePath, and lastLogon attributes for a user's NEXUS account. (Replace the username 'your-user-id' with your own NEXUS username and XXXXX, below, for the sAMAccountName attribute to the username you wish to query.)

ldapsearch -x -D your-user-id@NEXUS.UWATERLOO.CA -W -h lyra.uwaterloo.ca -b dc=nexus,dc=uwaterloo,dc=ca sAMAccountName=XXXXX dn homeDirectory profilePath lastLogon

You will be prompted for your NEXUS credentials. Once you have suplied the correct password you should receive information that looks like the following.

# extended LDIF
# LDAPv3
# base <dc=nexus,dc=uwaterloo,dc=ca> with scope subtree
# filter: sAMAccountName=XXXXX
# requesting: dn homeDirectory profilePath lastLogon
# X XXXX (XXXXX), Users, Computer Science, Math, Academic, People, NEXUS.UWATERLOO.CA
dn: CN=X XXXX (XXXXX),OU=Users,OU=Computer Science,OU=Math,OU=Academic,OU=People,DC=NEXUS,DC=UWATERLOO,DC=CA
homeDirectory: \\smb-nexus.student.cs.uwaterloo.ca\XXXXX
lastLogon: 131015071694037164
profilePath: \\smb-nexus.student.cs.uwaterloo.ca\XXXXX\windows2000
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
Topic revision: r3 - 2016-03-29 - StephenNickerson
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback