Updated for changes in ldap library