wok-6.x rev 1403
phpldapadmin: configure default login DN
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 22 15:39:21 2008 +0000 (2008-09-22) |
parents | a4138e62dd41 |
children | 4cfeefae7cbc |
files | phpldapadmin/receipt |
line diff
1.1 --- a/phpldapadmin/receipt Sun Sep 21 18:00:44 2008 +0000 1.2 +++ b/phpldapadmin/receipt Mon Sep 22 15:39:21 2008 +0000 1.3 @@ -31,6 +31,11 @@ 1.4 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.5 etc/phpldapadmin/config.php 1.6 EOT 1.7 + if [ -s $1/etc/openldap/slapd.conf ]; then 1.8 + rootdn=$(awk '/^rootdn/ { print $2 }' < $1/etc/openldap/slapd.conf | sed 's/"//g') 1.9 + sed -i "s|'login','dn','');|'login','dn','');\\n\$ldapservers->SetValue(\$i,'login','dn','$rootdn');|" $1/etc/phpldapadmin/config.php 1.10 + chown 80.80 $1/etc/phpldapadmin/config.php 1.11 + fi 1.12 # Configure lighttpd server 1.13 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 1.14 if ! grep -q /usr/share/phpldapadmin/ $1/etc/lighttpd/lighttpd.conf; then