reset: auto-add a "profile config" in ldapvirc
This commit is contained in:
parent
85dcac0ca9
commit
bf8ce8ff64
11
lib/reset
11
lib/reset
|
@ -38,3 +38,14 @@ slapadd -n0 -F/etc/ldap/slapd.d -l${LDIFDIR}/eduorg-200210-openldap.ldif
|
|||
chown -R openldap:openldap /etc/ldap/slapd.d /var/lib/ldap
|
||||
|
||||
${SERVICE} start
|
||||
|
||||
if ! grep "^\s*profile\s\+config\s*$" /etc/ldapvi.conf > /dev/null 2>&1; then
|
||||
echo "(add a 'profile config' in /etc/ldapvi.conf)"
|
||||
cat << EOLDAPVI >> /etc/ldapvi.conf
|
||||
profile config
|
||||
host: ldapi://
|
||||
sasl-mech: EXTERNAL
|
||||
base: cn=config
|
||||
|
||||
EOLDAPVI
|
||||
fi
|
||||
|
|
Reference in New Issue