The DB2® database system searches the current LDAP server but in an environment where there are multiple LDAP servers, you can define the scope of the search.
db2set -gl db2ldap_search_scope=<value>
Possible values include: local, domain, or global. If it is not set, the default value is domain which limits the search scope to the directory on the current LDAP server.
For example, you might want to initially set the search scope to "global" after a new database is created. This allows any DB2 client configured to use LDAP to search all the LDAP servers to find the database. Once the entry has been recorded on each computer after the first connect or attach for each client, if you have caching enabled, the search scope can be changed to "local". Once changed to "local", each client will not scan any LDAP servers.