fix(api): ldap authentication

This commit is contained in:
pycook
2023-12-19 00:16:56 +08:00
parent 92b54f045f
commit 3a760c3a80
5 changed files with 7 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ from api.models.acl import User
def authenticate_with_ldap(username, password):
config = AuthenticateDataCRUD(AuthenticateType.CAS).get()
config = AuthenticateDataCRUD(AuthenticateType.LDAP).get()
server = Server(config.get('LDAP').get('ldap_server'), get_info=ALL, connect_timeout=3)
if '@' in username: