简体   繁体   English

更改密码LDAP Java

[英]Change password LDAP Java

I need to make an method to change an user password that is in the IBM TDS, i have to compare the if the user provide the correct user password, and change it. 我需要创建一个方法来更改IBM TDS中的用户密码,我必须比较用户是否提供正确的用户密码,并进行更改。 i have the username, oldpassword and newpassword as parameters. 我有用户名,oldpassword和newpassword作为参数。 Anyone knows how to make it? 谁知道怎么做?

Use the UnboundID LDAP SDK . 使用UnboundID LDAP SDK

  • The BIND request will verify whether the existing password is correct - there is no need to compare passwords, the BIND request will return a result code of zero if the password matches the password stored in the directory server database BIND请求将验证现有密码是否正确 - 无需比较密码,如果密码与目录服务器数据库中存储的密码匹配,BIND请求将返回零结果代码
  • Use either the modify operation or the password modify extended request to change the password 使用修改操作或密码修改扩展请求来更改密码

see also 也可以看看

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM