During the creation of a database within an instance, the
database is automatically registered in LDAP. Registration allows
remote client connection to the database without having to catalog
the database and node on the client computer. When a client attempts
to connect to a database, if the database does not exist in the database
directory on the local computer then the LDAP directory
is searched.
About this task
If the name already exists in the LDAP directory, the
database is still created on the local computer but a warning message
is returned stating the naming conflict in the LDAP directory. For
this reason you can manually catalog a database in the LDAP directory.
The user can register databases on a remote server in LDAP by using
the
CATALOG LDAP DATABASE command. When registering
a remote database, you specify the name of the LDAP node that represents
the remote database server. You must register the remote database
server in LDAP using the
REGISTER DB2 SERVER IN LDAP command
before registering the database. To register a database manually in
LDAP, use the
CATALOG LDAP DATABASE command:
db2 catalog ldap database <dbname>
at node <node_name>
with "My LDAP database"
To register a database
in LDAP from a client application, call the db2LdapCatalogDatabase API.