This reverts commit
487f5e7b4768cfe9e511b0ba56f16c411e21f702.
I was confused about the real meaning of find_domain_from_name_noinit()
vs. find_domain_from_name(). We don't need the connection established
here, just the domain struct which gets initialized by rescan_trusted_domains().
Sorry for the noise.
Michael
if (!pw || !dom_name || !user_name)
return False;
- domain = find_domain_from_name(dom_name);
+ domain = find_domain_from_name_noinit(dom_name);
if (domain == NULL) {
DEBUG(5,("winbindd_fill_pwent: Failed to find domain for %s.\n",
dom_name));