Using the command line
Define a default referral to reference a directory on another server using the information and commands provided here.
About this task
Note: The default referral LDAP URL does not include
the DN portion. It includes only the ldap:// identifier and the hostname:port.
For
example: Note: This example is of a local LDAP server on port 389.
idsldapadd -D <adminDN> -w <adminpw> -i <filename> where <filename>
contains: # referral
dn: cn=Referral, cn=Configuration
cn: Referral
ibm-slapdReferral: ldap://<additional hostname:port>/<baseDN>?<attributes>?
<scope>?<filter>
ibm-slapdReferral: ldap://<additional hostname:port>/<baseDN>?<attributes>?
<scope>?<filter>
ibm-slapdReferral: ldap://<additional hostname:port>/<baseDN>?<attributes>?
<scope>?<filter>
objectclass: ibm-slapdReferral
objectclass: top
objectclass: ibm-slapdConfigEntryFor example, to set up
referrals to two servers, server1 and server2 (a secure server), listening
on port 389, with a base of ou=austin,o=sample , with
the attributes cn, sn, and description, a scope
of base, and a filter of objectclass=*, the LDIF file
is : # referral
dn: cn=Referral, cn=Configuration
cn: Referral
ibm-slapdreferral: ldap://server1.mycity.mycompany.com:389/
ou=austin,o=sample?cn,sn,description?base?objectclass=*
ibm-slapdreferral: ldaps://server2.mycity.mycompany.com:389/
ou=austin,o=sample?cn,sn,description?base?objectclass=*
objectclass: ibm-slapdReferral
objectclass: ibm-slapdConfigEntry
objectclass: topSeeIPv6 support for
more information about supported URL formats.