Difference: LdapInfo (1 vs. 3)

Revision 32016-03-29 - StephenNickerson

Line: 1 to 1
 
META TOPICPARENT name="StephenNickersonSandbox"
-- StephenNickerson - 2016-03-01
Changed:
<
<
An example to find the homeDirectory, profilePath, and lastLogon attributes for a user's NEXUS account. (Replace the username 'snickers' with your own NEXUS username and XXXXX, below, for the sAMAccountName attribute to the username you wish to query.)
>
>
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.)
 
Changed:
<
<
ldapsearch -x -D snickers@NEXUS.UWATERLOO.CA -W -h lyra.uwaterloo.ca -b dc=nexus,dc=uwaterloo,dc=ca sAMAccountName=XXXXX dn homeDirectory profilePath lastLogon
>
>
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.

Revision 22016-03-04 - StephenNickerson

Line: 1 to 1
 
META TOPICPARENT name="StephenNickersonSandbox"
-- StephenNickerson - 2016-03-01
Changed:
<
<
An example to find the homeDirectory, profilePath, and lastLogon attributes for a user's account. (Replace the XXXXX, below, for the sAMAccountName attribute to the username you wish to query.)
ldapsearch -x -D snickers@NEXUS.UWATERLOO.CA -W -h lyra.uwaterloo.ca -b dc=nexus,dc=uwaterloo,dc=ca sAMAccountName=XXXXX dn homeDirectory profilePath lastLogon
>
>
An example to find the homeDirectory, profilePath, and lastLogon attributes for a user's NEXUS account. (Replace the username 'snickers' with your own NEXUS username and XXXXX, below, for the sAMAccountName attribute to the username you wish to query.)

ldapsearch -x -D snickers@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

Revision 12016-03-01 - StephenNickerson

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="StephenNickersonSandbox"
-- StephenNickerson - 2016-03-01

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

ldapsearch -x -D snickers@NEXUS.UWATERLOO.CA -W -h lyra.uwaterloo.ca -b dc=nexus,dc=uwaterloo,dc=ca sAMAccountName=XXXXX dn homeDirectory profilePath lastLogon
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback