#782554 libpam-ldapd: pam-configs/ldap should consult /etc/login.defs for UID_MIN setting

Package:
libpam-ldapd
Source:
nss-pam-ldapd
Description:
PAM module for using LDAP as an authentication service
Submitter:
Phil Nitschke
Date:
2015-04-16 20:21:05 UTC
Severity:
normal
#782554#5
Date:
2015-04-14 05:58:40 UTC
From:
To:
Dear Maintainer,

We inherited a legacy system where user's UIDs are less than 1000.
We set the UID_MIN value in /etc/login.defs, but whenever libpam-ldapd is
updated, it specifies minimum_uid=1000 and users cannot log in.

I suggest having the postinst script run a couple tests, e.g.

MINUID=`grep "^UID_MIN" /etc/login.defs | awk '{print $2}'`

Then if $MINUID != 1000, use it to update the values in /usr/share/pam-
configs/ldap, prior to running pam-auth-update.

Thanks!

#782554#10
Date:
2015-04-16 20:18:59 UTC
From:
To:
I also manage a legacy system with uid below 1000. We have made
modifications to minimum_uid in /etc/pam.d/common-* and have not seen
any changes on upgrades. The pam-auth-update command is supposed to keep
manual changes to those files intact.

I don't think the postinst is allowed to modify files under /usr so this
would quickly turn into something ugly with a symlink.

Perhaps it is possible to modify minimum_uid in /etc/pam.d/common-* from
the postinst but this also sounds very fragile to me.

Thanks,