mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
r13309: If the sid in the winbind name2sid cache is not valid (NT_STATUS_NONE_MAPPED),
we have S-0-0 as a SID in the cache. This leads to ugly level 0 messages from string_to_sid. Avoid them. Volker
This commit is contained in:
parent
72c6432ae8
commit
d62da3e987
@ -960,8 +960,10 @@ static NTSTATUS name_to_sid(struct winbindd_domain *domain,
|
||||
if (!centry)
|
||||
goto do_query;
|
||||
*type = (enum SID_NAME_USE)centry_uint32(centry);
|
||||
centry_sid(centry, sid);
|
||||
status = centry->status;
|
||||
if (NT_STATUS_IS_OK(status)) {
|
||||
centry_sid(centry, sid);
|
||||
}
|
||||
|
||||
DEBUG(10,("name_to_sid: [Cached] - cached name for domain %s status %s\n",
|
||||
domain->name, get_friendly_nt_error_msg(status) ));
|
||||
|
Loading…
Reference in New Issue
Block a user