s3:winbind: Refactor winbindd_pam_auth_crap_{send,recv}
authorSamuel Cabrero <scabrero@samba.org>
Thu, 24 Feb 2022 17:02:42 +0000 (18:02 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 30 Apr 2022 00:10:34 +0000 (00:10 +0000)
commitdd69be802085d96af8875f2137a8261231d453b1
tree2fc671f904a52cccda14faae3ed76057ec0b9c77
parent0b4d581d35815e7ddc7d79e1433a5a5888b31e29
s3:winbind: Refactor winbindd_pam_auth_crap_{send,recv}

The winbindd_dual_pam_auth_crap() will be converted to a local RPC call
handler and the winbindd_response won't be filled by the child process
but in the parent's winbindd_pam_auth_crap_recv() function.

Move all code filling the winbindd_response struct to a common place,
winbindd_pam_auth_crap_recv().

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_pam_auth_crap.c