Revert "s3:winbindd_user: create domain connection in winbindd_fill_pwent if necessary."
authorMichael Adam <obnox@samba.org>
Mon, 9 Feb 2009 22:24:31 +0000 (23:24 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 9 Feb 2009 22:30:42 +0000 (23:30 +0100)
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

source3/winbindd/winbindd_user.c

index 8b481f972c6f5a953ca16c733e43011fecbcf8a4..a6740b1fb8659db14a284c776420218d034391db 100644 (file)
@@ -80,7 +80,7 @@ static bool winbindd_fill_pwent(TALLOC_CTX *ctx, char *dom_name, char *user_name
        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));