Page tree

Wenn sie zu dieser Seite Bemerkungen haben klicken sie bitte hier: Kontaktformular

Skip to end of metadata
Go to start of metadata

Installation

ldapsearch ist im Paket "ldap-utils" enthalten

apt-get install ldap-utils

 

Aufruf:

root@lemaker:~# ldapsearch -h lemaker.fritz.box -p 389 -U administrator -W -b "dc=lemaker,dc=fritz,dc=box" -D "cn=user" "(CN=ubuntu)"
Enter LDAP Password: 
SASL/NTLM authentication started
SASL username: administrator
SASL SSF: 0
# extended LDIF
#
# LDAPv3
# base <dc=lemaker,dc=fritz,dc=box> with scope subtree
# filter: (CN=ubuntu)
# requesting: ALL
#
# ubuntu, Computers, lemaker.fritz.box
dn: CN=ubuntu,CN=Computers,DC=lemaker,DC=fritz,DC=box
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
objectClass: computer
cn: ubuntu
instanceType: 4
whenCreated: 20160124123233.0Z
uSNCreated: 3769
name: ubuntu
objectGUID:: uY2jUmH+lEuDyGn0UT4npw==
badPwdCount: 0
codePage: 0
countryCode: 0
badPasswordTime: 0
lastLogoff: 0
lastLogon: 0
objectSid:: AQUAAAAAAAUVAAAAfm5ibU6fUaF7AQEwTwQAAA==
accountExpires: 9223372036854775807
logonCount: 0
sAMAccountName: ubuntu$
objectCategory: CN=Computer,CN=Schema,CN=Configuration,DC=lemaker,DC=fritz,DC=box
sAMAccountType: 805306369
isCriticalSystemObject: FALSE
primaryGroupID: 515
userAccountControl: 69632
dNSHostName: ubuntu.fritz.box
servicePrincipalName: HOST/UBUNTU
servicePrincipalName: HOST/ubuntu.fritz.box
pwdLastSet: 130996160180000000
whenChanged: 20160210221338.0Z
uSNChanged: 3985
distinguishedName: CN=ubuntu,CN=Computers,DC=lemaker,DC=fritz,DC=box

# search reference
ref: ldap://lemaker.fritz.box/CN=Configuration,DC=lemaker,DC=fritz,DC=box

# search reference
ref: ldap://lemaker.fritz.box/DC=DomainDnsZones,DC=lemaker,DC=fritz,DC=box

# search reference
ref: ldap://lemaker.fritz.box/DC=ForestDnsZones,DC=lemaker,DC=fritz,DC=box

# search result
search: 4
result: 0 Success

# numResponses: 5
# numEntries: 1
# numReferences: 3
root@lemaker:~#
  • No labels