summaryrefslogtreecommitdiff
path: root/source3/lib/util_cmdline.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_cmdline.c')
-rw-r--r--source3/lib/util_cmdline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_cmdline.c b/source3/lib/util_cmdline.c
index 6c2802c208d..39f136821ce 100644
--- a/source3/lib/util_cmdline.c
+++ b/source3/lib/util_cmdline.c
@@ -228,7 +228,7 @@ bool set_cmdline_auth_info_machine_account_creds(struct user_auth_info *auth_inf
return false;
}
- if (asprintf(&account, "%s$@%s", global_myname(), lp_realm()) < 0) {
+ if (asprintf(&account, "%s$@%s", lp_netbios_name(), lp_realm()) < 0) {
return false;
}