Creating Smart Referrals From The Command Line - Netscape DIRECTORY SERVER 6.01 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Creating Smart Referrals From the Command Line

Use the
ldapmodify
command line.
To create a smart referral, create the relevant directory entry and add the
object class. This object class allows a single attribute,
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
Any information after a space in an LDAP URL is ignored by the
NOTE
server. For this reason, you must use
LDAP URL you intend to use as a referral.
To add the entry
uid=ssarette,ou=people,dc=example,dc=com
to
directory.europe.example.com
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
option with
-M
For information on the
Command, and File Reference.
For more information on smart referrals, see Netscape Directory Server Deployment
Guide. For more information about the
Directory Server Configuration, Command, and File Reference.
command-line utility to create smart referrals from the
, you would include the following in your
when there is already a referral in the DN path.
ldapmodify
option, see the Netscape Directory Server Configuration,
-M
ldapmodify
. The
ref
ref
instead of spaces in any
%20
utility, refer to the Netscape
Chapter 3
Configuring Directory Databases
Using Referrals
Referral
attribute is
with a referral
133

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents