Patch Auth to support LDAP Authentication