fix ldap account condition