
Understanding LDAP Services for Novell eDirectory
341
n
ov
do
cx (e
n)
11
Ju
ly 20
08
Examples
The following command:
ldapsearch "cn=mark smith" cn telephoneNumber
will perform a subtree search (using the default search base) for entries with a commonName of
mark smith. The commonName and telephoneNumber values will be retrieved and printed to
standard output. The output might look like the following if two entries are found:
cn=Mark D Smith, ou="College of Literature, Science, and the Arts", ou=Students,
ou=People, o=University of Michigan, c=US
cn=Mark Smith
cn=Mark David Smith
cn=Mark D Smith 1
cn=Mark D Smith
telephone1 313 930-9489
cn=Mark C Smith, ou=Information Technology Division, ou=Faculty and Staff,
ou=People,o=University of Michigan, c=US
cn=Mark Smith
cn=Mark C Smith 1
cn=Mark C Smith
telephone1 313 764-2277
The command:
ldapsearch -u -t "uid=mcs" jpegPhoto audio
will perform a subtree search using the default search base for entries with user IDs of mcs. The
user-friendly form of the entry’s DN will be output after the line that contains the DN itself, and the
jpegPhoto and audio values will be retrieved and written to temporary files. The output might look
like the following if one entry with one value for each of the requested attributes is found:
cn=Mark C Smith, ou=Information Technology Division, ou=Faculty and Staff,
ou=People, o=University of Michigan, c=US
Mark C Smith, Information Technology Division, Faculty and Staff, People,
University of Michigan, US
audio=/tmp/ldapsearch-audio-a19924
jpegPhoto=/tmp/ldapsearch-jpegPhoto-a19924
The following command will perform a one-level search at the c=US level for all organizations
whose organizationName begins with university.:
ldapsearch -L -s one -b "c=US" "o=university*" o description
Summary of Contents for EDIRECTORY 8.8 SP3
Page 4: ...novdocx en 11 July 2008...
Page 72: ...72 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 120: ...120 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 132: ...132 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 190: ...190 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 238: ...238 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 262: ...262 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 288: ...288 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 320: ...320 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 348: ...348 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 388: ...388 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 492: ...492 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 586: ...586 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 599: ...The eDirectory Management Toolbox 599 novdocx en 11 July 2008 Click Help for details...
Page 600: ...600 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Page 614: ...614 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...