1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3-winbind: Allow sec_initial_uid() to store creds.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jul  2 23:26:24 CEST 2013 on sn-devel-104
This commit is contained in:
Andreas Schneider 2013-07-01 13:02:48 +02:00 committed by Jeremy Allison
parent a4af4fa9db
commit caf3af33de

View File

@ -168,7 +168,7 @@ static bool check_client_uid(struct winbindd_cli_state *state, uid_t uid)
return False; return False;
} }
if (uid != ret_uid) { if (uid != ret_uid && ret_uid != sec_initial_uid()) {
DEBUG(1, ("check_client_uid: Client lied about its uid: said %u, " DEBUG(1, ("check_client_uid: Client lied about its uid: said %u, "
"actually was %u; denying access\n", "actually was %u; denying access\n",
(unsigned int)uid, (unsigned int)ret_uid)); (unsigned int)uid, (unsigned int)ret_uid));