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?
本文标签:
版权声明:本文标题:fastapi - Check credentials of the domain user while its locked or password expired (AD, python ldap3) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738499069a2090161.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论