mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 09:02:44 +08:00
fix(api): ldap authentication
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user