Author: abartlet
Date: 2006-01-14 07:27:01 +0000 (Sat, 14 Jan 2006)
New Revision: 12930

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12930

Log:
Fix ADS join:  I wasn't filling in the flag 'realm' variable any more.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/libnet/libnet_join.c


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet_join.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_join.c      2006-01-14 07:24:15 UTC 
(rev 12929)
+++ branches/SAMBA_4_0/source/libnet/libnet_join.c      2006-01-14 07:27:01 UTC 
(rev 12930)
@@ -593,9 +593,7 @@
 
        struct dom_sid *account_sid = NULL;
        const char *password_str = NULL;
-       const char *realm = NULL; /* Also flag for remote being AD */
        
-       
        r->out.error_string = NULL;
        r2.samr_handle.out.error_string = NULL;
        
@@ -988,7 +986,7 @@
 
        /* Now, if it was AD, then we want to start looking changing a
         * few more things.  Otherwise, we are done. */
-       if (realm) {
+       if (r->out.realm) {
                status = libnet_JoinADSDomain(ctx, r);
                return status;
        }

Reply via email to