mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
r12788: Since we have agreed on the case of winbindd names, we can store a
sid_to_name lookup result already after doing a sucessfull name_to_sid lookup. Guenther (This used to be commit 2456832a6d9ad2590dc02e147cc2c2e87d5a3a7a)
This commit is contained in:
parent
7745148580
commit
1e9d8d4857
@ -991,8 +991,11 @@ do_query:
|
||||
/* and save it */
|
||||
wcache_save_name_to_sid(domain, status, domain_name, name, sid, *type);
|
||||
|
||||
/* We can't save the sid to name mapping as we don't know the
|
||||
correct case of the name without looking it up */
|
||||
if (NT_STATUS_IS_OK(status)) {
|
||||
strupper_m(CONST_DISCARD(char *,domain_name));
|
||||
strlower_m(CONST_DISCARD(char *,name));
|
||||
wcache_save_sid_to_name(domain, status, sid, domain_name, name, *type);
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user