s3:winbindd: don't open a new dc connection in winbindd_getpwnam (main winbindd)
authorMichael Adam <obnox@samba.org>
Wed, 3 Dec 2008 15:38:55 +0000 (16:38 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 4 Dec 2008 12:39:05 +0000 (13:39 +0100)
This is just to find the corresponding domain struct.
Actual connection is handled by the domain child.

Michael

source3/winbindd/winbindd_user.c

index e5d0a22a7324e03c905d1832fa526de3121f8f56..fd1fdd36998e62aaa5442d9bfcf239089f03d76b 100644 (file)
@@ -456,7 +456,7 @@ void winbindd_getpwnam(struct winbindd_cli_state *state)
 
        /* Get info for the domain */
 
-       domain = find_domain_from_name(domname);
+       domain = find_domain_from_name_noinit(domname);
 
        if (domain == NULL) {
                DEBUG(7, ("could not find domain entry for domain %s.  "