Bug 11110 - uid_to_sid()/gid_to_sid() always asks winbind for the answer if the uid/gid cannot be converted.
uid_to_sid()/gid_to_sid() always asks winbind for the answer if the uid/gid c...
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other
unspecified
All All
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-20 20:10 UTC by YOUZHONG YANG
Modified: 2015-02-20 20:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description YOUZHONG YANG 2015-02-20 20:10:12 UTC
I confirmed that the following two line changes fixes the issue.

--- a/source3/lib/idmap_cache.c
+++ b/source3/lib/idmap_cache.c
@@ -216,6 +216,8 @@ static void idmap_cache_xid2sid_parser(time_t timeout, DATA_BLOB blob,
        if (value[0] != '-') {
                state->ret = string_to_sid(state->sid, value);
        }
+       else
+               state->ret = true;
        if (state->ret) {
                *state->expired = (timeout <= time(NULL));
        }