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

Bug#380078: marked as done (libpam-modules: pam_unix fails to call helper "unix_pwdchk" when used with libnss_ldap > 246)



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 #380078,
regarding libpam-modules: pam_unix fails to call helper "unix_pwdchk" when used with libnss_ldap > 246
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.)


-- 
380078: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=380078
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libpam-modules
Version: 0.79-3.1
Severity: important
Tags: patch


Since version 246, a change has been made to libnss_ldap, whose
functions getspnam() and getspnam_r() now return "*" instead
of "x" previously, in the sp_pwdp member of a spwd struct.

This introduces an incompatibility with the present version of
libpam-modules, as the "*" case is not handled by the code in
"support.c" (line 741), thus resulting in the helper program
"unix_chkpwd" never being called.

As a consequence, all the programs relying on libpam-modules to
authenticate a user in an LDAP environment may fail. "kcheckpass" is an
example of such a program.

Proposed patch:

$ diff -u support.c support.c.new
--- support.c   2006-07-27 13:17:04.000000000 +0200
+++ support.c.new       2006-07-27 13:17:39.000000000 +0200
@@ -738,7 +738,7 @@
        }

        retval = PAM_SUCCESS;
-       if (pwd == NULL || salt == NULL || !strcmp(salt, "x") || ((salt[0] == '#') && (salt[1] == '#') && !strcmp(salt + 2, name))) {
+       if (pwd == NULL || salt == NULL || !strcmp(salt, "x") || !strcmp(salt, "*") || ((salt[0] == '#') && (salt[1] == '#') && !strcmp(salt + 2, name))) {

                if (geteuid() || SELINUX_ENABLED) {
                        /* we are not root perhaps this is the reason?  * Run helper */



-- System Information:
Debian Release: testing/unstable
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.6
Locale: LANG=C, LC_CTYPE=fr_FR (charmap=ISO-8859-1)

Versions of packages libpam-modules depends on:
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  libcap1                       1:1.10-14  support for getting/setting POSIX.
ii  libdb4.3                      4.3.29-4.1 Berkeley v4.3 Database Libraries [
ii  libpam0g                      0.79-3.1   Pluggable Authentication Modules l
ii  libselinux1                   1.30-1     SELinux shared libraries

libpam-modules recommends no packages.

-- no debconf information

-- 
-- Service Hydrographique et Oceanographique de la Marine ---  EPSHOM/CIS/MIC
--     13, rue du Chatellier ---  BP 30316  --- 29603 Brest Cedex, FRANCE
--        Phone: +33 2 98 22 17 49  ---  Email: Bruno.Treguier@shom.fr


--- 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: