Change default admin password in ApacheDS

馋奶兔 提交于 2019-12-12 16:00:26

问题


Am new to ApacheDS - am using apacheds-2.0.0-M17.

The default password for admin is secret.

Does anyone know where I can change the value to something else?

Inside:

apacheds/instances/default/conf/config.ldif 

Found the following entry:

ads-pwdattribute: userPassword

When googling it, there are a lot of examples that mention doing it using Apache Directory Studio but the particular instance I am trying to configure is running in a Linux shell in a headless (no UI) mode.

Tried using the following command with ldapmodify and the cursor hangs (keeps blinking) after pressing enter. I even tried prepending it with sudo and the same thing happens.

ldapmodify -H ldap://localhost:10389 -D "uid=admin,ou=system" -x -w secret

Does anyone know why it hangs?

What am I possibly doing wrong?

Thanks again,

James


回答1:


Changing the admin account password is documented in the ApacheDS documentation.

ldapmodify, if not given a file to process with -f parameter, waits for input from standard input, on which it expects a LDIF formatted file with modifications to perform.

In your case such a LDIF file would look something like:

dn: uid=admin,ou=system
changetype: modify
replace: userPassword
userPassword: new-password


来源:https://stackoverflow.com/questions/33221397/change-default-admin-password-in-apacheds

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!