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:
parent
a4af4fa9db
commit
caf3af33de
@ -168,7 +168,7 @@ static bool check_client_uid(struct winbindd_cli_state *state, uid_t uid)
|
||||
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, "
|
||||
"actually was %u; denying access\n",
|
||||
(unsigned int)uid, (unsigned int)ret_uid));
|
||||
|
Loading…
Reference in New Issue
Block a user