[Samba] Fwd: net ads join -> "The connection was refused"
Artur Moor
digunit24 at gmail.com
Fri Dec 16 13:28:08 UTC 2016
So I stopped samba deamons (smbd and nmbd) and ran 'net ads join -U
Administrator -d1' that gives same error:
root at samba:~# net ads join -U Administrator -d1
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
2016-12-16 14:17 GMT+01:00 Rowland Penny via samba <samba at lists.samba.org>:
> On Fri, 16 Dec 2016 13:46:24 +0100
> Artur Moor via samba <samba at lists.samba.org> wrote:
>
> > If I remove 'nmbd bind explicit broadcast = no' in 'smb4.conf', then
> > nmbd wan't start and I get following in the log:
> >
> > [2016/12/16 12:37:35.075428, 0]
> > ../source3/lib/util_sock.c:396(open_socket_in)
> > bind failed on port 137 socket_addr = 10.0.140.255.
> > Error = Can't assign requested address
> > [2016/12/16 12:37:35.075626, 0]
> > ../source3/nmbd/nmbd_subnetdb.c:127(make_subnet)
> > nmbd_subnetdb:make_subnet()
> > Failed to open nmb bcast socket on interface 10.0.140.255 for port
> > 137. Error was Can't assign requested address
> > [2016/12/16 12:37:35.075718, 0]
> > ../lib/util/become_daemon.c:111(exit_daemon)
> > STATUS=daemon failed to start: NMBD failed when creating subnet
> > lists, error code 13
> >
> > Therefore 'nmbd bind explicit broadcast = no' ist set.
>
> It looks like something is already running on port 137.
> There should be no Samba deamons running when you try to join the
> domain.
>
> once you have joined the domain, you should then start the nmbd, smbd
> and winbindd deamons. They should all start, the only way I can think
> of another deamon claiming port 137, is that you are also starting the
> 'samba' daemon, this should only be started on a Samba AD DC.
>
> >
> > If I run 'net ads join -U Administrator' the smbd and the nmbd
> > deamons are running.
>
> Stop all running Samba deamons and then try to join again.
>
> Rowland
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
More information about the samba
mailing list