[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

rename user via PAM module?



Hello,

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
--
Riccardo Murri
Grid Computing Competence Centre, http://www.gc3.uzh.ch/
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
Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list



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

Add to Google Powered by Linux