n/openldap: Added default UID/GID.

slackware-14.2
Damien Goutte-Gattat 13 years ago
parent 9aeb049ec7
commit 653cca1389
  1. 5
      n/openldap/doinst.sh

@ -13,11 +13,12 @@ config /etc/openldap/ldap.conf.new
config /etc/openldap/slapd.conf.new
if ! grep ^ldap /etc/group > /dev/null ; then
/usr/sbin/groupadd ldap
/usr/sbin/groupadd -g 251 ldap
fi
if ! grep ^ldap /etc/passwd > /dev/null ; then
/usr/sbin/useradd -c OpenLDAP -d /var/lib/openldap-data -g ldap ldap
/usr/sbin/useradd -u 251 -c OpenLDAP -d /var/lib/openldap-data -g ldap \
-s /bin/false ldap
fi
chown -R ldap:ldap /var/lib/openldap-data /var/lib/openldap-slurp /etc/openldap

Loading…
Cancel
Save