简体   繁体   English

如何设置 LDAP 用户帐户的密码?

[英]How to set the password for Ldap user account?

I am using this in ldif file to set the password.我在 ldif 文件中使用它来设置密码。

dn:cn=krisv,ou=People,dc=jbpm,dc=org
changetype:modify
replace:unicodePwd
unicodePwd:Krisv
-

This is the log这是日志

Connecting to "localhost:389"
Logging in as current user using SSPI
Importing directory from file "MS-Sample.LDF"

Loading entries
1: cn=krisv,ou=People,dc=jbpm,dc=org
Entry DN: cn=krisv,ou=People,dc=jbpm,dc=org
changetype: modify
Attribute 0) unicodePwd:IgA3ACQANQBNAHMAIwA0AEQAaQBHACIA

Add error on entry starting on line 2: Constraint Violation
The server side error is: 0x52c Unable to update the password. The value provided for    the new password contains values that are not allowed in passwords.

The extended server error is:
0000052C: AtrErr: DSID-033805E9, #1:
0: 0000052C: DSID-033805E9, problem 1005 (CONSTRAINT_ATT_TYPE), data 0, Att 9005a    (unicodePwd)
0 entries modified successfully.
An error has occurred in the program

I suggest using Apache Directory Studio to manage your LDAP directory.我建议使用 Apache Directory Studio 来管理您的 LDAP 目录。 It should help avoiding that sort of problem.它应该有助于避免这种问题。

In Apache Directory Studio, you can change a user password by double clicking the userPassword attribute description.在 Apache Directory Studio 中,您可以通过双击userPassword属性描述来更改用户密码。 This will open the Password Editor, where you can verify the current password or enter a new password.这将打开密码编辑器,您可以在其中验证当前密码或输入新密码。

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

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