Álvaro Leão writes:

there's no way with any changes in pam modules/configuration too?

thank's :)

No. The PAM library knows nothing about anyone's home directory, or anything else other than authentication credentials. The PAM library is an API that validates authentication credentials, and identifies the authenticated user.

Ancillary metadata, such as home directory, userid, groupid, and other attributes, are outside of PAM's scope, and must be sourced via some other way.

The PAM module in courier-authlib uses the PAM library to validate the ID and the password, then uses getpwname() to retrieve the account's home directory, userid and groupid. If, on your system, you can configure getpwname() to retrieve that info from somewhere else, then you can do whatever you can do, there.

Otherwise, if you want to retrieve the home directory, the userid and groupid from some other place, but use PAM authentication, you can write your own courier-authlib module to do just that.

Attachment: pgpKxtpdXW344.pgp
Description: PGP signature

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to