Examples of LDAP URLs
610
Red Hat Directory Server Administrator’s Guide • May 2005
ldap://ldap.example.com/dc=example,dc=com
❍
Because no port number is specified, the standard LDAP port number
(
389
) is used.
❍
Because no attributes are specified, the search returns all attributes.
❍
Because no search scope is specified, the search is restricted to the base
entry
dc=example,dc=com
.
❍
Because no filter is specified, the directory uses the default filter
(
objectclass=*
).
Example 2:
The following LDAP URL retrieves the
postalAddress
attribute of the entry with
the DN
dc=example,dc=com
:
ldap://ldap.example.com/dc=example,dc=com?postalAddress
❍
Because no search scope is specified, the search is restricted to the base
entry
dc=example,dc=com
.
❍
Because no filter is specified, the directory uses the default filter
(
objectclass=*
).
Example 3:
The following LDAP URL retrieves the
cn
,
, and
telephoneNumber
attributes
of the entry for Barbara Jensen:
ldap://ldap.example.com/cn=Barbara%20Jensen,dc=example,dc=com?c
n,mail,telephoneNumber
❍
Because no search scope is specified, the search is restricted to the base
entry
cn=Barbara Jensen,dc=example,dc=com
.
❍
Because no filter is specified, the directory uses the default filter
(objectclass=*)
.
Example 4:
The following LDAP URL specifies a search for entries that have the surname
Jensen
and are at any level under
dc=example,dc=com
:
ldap://ldap.example.com/dc=example,dc=com??sub?(sn=Jensen)
❍
Because no attributes are specified, the search returns all attributes.
❍
Because the search scope is
sub
, the search encompasses the base entry
dc=example,dc=com
and entries at all levels under the base entry.
Summary of Contents for DIRECTORY SERVER 7.1
Page 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Page 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Page 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...