Add some more auth handling and an ldap authenticator