Overview#

LDAPSEARCH is used to represent many different subjects. Here are some of the more common:

Command line utility#

LDAPSEARCH is a command line utility that is usually supplied with most LDAP Servers implementations and LDAP SDKs. Often it is a good idea to utilize the provided utility when troubleshooting issues with LDAP searches as the server vendor will know how to reproduce the issue.

Which LDAPSEARCH#

We have noticed that some servers may provide more than one ldapsearch utility we show are utilizing in most of our examples is Novell's ldapsearch. For some further information on Which LDAPSEARCH.

LDAP search Active Directory#

Microsoft does not provide a LDAPSEARCH utility, but does provide some ways you can perform an LDAP Search

Example LDAPSEARCH#

Here we show How To do a LDAPSEARCH.

Be careful, you may get more info back than you believe you asked for!

ldapsearch -b "uid=isACTIVE,o=test,dc=com" -s base -D cn=admin,ou=administration,dc=willeke,dc=com -w novell "(objectclass=*)" + *

version: 2

#
# filter: (objectclass=*)
# requesting: + *
#

# isACTIVE,test,com
dn: uid=isACTIVE,o=test,dc=com
modifiersName: cn=Admin,ou=administration,dc=willeke,dc=com
creatorsName: cn=Admin,ou=administration,dc=willeke,dc=com
uid: isACTIVE
GUID:: xrWNAD8xWUqRE2JQYBjLSw==
givenName: IS
revision: 4
sn: ACTIVE
publicKey:: AQAAAAQAAAAcAFwAAADSABwAQAB2AAAAAABPAD0AdABlAHMAdAAuAGQAYwA9AGMAbw
 BtAAAAdQBuAGkAcQB1AGUASQBEAD0AaQBzAEEAQwBUAEkAVgBFAC4ATwA9AHQAZQBzAHQALgBkAGM
 APQBjAG8AbQAAAAEAAAADAAEAbABCVgQAMS4wAEJDAQADQkEBADBCTAIApAFOTjUA5dhHgUtH8B0T
 t3BehIjXLy4Wt+0npFS7awwBWKEnl4IoxR07Gr1MUY290r1gz6z9Rms5oAlFTgMAAQABTUEIAKst9
 iLvc842ZABQVVJTQUY=
objectClass: Top
objectClass: Person
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: ndsLoginProperties
cn: isACTIVE
ACL: 2#subtree#uid=isACTIVE,o=test,dc=com#[All Attributes Rights]
ACL: 6#entry#uid=isACTIVE,o=test,dc=com#loginScript
ACL: 2#entry#[Public]#messageServer
ACL: 2#entry#[Root]#groupMembership
ACL: 6#entry#uid=isACTIVE,o=test,dc=com#printJobConfiguration
ACL: 2#entry#[Root]#networkAddress
subschemaSubentry: cn=schema
federationBoundary: t=WILLEKETREE
structuralObjectClass: inetOrgPerson
createTimestamp: 20080114140147Z
modifyTimestamp: 20080114140148Z
subordinateCount: 0
entryFlags: 0
localEntryID: 33003

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

More Information#

There might be more information for this subject on one of the following:

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-39) was last changed on 07-Jun-2013 11:45 by jim