mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
r22635: make it possible to not turn off dns canonicalization of hostnames
with krb5:set_dns_canonicalize=yes needed for the drsuapi replication, but we should fix this with a kdc locator plugin ... metze (This used to be commit f0a12355bcfab47663e62f3d8ae820815210cdc5)
This commit is contained in:
parent
19a6878380
commit
7983989508
@ -218,7 +218,7 @@ static NTSTATUS gensec_gssapi_start(struct gensec_security *gensec_security)
|
||||
}
|
||||
|
||||
/* don't do DNS lookups of any kind, it might/will fail for a netbios name */
|
||||
ret = gsskrb5_set_dns_canonicalize(FALSE);
|
||||
ret = gsskrb5_set_dns_canonicalize(lp_parm_bool(-1, "krb5", "set_dns_canonicalize", false));
|
||||
if (ret) {
|
||||
DEBUG(1,("gensec_krb5_start: gsskrb5_set_dns_canonicalize failed\n"));
|
||||
talloc_free(gensec_gssapi_state);
|
||||
|
@ -473,7 +473,8 @@ krb5_error_code smb_krb5_init_context(void *parent_ctx,
|
||||
|
||||
/* Set options in kerberos */
|
||||
|
||||
krb5_set_dns_canonicalize_hostname((*smb_krb5_context)->krb5_context, FALSE);
|
||||
krb5_set_dns_canonicalize_hostname((*smb_krb5_context)->krb5_context,
|
||||
lp_parm_bool(-1, "krb5", "set_dns_canonicalize", false));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user