mods to ldap fix