[Samba] smbclient ends in NT_STATUS_CONNECTION_REFUSED error

basti.mueller31 at web.de basti.mueller31 at web.de
Mon Jun 12 12:01:45 UTC 2017


>> Hi,
>>
>> After a few years I wanted to migrate my Samba 4(as a PDC,version 4.2
>> from debian package) to a Samba4 in AD-Mode (with classic upgrade).
>> The PDC is running on an OpenLDAP and his own DNS Server(bind).

>This is confusing, you have upgraded from a PDC and you have called
>your new DC 'PDC', so I hope you mean the old PDC was running openldap.
Sorry... Yes the old PDC was running OpenLDAP.
>> As I
>> was upgrading I was following the Samba-Wiki instruction and had no
>> error message during this. Now I have the issue, that I’m getting
>> error messages when I’m executing the command „smbclient –d10 –L
>> 192.168.15.2 –U%“.


>Try it like this: smbclient -L localhost
I get:
root at server:~# smbclient -L localhost
Enter root's password: 
Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)

>> My resolv.conf:
>> domain example.com
>> search example.com
>> nameserver 192.168.15.2

>'domain' and 'search' are mutually exclusive in /etc/resolv.conf, or to
>put it another way, you cannot have both, the last one wins, so I
>suggest you remove the 'domain' line ;-)
Fixed - thanks! :)
>> What could be the reason that no connection can be developed?

>Don't really know (yet), can you post:

>/etc/krb5.conf
[libdefaults]
        default_realm = HIPERSCAN.COM
        dns_lookup_realm = false
        dns_lookup_kdc = true

>/etc/hosts
127.0.0.1       localhost server.example.com  server
>/etc/hostname
server
>your bind conf files

named.conf:
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
---
named.conf.default
zone "." {
        type hint;
        file "/etc/bind/db.root";
};

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};
zones:
---
named.conf.local
zone "hiperscan.com" {
        type master;
        file "/etc/bind/hiperscan.com.db";
        notify no;
        allow-update { localhost; };
};

zone "15.168.192.in-addr.arpa" {
        type master;
        file "/etc/bind/192.168.15.db";
        allow-update { localhost; };
};
---
named.conf.options:
options {
        directory "/var/cache/bind";
        forwarders {
                193.189.250.99;
                192.168.15.1;
        };

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
};



More information about the samba mailing list