rename user via PAM module?

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



Is there a PAM module to remap the username according to some simple
configuration file?  I'm thinking of reading a simple plaintext file:

  string1: string2

and would set PAM_USER to "string2" if it was "string1".  My reading
of the PAM module interface docs are that this case is supported but I
cannot find any module implementing this.

Background: I'd like to use an LDAP directory as auth backend for some
Linux hosts via the PAM LDAP module, but the "uid" attributes in the
LDAP are rather awkward (a single letter + randomly generated
six-digit number) so I would like people to be able to use their
preferred account name for logging in.

I know I can use an arbitrary LDAP attribute for mapping, but I cannot
write to the LDAP database and there is no such field currently. ("sn"
has clashes)

Many thanks in advance for any hint!

Riccardo Murri
Grid Computing Competence Centre,
Organisch-Chemisches Institut, University of Zurich
Winterthurerstrasse 190, CH-8057 ZÃrich (Switzerland)
Tel: +41 44 635 4222
Fax: +41 44 635 6888

Pam-list mailing list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux