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.CAdn: CN=X XXXX (XXXXX),OU=Users,OU=Computer Science,OU=Math,OU=Academic,OU=People,DC=NEXUS,DC=UWATERLOO,DC=CAhomeDirectory: \\smb-nexus.student.cs.uwaterloo.ca\XXXXXlastLogon: 131015071694037164profilePath: \\smb-nexus.student.cs.uwaterloo.ca\XXXXX\windows2000# search resultsearch: 2result: 0 Success# numResponses: 2# numEntries: 1