HP-UX Directory Server 8.1 administrator guide
7. Click OK.
2.5.3.2 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 must contain an LDAP URL.
For example, add the following to return a smart referral for an existing entry, uid=jdoe:
dn: uid=jdoe,ou=people,dc=example,dc=com
objectclass: referral
ref: ldap://directory.europe.example.com/cn=john%20doe,ou=people,l=europe,dc=example,dc=com
NOTE:
Any information after a space in an LDAP URL is ignored by the server. For this reason, use %20
instead of spaces in any LDAP URL used as a referral.
To add the entry uid=jdoe,ou=people,dc=example,dc=com with a referral to
directory.europe.example.com, include the following in the LDIF file before importing:
dn: uid=jdoe, ou=people,dc=example,dc=com
objectclass: top
objectclass: person
objectclass: organizationalperson
2.5 Using referrals 95