1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

r38: Fix caching of name->sid lookups

Volker
This commit is contained in:
Volker Lendecke 2004-04-05 12:14:31 +00:00 committed by Gerald (Jerry) Carter
parent de93e66fc7
commit 23c5769545

View File

@ -606,10 +606,11 @@ static void wcache_save_name_to_sid(struct winbindd_domain *domain,
centry = centry_start(domain, status);
if (!centry)
return;
centry_put_uint32(centry, type);
centry_put_sid(centry, sid);
fstrcpy(uname, name);
strupper_m(uname);
centry_end(centry, "NS/%s", sid_to_string(sid_string, sid));
centry_end(centry, "NS/%s/%s", domain->name, uname);
DEBUG(10,("wcache_save_name_to_sid: %s -> %s\n", uname, sid_string));
centry_free(centry);
}