[SSSD] [PATCH] Let the PAM client send its PID

Simo Sorce ssorce at redhat.com
Fri Sep 11 21:46:24 UTC 2009


On Fri, 2009-09-11 at 17:10 +0200, Sumit Bose wrote:
> Most of items are not mandatory at the protocol level. If e.g. the
> remote host is not known to the client it is not sent to the server
> and
> the server complains if he really needs it, e.g. the user name.
> 
> I haven't put a check like 'if cli_pid==0 do not send to the server'
> because as getpid(2) says "These functions are always successful.".
> 
> On the server side cli_pid is 0 if the client does not send a PID
> item.
> 
> I think the way it currently works is the way your are expecting it to
> work.

Will the unpacking function work is the client doesn't send the pid at
all (ie it is an older client ?).
If not we probably need to bump up the protocol version so that
communication will fail much earlier and with clearer errors.

Simo.


-- 
Simo Sorce * Red Hat, Inc * New York




More information about the sssd-devel mailing list