mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
libnet: only create local private krb5.conf if joining an AD domain
This prevents irritating warning messages. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jun 17 08:13:55 CEST 2016 on sn-devel-144
This commit is contained in:
parent
9a274d9ae7
commit
d2ebe2d17d
@ -2515,9 +2515,11 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
|
||||
|
||||
#ifdef HAVE_ADS
|
||||
|
||||
create_local_private_krb5_conf_for_domain(
|
||||
r->out.dns_domain_name, r->out.netbios_domain_name,
|
||||
sitename, smbXcli_conn_remote_sockaddr(cli->conn));
|
||||
if (r->out.domain_is_ad) {
|
||||
create_local_private_krb5_conf_for_domain(
|
||||
r->out.dns_domain_name, r->out.netbios_domain_name,
|
||||
sitename, smbXcli_conn_remote_sockaddr(cli->conn));
|
||||
}
|
||||
|
||||
if (r->out.domain_is_ad &&
|
||||
!(r->in.join_flags & WKSSVC_JOIN_FLAGS_JOIN_UNSECURE)) {
|
||||
|
Loading…
Reference in New Issue
Block a user