[FIX] auth_ldap: avoid to try twice the authentication to the ldap server

See #1982