1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source3/libnet
Uri Simchoni ed2ed1ad69 net: fix the order of DC lookup methods when joining a domain
The dsgetdcname() function is able to try just DNS lookup, just NetBIOS,
or start with DNS and fall back to NetBIOS. For "net ads join", we know
most of the time whether the name of the domain we're joining is a DNS
name or a NetBIOS name. In that case, it makes no sense to try both lookup
methods, especially that DNS may fail and we want to fall back from site-aware
DNS lookup to site-less DNS lookup, with no NetBIOS lookup in between.

This change lets "net ads join" tell libnet what is the type of the domain
name, if it is known.

Signed-off-by: Uri Simchoni <urisimchoni@gmail.com>
Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE>
Reviewed-by: Jeremy Allison <jra@samba.org>
2015-07-09 12:33:25 +02:00
..
libnet_dssync_keytab.c s3-libnet: add ads forward declaration in libnet keytab code. 2011-11-02 16:59:32 +01:00
libnet_dssync_passdb.c s3:libnet: remove unused variables 2015-03-20 20:43:11 +01:00
libnet_dssync.c idl:drsuapi: Manage all possible lengths of drsuapi_DsBindInfo 2014-07-07 05:22:33 +02:00
libnet_dssync.h s3-dssync-passdb: add basic routines and net function. 2011-02-02 15:45:20 +01:00
libnet_join.c net: fix the order of DC lookup methods when joining a domain 2015-07-09 12:33:25 +02:00
libnet_join.h s3:libnet_join: make use of rpccli_{create,setup}_netlogon_creds() 2014-01-07 12:47:10 +01:00
libnet_keytab.c s3-talloc Change TALLOC_ZERO_P() to talloc_zero() 2011-06-09 12:40:08 +02:00
libnet_keytab.h s3-libnet: add ads forward declaration in libnet keytab code. 2011-11-02 16:59:32 +01:00
libnet_samsync_display.c Convert uint64 to uint64_t 2015-05-15 19:31:24 +02:00
libnet_samsync_keytab.c s3-dsgetdcname: always pass in messaging context. 2010-09-23 10:26:25 -07:00
libnet_samsync_ldif.c Convert uint32/16/8 to _t in source3/libnet. 2015-05-13 19:11:23 +02:00
libnet_samsync_passdb.c Convert uint64 to uint64_t 2015-05-15 19:31:24 +02:00
libnet_samsync.c s3:libnet: pass in struct netlogon_creds_cli_context from the caller. 2014-01-07 12:47:13 +01:00
libnet_samsync.h s3:libnet: pass in struct netlogon_creds_cli_context from the caller. 2014-01-07 12:47:13 +01:00
netapi.pc.in build: Provide .pc file for libnetapi 2012-05-30 04:15:11 +02:00