simple api to login via ldap