REST API fail to authenticate with Ldap

With AD enabled, always getting a 401 in REST API
for non admin even though user credentials properly bind
with AD.

https://bugzilla.redhat.com/show_bug.cgi?id=1146110
Merge pull request #696 from abellotti/rest_api_ldap_authentication

REST API fail to authenticate with Ldap