s3: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 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_group.c

index 3422fdba1c6010435816eff1665a9f4a2f117f26..8b4d4d6decd82a79e139a38b87e0dd6972dcfa41 100644 (file)
@@ -800,7 +800,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);