6 Commits

Author SHA1 Message Date
Jim Hague
9469eb6d58 PAM - get user name from a comma-less passwd comment field.
PAM authentication uses a regular expression to extract the user's real
name from the 'user name or comment field' passwd file when creating a
new account.

The current regular expression assumes the comment field contains the
user name followed by a comma and some other comma-delimited information
(the Linux 'adduser' command adds room number, work phone, home phone
and 'other' info given half a chance).

If the field just contains the user name, there is no trailing comma
and the RE match fails. Make the trailing comma optional.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-09-17 14:06:23 +12:00
Andrew McMillan
50ddbe6272 Debugged version of last fix. for Debian bug #561288. 2009-12-17 08:49:39 +13:00
Andrew McMillan
026c719251 Better use of getent to extract user fullname. 2009-12-16 22:57:45 +13:00
Matthias Mohr
526d4dce6f Translatability improvements from Matthias Mohr. 2009-10-30 09:00:41 +13:00
Andrew McMillan
6ac9985fba Add rudimentary munging of usernames etc. for better security. 2008-11-10 11:50:24 +13:00
Andrew McMillan
786e73f56b Authentication against PAM via Squid helper by Eric Seigne. 2007-11-06 14:52:13 +13:00