Fixed authenticate ldap

Signed-off-by: Rodrigo Medeiros <rodrigo.mss01@gmail.com>