Update ldap test and fix AIX dependencies.