--- ldap.conf-orig 2009-02-16 18:35:01 +0200 +++ ldap.conf 2009-03-09 12:49:16 +0200 @@ -20,7 +20,7 @@ # for GSS-API support Copy -gldap -m640 $force /etc/krb5.conf etc/krb5.conf -[ -d /var/lib/ldap/var/tmp ] || install -gldap -oldap -d /var/lib/ldap/var/tmp +[ -d /var/lib/ldap/var/tmp ] || install -g ldap -o ldap -d /var/lib/ldap/var/tmp #for f in `ls /etc/openldap/schema/`; do # Copy -m644 $force "/etc/openldap/schema/$f" "etc/schema/$f" @@ -39,7 +39,7 @@ # create direcrory for each configured LDAP database awk '/^directory/ {sub(/\//,"",$2);print $2}' /etc/openldap/*slapd*.conf \ - | xargs install -d -o ldap -g ldap -m 0700 + | xargs -r -- install -d -o ldap -g ldap -m 0700 # install and adjust default BDB config file for d in `awk '/^directory/ {sub(/\//,"",$2);print $2}' /etc/openldap/*slapd*.conf`; do @@ -53,6 +53,6 @@ # create transactions log directory for each configured LDAP database awk '/^directory/ {sub(/\//,"",$2);print $2}' /etc/openldap/*slapd*.conf | sed 's|ldap/bases|ldap/dblogs|' \ - | xargs install -d -o ldap -g ldap -m 0700 + | xargs -r -- install -d -o ldap -g ldap -m 0700 copy_resolv_conf