summaryrefslogtreecommitdiff
path: root/source3/librpc/crypto/gse_krb5.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc/crypto/gse_krb5.c')
-rw-r--r--source3/librpc/crypto/gse_krb5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/librpc/crypto/gse_krb5.c b/source3/librpc/crypto/gse_krb5.c
index 830d517bc7..81a9a07596 100644
--- a/source3/librpc/crypto/gse_krb5.c
+++ b/source3/librpc/crypto/gse_krb5.c
@@ -90,7 +90,7 @@ static krb5_error_code get_host_principal(krb5_context krbctx,
char *host_princ_s = NULL;
int err;
- err = asprintf(&host_princ_s, "%s$@%s", global_myname(), lp_realm());
+ err = asprintf(&host_princ_s, "%s$@%s", lp_netbios_name(), lp_realm());
if (err == -1) {
return -1;
}