s3-lib Use domain in credentials file for domain in credentials
authorAndrew Bartlett <abartlet@samba.org>
Wed, 8 Jun 2011 05:35:02 +0000 (15:35 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 9 Jun 2011 10:40:09 +0000 (12:40 +0200)
This previously set the workgroup, which is a different thing, but
would have been the default if no domain was specified).  This more
clearly sets the information from the credentials file into the
matching field in the credentials structure.

Andrew Bartlett

source3/lib/popt_common.c

index 128b9c187064eeabff8990aafaa41b1fa4bea56e..8416d70bc4c5a4f60657e5640bce195f209cbb5d 100644 (file)
@@ -473,7 +473,7 @@ static void get_credentials_file(struct user_auth_info *auth_info,
                } else if (strwicmp("username", param) == 0) {
                        set_cmdline_auth_info_username(auth_info, val);
                } else if (strwicmp("domain", param) == 0) {
-                       set_global_myworkgroup(val);
+                       set_cmdline_auth_info_domain(val);
                }
                memset(buf, 0, sizeof(buf));
        }