ldap checks fix