![Netscape NETSCAPE DIRECTORY SERVER 6.02 Administrator'S Manual Download Page 135](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-02/netscape-directory-server-6-02_administrators-manual_1674673135.webp)
Using Referrals
Chapter
3
Configuring Directory Databases
135
Creating Smart Referrals From the Command Line
Use the
ldapmodify
command-line utility to create smart referrals from the
command line.
To create a smart referral, create the relevant directory entry and add the
Referral
object class. This object class allows a single attribute,
ref
. The
ref
attribute is
expected to contain an LDAP URL.
For example, add the following to return a smart referral for an existing entry,
uid=bjensen
:
dn: uid=bjensen,ou=people,dc=example,dc=com
objectclass: referral
ref:
ldap://directory.europe.example.com/cn=babs%20jensen,ou=people,
l=europe,dc=example,dc=com
To add the entry
uid=ssarette,ou=people,dc=example,dc=com
with a referral
to
directory.europe.example.com
, you would include the following in your
LDIF file before importing:
dn: uid=ssarette, ou=people, dc=example,dc=com
objectclass: top
objectclass: person
objectclass: organizationalperson
objectclass: inetOrgPerson
objectclass: referral
cn: somi sarette
sn: sarette
uid: ssarette
ref:
ldap://directory.europe.example.com/cn=somi%20sarette,ou=people,
l=europe,dc=example,dc=com
Use the
-M
option with
ldapmodify
when there is already a referral in the DN path.
For information on the
-M
option, see the Netscape Directory Server Configuration,
Command, and File Reference.
For more information on smart referrals, see Netscape Directory Server Deployment
Guide. For more information about the
ldapmodify
utility, refer to the Netscape
Directory Server Configuration, Command, and File Reference.
NOTE
Any information after a space in an LDAP URL is ignored by the
server. For this reason, you must use
%20
instead of spaces in any
LDAP URL you intend to use as a referral.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.02
Page 1: ...Administrator s Guide Netscape Directory Server Version6 02 May 2002 ...
Page 16: ...16 Netscape Directory Server Administrator s Guide May 2002 ...
Page 20: ...20 Netscape Directory Server Administrator s Guide May 2002 ...
Page 74: ...Maintaining Referential Integrity 74 Netscape Directory Server Administrator s Guide May 2002 ...
Page 138: ...Using Referrals 138 Netscape Directory Server Administrator s Guide May 2002 ...
Page 432: ...Miscellaneous Tuning Tips 432 Netscape Directory Server Administrator s Guide May 2002 ...
Page 434: ...434 Netscape Directory Server Administrator s Guide May 2002 ...
Page 468: ...PTA Plug In Syntax Examples 468 Netscape Directory Server Administrator s Guide May 2002 ...
Page 488: ...488 Netscape Directory Server Administrator s Guide May 2002 ...
Page 528: ...Examples of LDAP URLs 528 Netscape Directory Server Administrator s Guide May 2002 ...