On Thu, 27 Aug 2015 18:54:09 +0100 Rowland Penny <rowlandpenny241155 at gmail.com> wrote: [snip]> > Well, there are couple of things I can see wrong, one on the howto > and one in your smb.conf, first the howto: > > 127.0.0.1 localhost > 127.0.1.1 pdc.mydomain.local pdc > > 10.0.0.5 pdc.mydomain.local pdc > > Change it to this: > > 127.0.0.1 localhost > #127.0.1.1 pdc.mydomain.local pdc > > 10.0.0.5 pdc.mydomain.local pdcI'd already done that, but thanks.> > You are probably using dnsmasq, I would advise you to turn it offNo, I'm not. I'm running bind9. The server is also the primary (only, actually) nameserver on the LAN. (Or will be.)> > Now your smb.conf > > dns forwarder = 127.0.0.1 > > Change this to: > > dns forwarder = 8.8.8.8 # or any other external DNS server > > Lets see what happens once your DNS is correct.BIND is already set up to forward requests for zones for which it's not authoritative. I'm confused as to why any of that would affect how smbd advertises what workgroup it's in? Thanks, Jim
On 27/08/15 19:40, Jim Seymour wrote:> On Thu, 27 Aug 2015 18:54:09 +0100 > Rowland Penny <rowlandpenny241155 at gmail.com> wrote: > > [snip] >> Well, there are couple of things I can see wrong, one on the howto >> and one in your smb.conf, first the howto: >> >> 127.0.0.1 localhost >> 127.0.1.1 pdc.mydomain.local pdc >> >> 10.0.0.5 pdc.mydomain.local pdc >> >> Change it to this: >> >> 127.0.0.1 localhost >> #127.0.1.1 pdc.mydomain.local pdc >> >> 10.0.0.5 pdc.mydomain.local pdc > I'd already done that, but thanks. > >> You are probably using dnsmasq, I would advise you to turn it off > No, I'm not. I'm running bind9. The server is also the primary (only, > actually) nameserver on the LAN. (Or will be.)OK, Ubuntu uses dnsmasq as standard, so unless you have turned it off in NetworkManager.conf ( I think thats the right name) you are using dnsmasq. Also if the smb.conf you posted is your actual one, then either you are using bind flatfile (not recommended) or you are not using Bind, it should have a line like this in it: server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbind, ntp_signd, kcc, dnsupdate> >> Now your smb.conf >> >> dns forwarder = 127.0.0.1 >> >> Change this to: >> >> dns forwarder = 8.8.8.8 # or any other external DNS server >> >> Lets see what happens once your DNS is correct. > BIND is already set up to forward requests for zones for which it's not > authoritative.If you are using bind, then you do not need and shouldn't have the 'dns forwarder' line> > I'm confused as to why any of that would affect how smbd advertises > what workgroup it's in?It doesn't and you are worrying about nothing, if you run the command on any samba4 DC, you will get the same sort of answer i.e. this is the bottom of one of my DCs Domain=[EXAMPLE] OS=[Unix] Server=[Samba 4.1.17-Debian] Server Comment --------- ------- Workgroup Master --------- ------- WORKGROUP That howto you followed was incorrect when it was written, you do not need to alter fstab, what it tells you add are actually the defaults for ext4, the ntp settings are wrong, I could go on but I wont. I would suggest you read the samba wiki: https://wiki.samba.org/index.php/Main_Page Rowland> Thanks, > Jim >
On Thu, 27 Aug 2015 20:03:21 +0100 Rowland Penny <rowlandpenny241155 at gmail.com> wrote: [snip]> > That howto you followed was incorrect when it was written,I was coming to that conclusion.> you do not > need to alter fstab, what it tells you add are actually the defaults > for ext4,Very well.> the ntp settings are wrong,Those, I ignored. (Our firewall gets NTP from four stratum 2 and one stratum 1 server. Everything internal gets it from there.)> I could go on but I wont.Yeah... I don't think you need to, because...> > I would suggest you read the samba wiki: > https://wiki.samba.org/index.php/Main_PageI just found it and, from what little I've read, already: What I have configured is hopeless. It's odd, how you can search on a subject, and unerringly find the wrong source of information, isn't it? I think an "apt-get purge" is in order, and start over. Thanks for the help! Jim
Possibly Parallel Threads
- Samba As PDC: Wrong Workgroup?
- Samba As PDC: Wrong Workgroup?
- Samba As PDC: Wrong Workgroup?
- After joining domain, Samba uses the workgroup name, not the FQDN when running the net ads command
- After joining domain, Samba uses the workgroup name, not the FQDN when running the net ads command