|
Lines 20-26
Link Here
|
| 20 |
|
20 |
|
| 21 |
# for GSS-API support |
21 |
# for GSS-API support |
| 22 |
Copy -gldap -m640 $force /etc/krb5.conf etc/krb5.conf |
22 |
Copy -gldap -m640 $force /etc/krb5.conf etc/krb5.conf |
| 23 |
[ -d /var/lib/ldap/var/tmp ] || install -gldap -oldap -d /var/lib/ldap/var/tmp |
23 |
[ -d /var/lib/ldap/var/tmp ] || install -g ldap -o ldap -d /var/lib/ldap/var/tmp |
| 24 |
|
24 |
|
| 25 |
#for f in `ls /etc/openldap/schema/`; do |
25 |
#for f in `ls /etc/openldap/schema/`; do |
| 26 |
# Copy -m644 $force "/etc/openldap/schema/$f" "etc/schema/$f" |
26 |
# Copy -m644 $force "/etc/openldap/schema/$f" "etc/schema/$f" |
|
Lines 39-45
Link Here
|
| 39 |
|
39 |
|
| 40 |
# create direcrory for each configured LDAP database |
40 |
# create direcrory for each configured LDAP database |
| 41 |
awk '/^directory/ {sub(/\//,"",$2);print $2}' /etc/openldap/*slapd*.conf \ |
41 |
awk '/^directory/ {sub(/\//,"",$2);print $2}' /etc/openldap/*slapd*.conf \ |
| 42 |
| xargs install -d -o ldap -g ldap -m 0700 |
42 |
| xargs -r -- install -d -o ldap -g ldap -m 0700 |
| 43 |
|
43 |
|
| 44 |
# install and adjust default BDB config file |
44 |
# install and adjust default BDB config file |
| 45 |
for d in `awk '/^directory/ {sub(/\//,"",$2);print $2}' /etc/openldap/*slapd*.conf`; do |
45 |
for d in `awk '/^directory/ {sub(/\//,"",$2);print $2}' /etc/openldap/*slapd*.conf`; do |
|
Lines 53-58
Link Here
|
| 53 |
|
53 |
|
| 54 |
# create transactions log directory for each configured LDAP database |
54 |
# create transactions log directory for each configured LDAP database |
| 55 |
awk '/^directory/ {sub(/\//,"",$2);print $2}' /etc/openldap/*slapd*.conf | sed 's|ldap/bases|ldap/dblogs|' \ |
55 |
awk '/^directory/ {sub(/\//,"",$2);print $2}' /etc/openldap/*slapd*.conf | sed 's|ldap/bases|ldap/dblogs|' \ |
| 56 |
| xargs install -d -o ldap -g ldap -m 0700 |
56 |
| xargs -r -- install -d -o ldap -g ldap -m 0700 |
| 57 |
|
57 |
|
| 58 |
copy_resolv_conf |
58 |
copy_resolv_conf |