Package: libpam-ldap
Version: 184-4.2
Severity: normal

I just installed libpam-ldap and answered a few Debconf questions. The
result, in the config file was:

# Another way to specify your LDAP server is to provide an
uri ldap:///ldap.iti.upv.es/
# Unix Domain Sockets to connect to a local LDAP Server.
#uri ldap://127.0.0.1/
#uri ldaps://127.0.0.1/
#uri ldapi://%2fvar%2frun%2fldapi_sock/
# Note: %2f encodes the '/' used as directory separator

So it seems the debconf script looks for a commented line starting with
a certain pattern. In the case of ^uri, it's munging the comment
instead of the commented out example.

Apparently it's this bit in postinst:

[...]

        if [ "$notthere" = "1" ]; then
                add_missing $parameter $value
        else
                # i really need a better way to do this...
                # currently we replace only the first match, we need a better
                # way of dealing with multiple hits.
                if [ "$commented" = "1" ]; then
                        value="$value" parameter="$parameter" perl -i -p -e 
's/^# *\Q$ENV{"parameter"}\E .*/$ENV{"parameter"} $ENV{"value"}/i
                                and $match=1 unless ($match)' $CONFFILE
[...]

This seems dangerous, as the comment suggests.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-vserver-amd64 (SMP w/2 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to