I am unable to join to a domain. The command 'net ads join -U Administrator -d1' produce: Enter Administrator's password: libnet_Join: libnet_JoinCtx: struct libnet_JoinCtx in: struct libnet_JoinCtx dc_name : NULL machine_name : 'SAMBA' domain_name : * domain_name : 'AD.INTERDEKOR.COM.UA' domain_name_type : JoinDomNameTypeDNS (1) account_ou : NULL admin_account : 'Administrator' admin_domain : NULL machine_password : NULL join_flags : 0x00000023 (35) 0: WKSSVC_JOIN_FLAGS_IGNORE_UNSUPPORTED_FLAGS 0: WKSSVC_JOIN_FLAGS_JOIN_WITH_NEW_NAME 0: WKSSVC_JOIN_FLAGS_JOIN_DC_ACCOUNT 0: WKSSVC_JOIN_FLAGS_DEFER_SPN 0: WKSSVC_JOIN_FLAGS_MACHINE_PWD_PASSED 0: WKSSVC_JOIN_FLAGS_JOIN_UNSECURE 1: WKSSVC_JOIN_FLAGS_DOMAIN_JOIN_IF_JOINED 0: WKSSVC_JOIN_FLAGS_WIN9X_UPGRADE 0: WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE 1: WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE 1: WKSSVC_JOIN_FLAGS_JOIN_TYPE os_version : NULL os_name : NULL os_servicepack : NULL create_upn : 0x00 (0) upn : NULL modify_config : 0x00 (0) ads : NULL debug : 0x01 (1) use_kerberos : 0x00 (0) secure_channel_type : SEC_CHAN_WKSTA (2) desired_encryption_types : 0x0000001f (31) libnet_Join: libnet_JoinCtx: struct libnet_JoinCtx out: struct libnet_JoinCtx account_name : NULL netbios_domain_name : NULL dns_domain_name : NULL forest_name : NULL dn : NULL domain_sid : NULL domain_sid : (NULL SID) modified_config : 0x00 (0) error_string : 'failed to lookup DC info for domain 'AD.INTERDEKOR.COM.UA' over rpc: The connection was refused' domain_is_ad : 0x00 (0) set_encryption_types : 0x00000000 (0) result : WERR_CONNECTION_REFUSED Failed to join domain: failed to lookup DC info for domain ' AD.INTERDEKOR.COM.UA' over rpc: The connection was refused Does somebody has any idea?
L.P.H. van Belle
2016-Dec-16 09:10 UTC
[Samba] net ads join -> "The connection was refused"
Hai, You need to use samba-tool to join the DC. The info can be found here : https://wiki.samba.org/index.php/Joining_a_Samba_DC_to_an_Existing_Active_Directory Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Artur Moor via > samba > Verzonden: vrijdag 16 december 2016 9:58 > Aan: samba at lists.samba.org > Onderwerp: [Samba] net ads join -> "The connection was refused" > > I am unable to join to a domain. The command 'net ads join -U > Administrator > -d1' produce: > > Enter Administrator's password: > libnet_Join: > libnet_JoinCtx: struct libnet_JoinCtx > in: struct libnet_JoinCtx > dc_name : NULL > machine_name : 'SAMBA' > domain_name : * > domain_name : 'AD.INTERDEKOR.COM.UA' > domain_name_type : JoinDomNameTypeDNS (1) > account_ou : NULL > admin_account : 'Administrator' > admin_domain : NULL > machine_password : NULL > join_flags : 0x00000023 (35) > 0: WKSSVC_JOIN_FLAGS_IGNORE_UNSUPPORTED_FLAGS > 0: WKSSVC_JOIN_FLAGS_JOIN_WITH_NEW_NAME > 0: WKSSVC_JOIN_FLAGS_JOIN_DC_ACCOUNT > 0: WKSSVC_JOIN_FLAGS_DEFER_SPN > 0: WKSSVC_JOIN_FLAGS_MACHINE_PWD_PASSED > 0: WKSSVC_JOIN_FLAGS_JOIN_UNSECURE > 1: WKSSVC_JOIN_FLAGS_DOMAIN_JOIN_IF_JOINED > 0: WKSSVC_JOIN_FLAGS_WIN9X_UPGRADE > 0: WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE > 1: WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE > 1: WKSSVC_JOIN_FLAGS_JOIN_TYPE > os_version : NULL > os_name : NULL > os_servicepack : NULL > create_upn : 0x00 (0) > upn : NULL > modify_config : 0x00 (0) > ads : NULL > debug : 0x01 (1) > use_kerberos : 0x00 (0) > secure_channel_type : SEC_CHAN_WKSTA (2) > desired_encryption_types : 0x0000001f (31) > libnet_Join: > libnet_JoinCtx: struct libnet_JoinCtx > out: struct libnet_JoinCtx > account_name : NULL > netbios_domain_name : NULL > dns_domain_name : NULL > forest_name : NULL > dn : NULL > domain_sid : NULL > domain_sid : (NULL SID) > modified_config : 0x00 (0) > error_string : 'failed to lookup DC info for > domain > 'AD.INTERDEKOR.COM.UA' over rpc: The connection was refused' > domain_is_ad : 0x00 (0) > set_encryption_types : 0x00000000 (0) > result : WERR_CONNECTION_REFUSED > Failed to join domain: failed to lookup DC info for domain ' > AD.INTERDEKOR.COM.UA' over rpc: The connection was refused > > Does somebody has any idea? > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
On Fri, 16 Dec 2016 10:10:51 +0100 "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:> Hai, > > You need to use samba-tool to join the DC. > > The info can be found here : > https://wiki.samba.org/index.php/Joining_a_Samba_DC_to_an_Existing_Active_Directory > >I am not sure that the OP is trying to join a DC, but if he is, then Louis is correct, otherwise, is everything setup correctly? Especially, does the machine that is trying to join the domain use the DC as its nameserver ? Rowland