Setting Default Referrals
89
•
port
is the optional port number of the Directory Server to start in referral mode.
•
referral_url
is the referral returned to clients. The format of an LDAP URL is covered in
Appendix C,
LDAP URLs
.
3.4.2. Setting Default Referrals
Default referrals are returned to client applications that submit operations on a DN not contained within
any of the suffixes maintained by the directory. The following procedures describes setting a default
referral for the directory using the console and the command-line utilities.
3.4.2.1. Setting a Default Referral Using the Console
Set a default referral to the directory, as follows:
1. In the Directory Server Console, select the
Configuration
tab.
2. Select the top entry in the navigation tree in the left pane.
3. Select the
Settings
tab in the right pane.
4. Enter an LDAP URL in the
Referrals to
text box.
For example:
ldap://directory.example.com:389/dc=example,dc=com
Enter multiple referral URLs separated by spaces and in quotes, as follows:
"ldap://dir1.example.com:389/dc=example,dc=com" "ldap://dir2.example.com/"
For more information about LDAP URLs, see
Appendix C, LDAP URLs
.
5. Click
OK
.
3.4.2.2. Setting a Default Referral from the Command Line
ldapmodify
can add a default referral to the
cn=config
entry in the directory's configuration file.
For example, to add a new default referral from one Directory Server,
dir1.example.com
, to a
server named
dir2.example.com
, add a new line to the
cn=config
entry.
1. Run the
ldapmodify
utility:
1
ldapmodify -h dir1.example.com -p 389 -D "cn=directory manager" -w secret
ldapmodify
binds to the server and prepares it to change an entry in the configuration file.
2. Add the default referral to the
dir2.example.com
server:
dn: cn=config
changetype: modify
replace: nsslapd-referral
nsslapd-referral: ldap://dir2.example.com/
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...