更改ApacheDS中的默认管理员密码 [英] Change default admin password in ApacheDS

查看:914
本文介绍了更改ApacheDS中的默认管理员密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ApacheDS的新手-正在使用apacheds-2.0.0-M17.

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

默认的admin密码是secret.

The default password for admin is secret.

有人知道我可以在哪里将值更改为其他值吗?

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

内部:

apacheds/instances/default/conf/config.ldif 

找到以下条目:

ads-pwdattribute: userPassword

在进行谷歌搜索时,有很多示例提到使用Apache Directory Studio进行此操作,但是我要配置的特定实例在Linux shell中以无头(无UI)模式运行.

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.

在ldapmodify中使用以下命令进行了尝试,并在按Enter键后光标挂起(提示音闪烁).我什至尝试在它前面加上sudo,然后发生同样的事情.

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?

我可能做错了什么?

再次感谢

詹姆斯

推荐答案

ldapmodify(如果未提供要使用-f参数处理的文件)将等待标准输入的输入,并期望在标准输入上输入

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.

在您的情况下,这样的LDIF文件如下所示:

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

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

这篇关于更改ApacheDS中的默认管理员密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆