s3:winbind: Refactor append_afs_token(), do not take winbindd_response struct as...
authorSamuel Cabrero <scabrero@samba.org>
Thu, 10 Jun 2021 11:23:23 +0000 (13:23 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 8 Apr 2022 20:13:37 +0000 (20:13 +0000)
commitaebe79b7d4150b6656e03519f3b17dd24f5d6167
treef84240dedfe3db2ae0e27f198bdb28f47e8c4c6f
parented2afdd3c8828dfe1259570bcf3f68acee840ed5
s3:winbind: Refactor append_afs_token(), do not take winbindd_response struct as parameter

Refactor the append_afs_token() function to do not take a
winbindd_response as a parameter but its members directly. The AFS token
is returned as an out parameter in a DATA_BLOB, and the caller is
responsible for setting it the extra_data winbindd_response field and
extending the winbindd_response length.

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