s3:winbind: Refactor winbindd_dual_pam_auth_cached(), return netr_Validation
authorSamuel Cabrero <scabrero@samba.org>
Thu, 10 Jun 2021 14:50:06 +0000 (16:50 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 8 Apr 2022 20:13:37 +0000 (20:13 +0000)
commit1f8d70f188a66ade344bf38f39c0038d833d1b1b
tree143803a5c716454babdaf96712e056e636d43aa9
parente0f798f28df070a66fcc2ef2c59ed46798fc6f2e
s3:winbind: Refactor winbindd_dual_pam_auth_cached(), return netr_Validation

Map netr_SamInfo3 to netr_Validation in this function instead of doing
it in the caller.

Later winbindd_dual_pam_auth() will be converted to a local RPC
handler and it will return the netr_Validation in the 'r' struct.

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