Public bug reported:

Binary package hint: libpam-runtime

Working with libpam-runtime 1.0.1-4ubuntu5 in intrepid.

I've put together a profile for pam-auth-update to use. For some reason,
it doesn't like the session-related fields I have, despite them
appearing to be well-formed. Attached is a (somewhat) minimal example
that triggers the bug.

When I run pam-auth-update to enable the new profile, I get this mess
(after returning from the debconf dialog):

# pam-auth-update
Use of uninitialized value $3 in split at /usr/sbin/pam-auth-update line 237, 
<INPUT> line 23.
Use of uninitialized value $modline in substitution (s///) at 
/usr/sbin/pam-auth-update line 239, <INPUT> line 23.
Use of uninitialized value $mod in substitution (s///) at 
/usr/sbin/pam-auth-update line 242, <INPUT> line 23.
Use of uninitialized value $mod in hash element at /usr/sbin/pam-auth-update 
line 243, <INPUT> line 23.
Use of uninitialized value $mod in hash element at /usr/sbin/pam-auth-update 
line 244, <INPUT> line 23.
Use of uninitialized value $modline in concatenation (.) or string at 
/usr/sbin/pam-auth-update line 258, <INPUT> line 23.
Use of uninitialized value $3 in split at /usr/sbin/pam-auth-update line 237, 
<INPUT> line 23.
Use of uninitialized value $modline in substitution (s///) at 
/usr/sbin/pam-auth-update line 239, <INPUT> line 23.
Use of uninitialized value $mod in substitution (s///) at 
/usr/sbin/pam-auth-update line 242, <INPUT> line 23.
Use of uninitialized value $mod in hash element at /usr/sbin/pam-auth-update 
line 243, <INPUT> line 23.
Use of uninitialized value $mod in hash element at /usr/sbin/pam-auth-update 
line 244, <INPUT> line 23.
Use of uninitialized value $modline in concatenation (.) or string at 
/usr/sbin/pam-auth-update line 258, <INPUT> line 23.
Use of uninitialized value $3 in split at /usr/sbin/pam-auth-update line 237, 
<INPUT> line 23.
Use of uninitialized value $modline in substitution (s///) at 
/usr/sbin/pam-auth-update line 239, <INPUT> line 23.
Use of uninitialized value $mod in substitution (s///) at 
/usr/sbin/pam-auth-update line 242, <INPUT> line 23.
Use of uninitialized value $mod in hash element at /usr/sbin/pam-auth-update 
line 243, <INPUT> line 23.
Use of uninitialized value $mod in hash element at /usr/sbin/pam-auth-update 
line 244, <INPUT> line 23.
Use of uninitialized value $modline in concatenation (.) or string at 
/usr/sbin/pam-auth-update line 258, <INPUT> line 23.

Unfortunately, /etc/pam.d/common-session turns out incorrectly
generated. Here is the last part of the file, after the above operation:

# and here are more per-package modules (the "Additional" block)
session required        pam_unix.so
session optional        pam_krb5.so minimum_uid=20000
session
session
session
# end of pam-auth-update config

Then, when I go to disable the profile, the below comes up just before
the debconf dialog:

# pam-auth-update
Use of uninitialized value $3 in split at /usr/sbin/pam-auth-update line 607, 
<CURRENT> line 26.
Use of uninitialized value $curmod in quotemeta at /usr/sbin/pam-auth-update 
line 615, <CURRENT> line 26.
Use of uninitialized value $3 in split at /usr/sbin/pam-auth-update line 607, 
<CURRENT> line 27.
Use of uninitialized value $curmod in quotemeta at /usr/sbin/pam-auth-update 
line 615, <CURRENT> line 27.
Use of uninitialized value $3 in split at /usr/sbin/pam-auth-update line 607, 
<CURRENT> line 28.
Use of uninitialized value $curmod in quotemeta at /usr/sbin/pam-auth-update 
line 615, <CURRENT> line 28.

** Affects: pam (Ubuntu)
     Importance: Undecided
         Status: New

-- 
pam-auth-update does not correctly process a valid profile file
https://bugs.launchpad.net/bugs/295441
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to