[Samba] After joining domain, Samba uses the workgroup name, not the FQDN when running the net ads command
Rowland penny
rpenny at samba.org
Thu Dec 3 19:39:05 UTC 2015
On 03/12/15 17:52, Jonathan S. Fisher wrote:
>
>
> jonathan.fisher at freeradius:~$ sudo net ads join -Uadministrator
> Enter administrator's password:
> Using short domain name -- WINDOWS
> Joined 'FREERADIUS' to dns domain 'windows.corp.XXX.com
> <http://windows.corp.XXX.com>'
> jonathan.fisher at freeradius:~$ hostname
> freeradius
> jonathan.fisher at freeradius:~$ hostname -d
> windows.corp.XXX.com <http://windows.corp.XXX.com>
> jonathan.fisher at freeradius:~$ hostname -f
> freeradius.windows.corp.XXX.com <http://freeradius.windows.corp.XXX.com>
> jonathan.fisher at freeradius:~$ hostname -i
> 192.168.127.134
> jonathan.fisher at freeradius:~$ cat /etc/krb5.conf
> [libdefaults]
> default_realm = WINDOWS.CORP.XXX.COM <http://WINDOWS.CORP.XXX.COM>
> jonathan.fisher at freeradius:~$ cat /etc/resolv.conf
> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by
> resolvconf(8)
> # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
> nameserver 192.168.127.129
> search windows.corp.XXX.com <http://windows.corp.XXX.com>
OK, earlier you posted this:
192.168.127.131 whiskey.windows.corp.XXX.com
<http://whiskey.windows.corp.XXX.com> whiskey
192.168.112.4 wine..windows.corp.XXX.com <http://windows.corp.XXX.com> wine
So what is '192.168.127.129' ? it certainly isn't one of your DCs, which
is what it should be pointing at. I am sure I have said this before, but
your AD domain clients must use a DC for a nameserver.
Fix this and I am fairly sure everything will work as it should.
Rowland
> jonathan.fisher at freeradius:~$ sudo net ads testjoin
> Join is OK
> jonathan.fisher at freeradius:~$ sudo service sernet-samba-winbindd
> restart && sudo service sernet-samba-nmbd restart && sudo service
> sernet-samba-smbd restart
> Shutting down SAMBA winbindd : *
> Starting SAMBA winbindd : *
> Shutting down SAMBA nmbd : *
> Starting SAMBA nmbd : *
> Shutting down SAMBA smbd : *
> Starting SAMBA smbd : *
> jonathan.fisher at freeradius:~$ sudo wbinfo -i WINDOWS\\administrator
> WINDOWS\administrator:*:4294967295:4294967295:Administrator:/home/WINDOWS/administrator:/bin/false
> jonathan.fisher at freeradius:~$ sudo net rpc info -UWINDOWS\\Administrator
> Unable to find a suitable server for domain WINDOWS
>
>
> Sigh. I really appreciate your guy's help. I know this thread is
> starting to drone on.
>
>
More information about the samba
mailing list