我需要测试我们的应用程序是否可以处理需要更改密码的用户。我正在使用https://github.com/osixia/docker-openldap处的Docker openldap服务器。
我从https://ldapwiki.com/wiki/Password%20MUST%20Change处向这里添加了各种内容,但是,如果我尝试向用户添加pwdMustChange,则Apache Directory Studio将失败,表明该模式不允许这样做。
这就是我放入架构中的内容:
attributetype ( PwdMustChange
NAME 'PwdMustChange'
DESC 'Password Must Be Changed'
EQUALITY booleanMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
)
Apache Directory Studio会在自动填充pwdMustChange时识别该值,但是当我尝试在上述错误中输入一个值时,就会发生该错误。
我的问题归结为:如何使用openldap模拟用户密码的到期时间?
答案 0 :(得分:1)
您正在使用哪种编程语言以及哪个LDAP模块?
我建议多读书: