When registering host databases in LDAP, there are two possible configurations:
In the first case, the user would register the host server in LDAP, then catalog the host database in LDAP specifying the node name of the host server. In the second case, the user would register the gateway server in LDAP, then catalog the host database in LDAP specifying the node name of the gateway server.
As an example showing both cases, consider the following: Suppose there is a host database called NIAGARA_FALLS. It can accept incoming connections using APPN and TCP/IP. If the client can not connect directly to host because it does not have DB2 Connect, then it will connect using a gateway called "goto@niagara".
The following steps need to be done:
db2 register ldap as nfappn appn network CAIBMOML partnerlu NFLU mode IBMRDB remote mvssys instance msvinst nodetype dcs
db2 register ldap as nftcpip tcpip hostname myhost svcename 446 remote mvssys instance mvsinst nodetype dcs
db2 register ldap as whasf tcpip hostname niagara svcename 50000 remote niagara instance goto nodetype server
db2 catalog ldap database NIAGARA_FALLS as nftcpip at node nftcpip gwnode whasf authentication dcs
db2 catalog ldap database NIAGARA_FALLS as nfappn at node nfappn gwnode whasf authentication dcs
After completing the registration and cataloging shown above, if you want to connect to the host using TCPIP, you connect to "nftcpip". If you want to connect to the host using APPN, you connect to "nfappn". If you do not have DB2 Connect on your client workstation, the connection will go through the gateway using TCPIP and from there, depending on whether you use "nftcpip" or "nfappn", it will connect to host using TCP/IP or APPN respectively.
In general then, you can manually configure host database information in LDAP so that each client does not need to manually catalog the database and node locally on each machine. The process follows: