take care not to expire the name2sid cache entry just because
that child does not know that the primary domain is offline.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@22726
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
struct cache_entry *centry = NULL;
NTSTATUS status;
fstring uname;
+ BOOL original_online_state;
domain = find_lookup_domain_from_name(domain_name);
if (domain == NULL) {
fstrcpy(uname, name);
strupper_m(uname);
+ /* If we are doing a cached logon, temporarily set the domain
+ offline so the cache won't expire the entry */
+
+ original_online_state = domain->online;
+ domain->online = False;
centry = wcache_fetch(cache, domain, "NS/%s/%s", domain_name, uname);
+ domain->online = original_online_state;
+
if (centry == NULL) {
return False;
}