centry_put_uint32(centry, type);
centry_put_sid(centry, sid);
fstrcpy(uname, name);
centry_put_uint32(centry, type);
centry_put_sid(centry, sid);
fstrcpy(uname, name);
centry_end(centry, "NS/%s/%s", domain_name, uname);
DEBUG(10,("wcache_save_name_to_sid: %s\\%s -> %s (%s)\n", domain_name,
uname, sid_string_dbg(sid), nt_errstr(status)));
centry_end(centry, "NS/%s/%s", domain_name, uname);
DEBUG(10,("wcache_save_name_to_sid: %s\\%s -> %s (%s)\n", domain_name,
uname, sid_string_dbg(sid), nt_errstr(status)));
centry_end(centry, "NSS/NA/%s", uname);
DEBUG(10,("wcache_save_username_alias: %s -> %s\n", name, alias ));
centry_end(centry, "NSS/NA/%s", uname);
DEBUG(10,("wcache_save_username_alias: %s -> %s\n", name, alias ));
centry_end(centry, "NSS/AN/%s", uname);
DEBUG(10,("wcache_save_alias_username: %s -> %s\n", alias, name ));
centry_end(centry, "NSS/AN/%s", uname);
DEBUG(10,("wcache_save_alias_username: %s -> %s\n", alias, name ));
centry = wcache_fetch(cache, domain, "NSS/NA/%s", upper_name);
centry = wcache_fetch(cache, domain, "NSS/NA/%s", upper_name);
centry = wcache_fetch(cache, domain, "NSS/AN/%s", upper_name);
centry = wcache_fetch(cache, domain, "NSS/AN/%s", upper_name);
/* Only save the reverse mapping if this was not a UPN */
if (!strchr(name, '@')) {
/* Only save the reverse mapping if this was not a UPN */
if (!strchr(name, '@')) {
strlower_m(discard_const_p(char, name));
wcache_save_sid_to_name(domain, status, sid, domain_name, name, *type);
}
strlower_m(discard_const_p(char, name));
wcache_save_sid_to_name(domain, status, sid, domain_name, name, *type);
}