Your message dated Wed, 27 Jul 2016 12:34:58 +0200
with message-id <[email protected]>
and subject line Re: Bug#829641: libnss-ldapd configuration questions does not
respect the information in debconf
has caused the Debian Bug report #829641,
regarding libnss-ldapd configuration questions does not respect the information
in debconf
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 [email protected]
immediately.)
--
829641: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829641
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libnss-ldapd
Version: 0.9.4-3+deb8u1
Severity: minor
Dear Maintainer,
libnss-ldapd does not appear to respect the content of debconf when asking its
question of which items to configure in nsswitch.conf.
When you perform a dpkg-reconfigure on libnss-ldapd, it will show you the list
of databases as configured in nsswitch.conf, not as recorded in debconf. It
does record the answer into debconf.
As an example, let's assume that I originally installed the package and selected
the passwd and group databases to look up using ldap. This adjusts
nsswitch.conf
and records in debconf that I'd selected passwd and group. Next, I change that
answer (using debconf-set-selections) to only choose passwd. Run
dpkg-reconfigure and it again shows both passwd and group, since that is what
nsswitch.conf is currently configured with. I was expecting this to show me
just passwd as that is what is stored in debconf.
This bug prevents me from being able to change the answer in debconf and then
cause the package to apply that configuration via running:
"dpkg-reconfigure -fnoninteractive libnss-ldapd". I would presume that this
would also prevent me from pre-answering the question before installing the
package too.
-- System Information:
Debian Release: 8.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libnss-ldapd depends on:
ii debconf [debconf-2.0] 1.5.56
ii libc6 2.19-18+deb8u4
ii multiarch-support 2.19-18+deb8u4
ii nslcd [nslcd-2] 0.9.4-3+deb8u1
libnss-ldapd recommends no packages.
libnss-ldapd suggests no packages.
-- debconf information:
libnss-ldapd/clean_nsswitch: false
* libnss-ldapd/nsswitch: group, passwd
--- End Message ---
--- Begin Message ---
On Mon, 2016-07-04 at 16:23 -0700, Andre Kostur wrote:
> libnss-ldapd does not appear to respect the content of debconf when
> asking its question of which items to configure in nsswitch.conf.
>
> When you perform a dpkg-reconfigure on libnss-ldapd, it will show you
> the list of databases as configured in nsswitch.conf, not as recorded
> in debconf. It does record the answer into debconf.
I have done some testing and the configuration seems to work as
designed as far as I can tell.
> Next, I change that answer (using debconf-set-selections) to only
> choose passwd. Run dpkg-reconfigure and it again shows both passwd
> and group, since that is what nsswitch.conf is currently configured
> with. I was expecting this to show me just passwd as that is what is
> stored in debconf.
Before the debconf questions are run, the current configuration is
loaded into debconf. This is because manual changes in configuration
files should not be overwritten by debconf values. Also see
https://lintian.debian.org/tags/debconf-is-not-a-registry.html
Not loading the current configuration in debconf would break this use
case:
- user installs libnss-ldapd
- user modifies /etc/nsswitch.conf manually
- user upgrades libnss-ldapd
If the debconf answeres were used the manual changes would be lost when
upgrading the package.
This makes debconf handling pretty complicated in combination with
preseeding. For nslcd.conf this is handled by only using the preseeded
values if nslcd.conf is not yet present (i.e. on first installation).
For nsswitch.conf it only uses the preseeded value if no ldap map has
been configured in nsswitch.conf.
> I would presume that this would also prevent me from pre-answering
> the question before installing the package too.
This should work as described above. If you find that it does not work,
please file a new bug or re-open this one.
Thanks,
--
-- arthur - [email protected] - http://people.debian.org/~adejong --
signature.asc
Description: This is a digitally signed message part
--- End Message ---