[Bug 903304] [NEW] pam-auth-update: Use of uninitialized value $fieldname

Fredrik Thulin 903304 at bugs.launchpad.net
Mon Dec 12 17:46:15 UTC 2011


Public bug reported:

This is on Ubuntu 11.10 with libpam-runtime 1.1.3-2ubuntu2.1.

What happened :

While working on a PAM module packaging, I felt the need to try and add
some comments to my packages file in /usr/share/pam-configs/. Of course,
it turns out there is no such thing as comments in those files, but my
attempt of one was not handled very gracefully :

  # pam-auth-update 
  Use of uninitialized value $fieldname in hash element at /usr/sbin/pam-auth-update line 688, <PROFILE> line 1.
  Use of uninitialized value $fieldname in hash element at /usr/sbin/pam-auth-update line 689, <PROFILE> line 1.
  # cat /usr/share/pam-configs/yubikey
  # test comment
  Name: YubiKey two-factor authentication with online validation (recommended)
  ...

What I would have expected :

Wouldn't it be reasonable for badly formatted profiles to be
ignored/rejected?

Thanks.

/Fredrik

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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pam in Ubuntu.
https://bugs.launchpad.net/bugs/903304

Title:
  pam-auth-update: Use of uninitialized value $fieldname

Status in “pam” package in Ubuntu:
  New

Bug description:
  This is on Ubuntu 11.10 with libpam-runtime 1.1.3-2ubuntu2.1.

  What happened :

  While working on a PAM module packaging, I felt the need to try and
  add some comments to my packages file in /usr/share/pam-configs/. Of
  course, it turns out there is no such thing as comments in those
  files, but my attempt of one was not handled very gracefully :

    # pam-auth-update 
    Use of uninitialized value $fieldname in hash element at /usr/sbin/pam-auth-update line 688, <PROFILE> line 1.
    Use of uninitialized value $fieldname in hash element at /usr/sbin/pam-auth-update line 689, <PROFILE> line 1.
    # cat /usr/share/pam-configs/yubikey
    # test comment
    Name: YubiKey two-factor authentication with online validation (recommended)
    ...

  What I would have expected :

  Wouldn't it be reasonable for badly formatted profiles to be
  ignored/rejected?

  Thanks.

  /Fredrik

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/903304/+subscriptions




More information about the foundations-bugs mailing list