如何通过命令行安装和设置LDAP?

时间:2017-06-12 15:41:38

标签: linux ubuntu ldap openldap

当我使用sudo apt-get -y install slapdsudo dpkg-reconfigure slapd在ubuntu16.04中安装和配置slapd时,我遇到了这种情况,

enter image description here

enter image description here

如何使这个GUI(选择或输入)成为完全命令行?

或者只需点击一下即可安装和配置ldap?

提前谢谢。

1 个答案:

答案 0 :(得分:0)

对于14.04我使用命令

apt-get update && \
echo 'slapd/root_password password password' | debconf-set-selections &&\
echo 'slapd/root_password_again password password' | debconf-set-selections && \
DEBIAN_FRONTEND=noninteractive apt-get install -y slapd ldap-utils

试试吧。

相关问题