thank's again Sam...
I know about the limits of Pam...my ideia was made something to
returns the metadata, like the getpwname() ...i need to implement this
in a debian lenny...i dont know yet if i can configure getpwname() in
debian, but, i'll read about it...

Chris St Denis
>
> Take a look at "man nsswitch.conf"
>
> You may be able to get something along the lines of what you want with
> NIS or other nsswitch backend.
>
It's my next shot...my boss ideia is authenticate our email with pam
to get some independency in authentication metod...in fact, we have
our own authentication program, which, in theory, need to "talk" with
pam...but i'm a c/java developer, not a linux master(yet!),so, i've
more questions than anyone...

but you are really helping...




Álvaro César Leão Teixeira



2010/11/25 Sam Varshavchik <[email protected]>:
> Á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.
>
>
> ------------------------------------------------------------------------------
> 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
>
>

------------------------------------------------------------------------------
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