Command Reference

db2ldcfg - Configure LDAP Environment

Configures the Lightweight Directory Access Protocol (LDAP) user distinguished name (DN) and password for the current logon user in an LDAP environment using an IBM LDAP client.

Authorization

none

Required Connection

None

Command Syntax

>>-db2ldcfg----+--u--user's Distinguished Name---w--password--+-><
               '--r-------------------------------------------'
 

Command Parameters

-u user's Distinguished Name
Specifies the LDAP user's Distinguished Name to be used when accessing the LDAP directory.

-w password
Specifies the password.

-r
Removes the user's DN and password from the machine environment.

Usage Notes

In an LDAP environment using an IBM LDAP client, the default LDAP user's DN and password can be configured for the current logon user. Once configured, the LDAP user's DN and password are saved in the user's environment and used whenever DB2 accesses the LDAP directory. This eliminates the need to specify the LDAP user's DN and password when issuing the LDAP command or API. However, if the LDAP user's DN and password are specified when the command or API is issued, the default settings will be overridden.

This command can only be run when using an IBM LDAP client. On a Microsoft LDAP client, the current logon user's credentials will be used.


[ Top of Page | Previous Page | Next Page ]