wok diff nss_ldap/receipt @ rev 3410

Fix mplayerplug-in compile with gcc44 and glibc210
author Rohit Joshi <jozee@slitaz.org>
date Fri Jun 12 17:28:25 2009 +0000 (2009-06-12)
parents bfd0152b290a
children 5b44af8c1257
line diff
     1.1 --- a/nss_ldap/receipt	Fri Mar 13 16:15:38 2009 +0000
     1.2 +++ b/nss_ldap/receipt	Fri Jun 12 17:28:25 2009 +0000
     1.3 @@ -35,9 +35,9 @@
     1.4  		suffix=$(awk '/^suffix/ { print $2 }' < $1/etc/openldap/slapd.conf | sed 's/"//g')
     1.5  		rootdn=$(awk '/^rootdn/ { print $2 }' < $1/etc/openldap/slapd.conf | sed 's/"//g')
     1.6  		rootpw=$(awk '/^rootpw/ { print $2 }' < $1/etc/openldap/slapd.conf)
     1.7 -		sed -i "s|binddn .*|binddn $rootdn|" \
     1.8 -		    -i "s|bindpw .*|bindpw $rootpw|" $1/etc/ldap.conf
     1.9 -		sed -i "s|dc=padl,dc=com|$suffix|g" $1/etc/ldap.conf
    1.10 +		sed -i -e "s|binddn .*|binddn $rootdn|" \
    1.11 +		       -e "s|bindpw .*|bindpw $rootpw|" \
    1.12 +		       -e "s|dc=padl,dc=com|$suffix|g" $1/etc/ldap.conf
    1.13  		cat <<EOT
    1.14  ------
    1.15  Suffix login DN and password are found in /etc/openldap/slapd.conf with suffix, rootdn and rootpw keywords: