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

lingpanda101 lingpanda101 at gmail.com
Mon Dec 11 13:51:01 UTC 2017

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 : : Ok
> ping nameserver1: : Ok
> ping nameserver2: : Ok
> Check ping google dns : : 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

     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.
         default_realm = DOMAIN.LOCAL
         dns_lookup_realm = false
         dns_lookup_kdc = true

         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

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.

ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 
'NoneType' object has no attribute 'canonical_str'
   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/fsmo.py", line 
415, in run
     forest_dn = samba.dn_from_dns_name(samdb.forest_dns_name())
   File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 655, in 
     return forest_dn.canonical_str().split('/')[0]

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


More information about the samba mailing list