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

Bug#714901: marked as done (libpam-unix2: (wishlist) make it clearer that the wrong password was entered)



Your message dated Wed, 21 Sep 2016 02:39:29 +0000
with message-id <[🔎] E1bmXRZ-0005sL-5h@franck.debian.org>
and subject line Bug#628848: Removed package(s) from unstable
has caused the Debian Bug report #714901,
regarding libpam-unix2: (wishlist) make it clearer that the wrong password was entered
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.)


-- 
714901: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=714901
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libpam-unix2
Version: 1:2.4.1-4
Severity: wishlist
Tags: patch

*** Please type your report below this line ***
Hi

I am using this module to help users change passwords on a mixed file & NIS
system.

If they happen to enter the wrong string for the old password, they get a
somewhat
inscrutable message:

  % passwd
  Old Password:
  passwd: Authentication token manipulation error
  passwd: password unchanged

Which usually leads them to keep trying the same, wrong, password.

Unless there is some way to configure PAM to give a friendlier error message
than the default text for PAM_AUTHTOK_ERR, the patch below would fix the
problem for me.

Patch is against 1:2.6-1, but I compiled & tested with 1:2.4.1-4.

debian/patches/07_wrong_pass_warning.diff
--- a/src/unix_passwd.c
+++ b/src/unix_passwd.c
@@ -257,6 +257,8 @@
       if ((getuid () || (flags & PAM_CHANGE_EXPIRED_AUTHTOK)) && strcmp
(data->oldpassword,
                        crypt_r (oldpass, data->oldpassword, &output)) != 0)
        {
+         __write_message (pamh, flags, PAM_ERROR_MSG,
+                                _("Wrong password."));
          if (options.debug)
            pam_syslog (pamh, LOG_DEBUG,
                        "old password is wrong -> abort.");



-- System Information:
Debian Release: 6.0.7
  APT prefers oldstable
  APT policy: (990, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libpam-unix2 depends on:
ii  libc6                 2.11.3-4           Embedded GNU C Library: Shared lib
ii  libpam0g              1.1.1-6.1+squeeze1 Pluggable Authentication Modules l
ii  libxcrypt1            1:2.4-1            Crypt library for DES, MD5, and bl

libpam-unix2 recommends no packages.

libpam-unix2 suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 1:2.6-2+rm

Dear submitter,

as the package libpam-unix2 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/628848

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

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.
Chris Lamb (the ftpmaster behind the curtain)

--- End Message ---

Reply to: