winbindd: don't open a new dc connection in winbindd_getgrnam (main winbindd)
authorMichael Adam <obnox@samba.org>
Wed, 3 Dec 2008 14:59:17 +0000 (15:59 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 4 Dec 2008 11:49:58 +0000 (12:49 +0100)
This is just to find the corresponding domain struct.
Actual connection is handled by the domain child.

Michael

source/winbindd/winbindd_group.c

index c21229455946870a48a45574e4e708f58c56748e..930725025c25214f0fd80bc950d46ca866d202c4 100644 (file)
@@ -707,7 +707,7 @@ void winbindd_getgrnam(struct winbindd_cli_state *state)
 
        /* Get info for the domain */
 
-       if ((domain = find_domain_from_name(name_domain)) == NULL) {
+       if ((domain = find_domain_from_name_noinit(name_domain)) == NULL) {
                DEBUG(3, ("could not get domain sid for domain %s\n",
                          name_domain));
                request_error(state);