我正在开发debian 8,我希望用脚本安装slapd,而不需要终端的任何问题。我试过:
debconf-set-selections <<< 'slapd/root_password password 123123'
debconf-set-selections <<< 'slapd/root_password_again 123123'
apt-get install slapd ldap-utils -y但是系统会问我ldap密码
我也希望使用:
dpkg-reconfigure slapd有可能吗?
通常情况下,如何在安装过程中找到所有问题,以便使用debconf set-选择?
发布于 2017-07-07 09:02:06
debconf-set-selections的可能属性是在debian包中的slapd.templates文件中定义的,以及配置属性的描述。
关于Debian的slapd,您可以在这里找到该文件:https://anonscm.debian.org/cgit/pkg-openldap/openldap.git/tree/debian/slapd.templates?h=jessie
发布于 2015-09-01 10:04:42
你好像有多种字体。第二行缺少password字段类型说明符,两行都缺少slapd包标识符。您可以很容易地用debconf-set-selections -c来诊断这一点。
http://openstack.prov12n.com/quiet-or-unattended-installing-openldap-on-ubuntu-14-04/似乎有一条当前的指令,应该能很好地工作。我注意到,混合欢乐和恐惧,字段名是不同的,你正在使用的,也。您是在使用完全不同的slapd包,还是只是猜测字段名?
发布于 2017-03-14 19:43:47
在您的脚本中尝试这样的方法:
echo 'slapd/root_password password password' | debconf-set-selections \
&& echo 'slapd/root_password_again password password' | debconf-set-selections \
&& echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectionshttps://stackoverflow.com/questions/32325597
复制相似问题