[Samba] DNS issue with clean install of samba 4.5.12-Debian

Rowland Penny rpenny at samba.org
Mon Dec 11 15:19:42 UTC 2017


On Mon, 11 Dec 2017 08:51:01 -0500
lingpanda101 via samba <samba at lists.samba.org> wrote:

> On 12/8/2017 2:54 PM, Taylor Hammerling via samba wrote:
> > Glad you guys replied, here is my output :D
> >
> > root at dc1:~# ./samba-setup-checkup.sh
> > Check hostnames : Ok
> > ./samba-setup-checkup.sh: line 89: [: too many arguments
> > Checking detected host ipnumbers from resolv.conf and default
> > gateway Ping gateway ip : 172.28.0.1 : Ok
> > ping nameserver1: 172.28.255.49 : Ok
> > ping nameserver2: 172.28.0.1 : Ok
> > Check ping google dns : 8.8.8.8 : Ok
> > root at dc1:~#
> >
> >
> > so, everything looks good except for the part that bombs out :D
> >
> > On Fri, Dec 8, 2017 at 1:43 PM, Rowland Penny via samba <
> > samba at lists.samba.org> wrote:
> >
> >> On Fri, 8 Dec 2017 14:25:19 -0500
> >> lingpanda101 via samba <samba at lists.samba.org> wrote:
> >>
> >>> On 12/8/2017 1:50 PM, Rowland Penny via samba wrote:
> >>>> On Fri, 8 Dec 2017 12:27:30 -0600
> >>>> Taylor Hammerling via samba <samba at lists.samba.org> wrote:
> >>>>
> >>>>> Will do, thanks!
> >>>>>
> >>>> Specifically, go here:
> >>>> https://github.com/thctlo/samba4/blob/master/samba-setup-checkup.sh
> >>>>
> >>>> Download and run the script and then look at the output, you can
> >>>> send the output direct to me if needed and I will see if I can
> >>>> spot any problems.
> >>>>
> >>>> Rowland
> >>>>
> >>>>
> >>> Rowland,
> >>>
> >>>       Decided to run your script for giggles and I receive a error
> >>>
> >>> ./samba-setup-checkup.sh: line 89: [: too many arguments
> >>>
> >>>
> >> Funnily enough, so do I ;-)
> >>
> >> it isn't my script, it is Louis's, but I had some input and it
> >> looks like I will be having some more.
> >>
> >> To be continued.......
> >>
> >> Rowland
> >>
> >> --
> >> To unsubscribe from this list go to the following URL and read the
> >> instructions:  https://lists.samba.org/mailman/options/samba
> >>
> >
> >
> Rowland,
> 
>      Ran again with updated script. Fixed initial error. I will
> preface with my OS is Ubuntu 14.05.5 LTS. This script should still
> work, no?
> 
> I did notice I had a error in my resolv.conf. It had details
> pertaining to another server. Must of mixed up my SSH window. Fixed
> and ran again but threw an error with my /etc/krb.conf.conf file. Not
> really an error but a change I knew I made to it.
> 
> dns_lookup_realm = true
> 
> I reverted the change just to satisfy the script, but it continues to 
> report the prior discrepancy I believe.
> 
> Incorrect '/etc/krb5.conf' file.
> Expected:
> [libdefaults]
>          default_realm = DOMAIN.LOCAL
>          dns_lookup_realm = false
>          dns_lookup_kdc = true
> 
> Got:
> [libdefaults]
>          default_realm = DOMAIN.LOCAL
>          dns_lookup_realm = false
>          dns_lookup_kdc = true
> 
> Is their a cache I'm not aware of because these two look identical
> now? I then get a legitimate error

No, there isn't a cache, it reads /etc/krb5.conf every time the script
is run. The two files do seem identical, but the script checks if the
file exists, checks how many lines (should be 4), is there a
'[libdefaults]' line, what REALM is being used, is 'lookup_realm' set
to 'false' and is 'lookup_kdc' set to 'true', the krb5.conf should only
be displayed if at least one of these is incorrect.

> 
> ldb: unable to stat module /usr/lib/x86_64-linux-gnu/samba/ldb : No
> such file or directory
> 
> I didn't have samba-dsdb-modules installed. It isn't necessary for a 
> proper install of Samba I believe but only for the purposes of this 
> script? I went and installed anyways, but I was greeted with another 
> error I don't know how to proceed.

This must be coming from a 'samba-tool' command and the 'samba-tool'
commands should only be run a DC and you need ALL the samba packages.

> Is this supposed to be a debian only script from Louis? If so my 
> apologizes for wasting your time.

Well, Louis wrote the original script for debian, but I use Devuan and
there is little in the script that relies on debian, mostly it is just
'what is this script running on' ;-)

Rowland




More information about the samba mailing list