Using the command line

You can issue the command provided here to modify the referral to server1 in order to change the baseDN to ou=raleigh,o=sample.

About this task

idsldapmodify -D <adminDN> -w <adminPW> -M -i <filename>
where <filename> contains:
dn: cn=referral, cn= configuration
changetype: modify
replace: ibm-slapdReferral
ibm-slapdreferral: ldap://server1.mycity.mycompany.com:389/
ou=raleigh,o=sample?cn,sn,description?base?objectclass=*
Note: When accessing referral entries, you must specify the -M option to treat the entry like a normal entry, otherwise the server will return the referral.