1. vi /etc/pam.d/db2
auth sufficient pam_unix.so
auth required pam_ldap.so use_first_pass
account sufficient pam_unix.so
account required pam_ldap.so
password required pam_pwcheck.so
password sufficient pam_unix.so use_authtok use_first_pass
password required pam_ldap.so use_first_pass
session required pam_unix.so
2. db2set DB2AUTH=OSAUTHDB
3. db2stop; db2start
http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=%2Fcom.ibm.db2.luw.admin.sec.doc%2Fdoc%2Ft0056291.html