Felipe_G0NZÁLEZ_SANTIAG0
2016-Nov-08 14:08 UTC
[Samba] ERROR:connection refused after provision
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
THEN:::
add reverse zone
#samba-tool dns zonecreate 127.0.0.1 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 127.0.0.1 3.53.10.in-addr.arpa
-UAdministrator%free.2016
Failed to connect host 127.0.0.1 on port 135 - NT_STATUS_CONNECTION_REFUSED
Failed to connect host 127.0.0.1 (127.0.0.1) 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
Universidad_de_las_Ciencias_Informáticas
Centro_de_Software_Libre
La_Habana. CUBA
"Remind yourself that you cannot fail at being yourself"
Wayne Dyer
See inline comments: On Tue, 8 Nov 2016 09:08:34 -0500 (CST) Felipe_G0NZÁLEZ_SANTIAG0 via samba <samba at lists.samba.org> wrote:> Hello, I'm installing Samba4 AD from repo Ubuntu16.04. These are the > steps I've applied: > > > > 1. editing fstab in EXT3Why are you using 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 provisionHow are provisioning ?> 6. Restart services bind9, ntp and samba > 7. config Bind9 (add 'include' in /etc/bind/named.conf.local )Please post your bind9 conf files.> 8. set permissions to bind9 > 9. set nameserver in resolv.confWhat are you setting the nameserver to ?> 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 > > THEN::: > add reverse zone > #samba-tool dns zonecreate 127.0.0.1 3.53.10.in-addr.arpa > -UAdministrator%free.2016 >Try it like this: samba-tool dns zonecreate 127.0.0.1 3.53.10.in-addr.arpa -UAdministrator Rowland