Package: libnss-ldap
Version: 251-5
Tags: patch

I can confirm this problem on my machine. However, the problem seems not to be the Base DN containing a '-', but the LDAP URI. I wrote a small patch which fixes a sed regex.

--- libnss-ldap-251-orig/debian/libnss-ldap.postinst 2006-07-12 11:04:30.000000000 +0200 +++ libnss-ldap-251/debian/libnss-ldap.postinst 2006-07-12 11:05:02.000000000 +0200
@@ -25,7 +25,7 @@
        # then the slashes
        value=`echo $value | sed -s 's#/#\\\/#g'`
# escape hyphen in domainnames for later regex compat (ex. example-city.net)
-       value=`echo $value | sed -s 's#-#\\-#g'`
+       value=`echo $value | sed -s 's#-#\\\-#g'`

        egrep -i -q "^$parameter " $CONFFILE || notthere=1
        if [ "$notthere" = "1" ]; then


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to