[Samba] ERROR:connection refused after provision

Felipe_G0NZÁLEZ_SANTIAG0 fgonzalez at uci.cu
Tue Nov 8 14:08:34 UTC 2016

Hello, I'm installing Samba4 AD from repo Ubuntu16.04. These are the steps I've applied: 

    1. editing fstab in EXT3 
    2. install dependencies ( acl attr quota fam libnet-ldap-perl ) 
    3. install krb5-user, bind9, ntp, winbind, ldbtools and samba. 
    4. remove smb.conf, if exists 
    5. samba-tool provision 
    6. Restart services bind9, ntp and samba 
    7. config Bind9 (add 'include' in /etc/bind/named.conf.local ) 
    8. set permissions to bind9 
    9. set nameserver in resolv.conf 
    10. edit apparmor profile 
    11. config Kerberos ( ln -sf /var/lib/samba/private/krb5.conf /etc/krb5.conf ) 
    12. set ntp permissions 
    13. config ntp.conf 

add reverse zone 
#samba-tool dns zonecreate 3.53.10.in-addr.arpa -UAdministrator%free.2016 

BUT in this step I get the following error : 

root at ubuntu:~# samba-tool dns zonecreate 3.53.10.in-addr.arpa -UAdministrator%free.2016 
Failed to connect host on port 135 - NT_STATUS_CONNECTION_REFUSED 
Failed to connect host ( on port 135 - NT_STATUS_CONNECTION_REFUSED. 
ERROR(runtime): uncaught exception - (-1073741258, 'The connection was refused') 
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run 
return self.run(*args, **kwargs) 
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 850, in run 
dns_conn = dns_connect(server, self.lp, self.creds) 
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 40, in dns_connect 
dns_conn = dnsserver.dnsserver(binding_str, lp, creds) 

Any idea? 

Felipe_ González_Santiago 
La_Habana. CUBA 

"Remind yourself that you cannot fail at being yourself" 
Wayne Dyer 

More information about the samba mailing list