[Samba] smbclient ends in NT_STATUS_CONNECTION_REFUSED error
basti.mueller31 at web.de
basti.mueller31 at web.de
Tue Jun 13 18:42:02 UTC 2017
I have applied the changes as suggested. After restarting the server, smbclient-command worked! But after I restarted the Samba Client with „/etc/init.d/samba restart“ I was once again confronted with the same problem! Again, only another server restart did the trick. Now I am facing this problem constantly. As soon as I restart, this command among others won’t work without displaying an error message.
For testing purposes, I have started a new upgrade after uninstalling the bind, using „SAMBA_INTERNAL“ for the Classic Upgrade.
The Smb.conf now looks like this:
root at hsad-srv-03:~# cat /etc/samba/smb.conf
# Global parameters
[global]
workgroup = EXAMPLE
realm = example.com
netbios name = PDC
server role = active directory domain controller
idmap_ldb:use rfc2307 = yes
dns forwarder = 8.8.8.8
[netlogon]
path = /var/lib/samba/sysvol/example.com/scripts
read only = No
[sysvol]
path = /var/lib/samba/sysvol
read only = No
root at hsad-srv-03:~#
After restarting the server, same problem…
root at server:~# smbclient -L localhost -U%
Domain=[EXAMPLE] OS=[Windows 6.1] Server=[Samba 4.2.14-Debian]
Sharename Type Comment
--------- ---- -------
netlogon Disk
sysvol Disk
IPC$ IPC IPC Service (Samba 4.2.14-Debian)
Domain=[EXAMPLE] OS=[Windows 6.1] Server=[Samba 4.2.14-Debian]
Server Comment
--------- -------
PDC PDC (server)
Workgroup Master
--------- -------
EXAMPLE PDC
WORKGROUP HSEW-FRH
root at server:~# samba-tool gpo list Administrator
GPOs for user Administrator
Default Domain Policy {31B2F340-016D-11D2-945F-00C04FB984F9}
As soon as I restart the Samba-Client:
root at server:~# samba-tool gpo list Administrator
ERROR(runtime): uncaught exception - ('Could not find a DC for domain', RuntimeError('NT_STATUS_OBJECT_NAME_NOT_FOUND',))
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/gpo.py", line 349, in run
self.url = dc_url(self.lp, self.creds, H)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/gpo.py", line 117, in dc_url
raise RuntimeError("Could not find a DC for domain", e)
root at server:~# smbclient -d10 -L localhost -U%
INFO: Current debug levels:
all: 10
tdb: 10
printdrivers: 10
lanman: 10
smb: 10
rpc_parse: 10
rpc_srv: 10
rpc_cli: 10
passdb: 10
sam: 10
auth: 10
winbind: 10
vfs: 10
idmap: 10
quota: 10
acls: 10
locking: 10
msdfs: 10
dmapi: 10
registry: 10
scavenger: 10
dns: 10
ldb: 10
lp_load_ex: refreshing parameters
Initialising global parameters
INFO: Current debug levels:
all: 10
tdb: 10
printdrivers: 10
lanman: 10
smb: 10
rpc_parse: 10
rpc_srv: 10
rpc_cli: 10
passdb: 10
sam: 10
auth: 10
winbind: 10
vfs: 10
idmap: 10
quota: 10
acls: 10
locking: 10
msdfs: 10
dmapi: 10
registry: 10
scavenger: 10
dns: 10
ldb: 10
Processing section "[global]"
doing parameter workgroup = EXAMPLE
doing parameter realm = example.com
doing parameter netbios name = PDC
doing parameter server role = active directory domain controller
doing parameter idmap_ldb:use rfc2307 = yes
doing parameter dns forwarder = 192.168.15.1
pm_process() returned Yes
lp_servicenumber: couldn't find homes
added interface br0 ip=192.168.15.2 bcast=192.168.15.255 netmask=255.255.255.0
Netbios name list:-
my_netbios_names[0]="PDC"
Client started (version 4.2.14-Debian).
Opening cache file at /var/cache/samba/gencache.tdb
Opening cache file at /var/run/samba/gencache_notrans.tdb
sitename_fetch: No stored sitename for EXAMPLE.COM
internal_resolve_name: looking up localhost#20 (sitename (null))
name localhost#20 found.
remove_duplicate_addrs2: looking for duplicate address/port pairs
Connecting to 127.0.0.1 at port 445
Connecting to 127.0.0.1 at port 139
Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)
Which information/contents could help? I am clueless!
More information about the samba
mailing list