PAM module to perform auth and change username

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

 



Hi all,

I had a somewhat unique problem relating to PAM on a RHEL system. I hope
someone can take a look and check if there is a way to get this work.

Suppose the Linux box has a user account "A". On the console, I login with
"B",
or "C".  I have written a small PAM module that asks for a PW, and upon
some
internal authentication, it changes the PAM_NAME to "A" and returns
success.
Basically it maps multiple non-existent system logins to a single system
login.
This module is marked "sufficient" and ordered before pam_unix. Now I am
able
to login as "A", but only if "B", or "C", are present in /etc/passwd. If
they are not
present, after my module, the pam_unix module again asks for password, and
returns error at the end of the sequence.

Is it possible to login to a system with a non-existent account by
modifying the
username to a valid account in this manner?

Thanks for any help/pointers!

Regards,

- KK

_______________________________________________
Pam-list mailing list
Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list




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

  Powered by Linux