I have installed samba DC with BIND9_dlz on Centos 7. However, when im trying to test dynamic dns and perform update:
Code:
samba_dnsupdate --verbose --all-names
it's failing for all names with below errors:
Code:
Failed to connect host 192.168.8.210 on port 135 - NT_STATUS_CONNECTION_REFUSED
Failed to connect host 192.168.8.210 (rpicent1.mcnet.local) on port 135 - NT_STATUS_CONNECTION_REFUSED.
ERROR(<class 'samba.drs_utils.drsException'>): DRS connection to rpicent1.mcnet.local failed - drsException: DRS connection to rpicent1.mcnet.local failed: (3221226038L, 'The transport-connection attempt was refused by the remote system.')
File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/drs.py", line 44, in drsuapi_connect
(ctx.drsuapi, ctx.drsuapi_handle, ctx.bind_supported_extensions) = drs_utils.drsuapi_connect(ctx.server, ctx.lp, ctx.creds)
File "/usr/local/samba/lib/python2.7/site-packages/samba/drs_utils.py", line 58, in drsuapi_connect
raise drsException("DRS connection to %s failed: %s" % (server, e))
I have been looking for it online and i found that samba is supposed to listen on this port, to be more precise Endpoint Mapper (DCE/RPC Locator Service) should be listening on this port. But it's not:
Code:
[root@rpicent1 mcadmin]# netstat -plaunt | egrep "ntp|bind|named|samba|?mbd"
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 675/named
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 609/smbd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 609/smbd
tcp 0 0 192.168.8.210:53 0.0.0.0:* LISTEN 675/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 675/named
tcp6 0 0 ::1:953 :::* LISTEN 675/named
tcp6 0 0 :::445 :::* LISTEN 609/smbd
tcp6 0 0 :::139 :::* LISTEN 609/smbd
tcp6 0 0 ::1:53 :::* LISTEN 675/named
udp 0 0 192.168.8.255:137 0.0.0.0:* 638/nmbd
udp 0 0 192.168.8.210:137 0.0.0.0:* 638/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 638/nmbd
udp 0 0 192.168.8.255:138 0.0.0.0:* 638/nmbd
udp 0 0 192.168.8.210:138 0.0.0.0:* 638/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 638/nmbd
udp 0 0 192.168.8.210:53 0.0.0.0:* 675/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 675/named
udp6 0 0 ::1:53 :::* 675/named
I can't find anything that is related to Endpoint Mapper on the server.
Below some info that might be helpfull.
Code:
[root@rpicent1 mcadmin]# cat /usr/local/samba/etc/smb.conf
# Global parameters
[global]
netbios name = RPICENT1
realm = MCNET.LOCAL
server role = active directory domain controller
server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate
workgroup = MCNET
idmap_ldb:use rfc2307 = yes
[netlogon]
path = /usr/local/samba/var/locks/sysvol/mcnet.local/scripts
read only = No
[sysvol]
path = /usr/local/samba/var/locks/sysvol
read only = No
I noticed that there is another smb.conf file in /etc/samba/smb.conf which have default values, but when i was checking the smb.service, it's loading the one from /usr/local/samba... so seems okay.
Code:
root@rpicent1 mcadmin]# cat /etc/krb5.conf
[libdefaults]
default_realm = MCNET.LOCAL
dns_lookup_realm = false
dns_lookup_kdc = true
I will appreciate any help