[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#375069: marked as done (/etc/libnss-ldap.conf: User settings are not preserved. The way how debconf values are written is flawed.)



Your message dated Wed, 16 Nov 2022 01:20:11 +0000
with message-id <E1ov763-0016tp-7a@fasolo.debian.org>
and subject line Bug#1024140: Removed package(s) from unstable
has caused the Debian Bug report #375069,
regarding /etc/libnss-ldap.conf: User settings are not preserved. The way how debconf values are written is flawed.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
375069: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=375069
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libnss-ldap
Version: 251-1
Severity: normal

The current approach, how the debconf values like uri, base etc are
written to /etc/libnss-ldap.conf has several deficiencies:
1.) It does not preserve user configurations.
2.) It simply replaces the first occurence of the variable with the
value from debconf. 
Before:
# Another way to specify your LDAP server is to provide an
# uri with the server name. This allows to use
# Unix Domain Sockets to connect to a local LDAP Server.
#uri ldaps://127.0.0.1/
...
After:
# Another way to specify your LDAP server is to provide an
uri ldaps://localhost
# Unix Domain Sockets to connect to a local LDAP Server.
#uri ldap://127.0.0.1/
...

This is rather odd, because it kills the comment and it is not very
safe.

I'd suggest you introduce markers in /etc/libnss-ldap.conf, where you
surround the to be configured value and only replace the value within
those markers. E.g:

###DEBCONF_URI_BEGIN###
#uri ...
###DEBCONF_URI_END###

###DEBCONF_BASE_BEGIN###
#base ...
###DEBCONF_BASE_END###

and so on.
This is similar to how /boot/grub/menu.lst is configured atm. A section
managed by update-grub and a section which can be configured by the
administrator.

Cheers,
Michael


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (300, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.1
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages libnss-ldap depends on:
ii  debconf [debconf-2.0]       1.5.2        Debian configuration management sy
ii  libc6                       2.3.6-15     GNU C Library: Shared libraries
ii  libkrb53                    1.4.3-7      MIT Kerberos runtime libraries
ii  libldap2                    2.1.30-13+b1 OpenLDAP libraries

Versions of packages libnss-ldap recommends:
ii  libpam-ldap                   180-1      Pluggable Authentication Module al
ii  nscd                          2.3.6-15   GNU C Library: Name Service Cache 

-- debconf information excluded


--- End Message ---
--- Begin Message ---
Version: 265-6+rm

Dear submitter,

as the package libnss-ldap has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1024140

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: