如何检查用户名/密码组合? [英] How to check a username/password combination?
问题描述
使用LDAP来检查用户名/密码就像尝试以该用户身份绑定并记录结果一样简单,还是有一个特殊的LDAP检查密码"功能?
Using LDAP is checking a username/password as simple as attempting to bind as that user and noting the results, or is there a special LDAP "check password" function?
在处理混乱的LDAP存储库设置问题时,我试图获得更多的幕后知识".
I'm trying to get a bit more "behind the scenes" understanding while working on a messy LDAP repository setup issue.
(注意:这是针对密码未在自定义属性中作为哈希存储的情况;这种情况易于管理)
(Note: This is for situations in which the password is not stored as a hash in a custom property; that situation is easy to manage)
推荐答案
LDAP支持对userPassword进行比较.您发送密码,服务器进行比较并返回true或false.这是不需要登录方式即可对用户进行身份验证.
LDAP supports a compare of userPassword. You send the password, the server does the compare and returns true or false. This is the not-requiring a login way to authenticate users.
这篇关于如何检查用户名/密码组合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!