adding LDAP support

Wanted to authenticate API users against an LDAP instance so I added that functionality.