s3:winbind: Refactor append_unix_username(), do not take winbindd_response struct...
authorSamuel Cabrero <scabrero@samba.org>
Thu, 10 Jun 2021 11:18:54 +0000 (13:18 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 8 Apr 2022 20:13:37 +0000 (20:13 +0000)
commited2afdd3c8828dfe1259570bcf3f68acee840ed5
treef609af8bf05f223485b9dd6baac1a90878e21bfe
parent5439ecf723c7b4e52ef5ff32a5848e3b3b082d19
s3:winbind: Refactor append_unix_username(), do not take winbindd_response struct as parameter

Refactor the append_unix_username() function to do not take a
winbindd_response struct as parameter but its members. The
unix username is returned as an out parameter and the caller is
responsible for setting it in the winbindd_response struct.

Later winbindd_dual_pam_auth() will be converted to a local RPC
call handler and the netr_Validation will be returned in the 'r' struct
from the child to the parent. The parent will then fill the
winbindd_response struct.

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