]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
netapi: fix NetGetJoinableOUs_l.
authorGünther Deschner <gd@samba.org>
Fri, 29 Aug 2008 11:31:55 +0000 (13:31 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 29 Aug 2008 11:58:06 +0000 (13:58 +0200)
It needs to try the dns domain name for the
ads connection.

Guenther

source/lib/netapi/joindomain.c

index 2a6fc80ca372b30982c076c39e78e20a8ca1efc1..17ea3923fee5f254cc8b076dcb393083937421bb 100644 (file)
@@ -364,7 +364,7 @@ WERROR NetGetJoinableOUs_l(struct libnetapi_ctx *ctx,
 
        dc = strip_hostname(info->dc_unc);
 
-       ads = ads_init(r->in.domain, r->in.domain, dc);
+       ads = ads_init(info->domain_name, info->domain_name, dc);
        if (!ads) {
                return WERR_GENERAL_FAILURE;
        }