1
0
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:
Günther Deschner 2006-01-09 12:59:41 +00:00 committed by Gerald (Jerry) Carter
parent 7745148580
commit 1e9d8d4857

View File

@ -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;
}