admin管理员组

文章数量:1194126

Currently, I'm working on a web project that users can unlock their domain user accounts or reset their expired passwords.

The whole project will be written in python with fastapi and ldap3 modules. But there is one thing that I'm stuck at.

I want to check the credentials of the user with logging in the user based on given details (username, password). But when account locked or password expired. I cannot validate the user. The error message shows that account is locked or password expired. Neither I give the wrong or correct user details, the error message does not change.

Locked account with wrong credentials:

{'result': 49, 'description': 'invalidCredentials', 'dn': '', 'message': '80090308: LdapErr: DSID-0C090449, comment: AcceptSecurityContext error, data 775, v3839\x00', 'referrals': None, 'saslCreds': None, 'type': 'bindResponse'}

Locked account with correct credentials:

{'result': 49, 'description': 'invalidCredentials', 'dn': '', 'message': '80090308: LdapErr: DSID-0C090449, comment: AcceptSecurityContext error, data 775, v3839\x00', 'referrals': None, 'saslCreds': None, 'type': 'bindResponse'}

Descriptions are same. So i cannot validate the user login details.

I'm stuck at this point. So, I couldn't do anything. Is there any way to validate these type of accounts?

本文标签: