s4: Changes the old occurences of "lp_realm" in "lp_dnsdomain" where needed
[kai/samba.git] / source4 / lib / tls / tls.c
index ba2e9e431b3b94a4a9d286b1f4524faac25d4fad..470b555aeeaf6633136d1d9a9f80a4f6a9909703 100644 (file)
@@ -377,7 +377,8 @@ struct tls_params *tls_initialise(TALLOC_CTX *mem_ctx, struct loadparm_context *
 
        if (!file_exist(cafile)) {
                char *hostname = talloc_asprintf(mem_ctx, "%s.%s",
-                                                lp_netbios_name(lp_ctx), lp_realm(lp_ctx));
+                                                lp_netbios_name(lp_ctx),
+                                                lp_dnsdomain(lp_ctx));
                if (hostname == NULL) {
                        goto init_failed;
                }