WebSphere Application Server security can be configured to attempt failovers between multiple Lightweight Directory Access Protocol (LDAP) hosts. This task assumes the following setup:
wsadmin –user username –password password
set ldapServer [ldap server hostname]
set ldapPort [ldap server port]
set Attrs2 [list [list hosts [list [list [list host $ldapServer] [list port $ldapPort]]]]]
$AdminConfig modify $result $Attrs2
set result [$AdminConfig list LDAPUserRegistry]
$AdminConfig save
wsadmin>set ldapServer [list xxxx.xxxx.xxx.com] xxxx.xxxx.xxx.com wsadmin>set ldapPort [list NNN] NNN wsadmin>set Attrs2 [list [list hosts [list [list [list host $ldapServer] [list port $ldapPort]]]]] {hosts {{{host xxxx.xxxx.xxx.com} {port NNN}}}} wsadmin> set result [$AdminConfig list LDAPUserRegistry] (cells/Father2Cell01|security.xml#LDAPUserRegistry_1) wasdmin>$AdminConfig modify $result $Attrs2 wsadmin>$AdminConfig save
stopManager –user username –password password