[Samba] Serverinfo Error

Rowland penny rpenny at samba.org
Thu Jul 25 15:10:36 UTC 2019

On 25/07/2019 15:54, Robert A Wooldridge wrote:
> On 07/25/2019 09:50 AM, Rowland penny via samba wrote:
>> On 25/07/2019 15:33, Robert A Wooldridge via samba wrote:
>>> No, athena is the name of the samba DC.
>>> I did this to verify that there is no user athena: wbinfo -u | grep 
>>> athena
>>> Nothing returns.
>>> If I do kinit administrator the command runs without prompting for 
>>> administrator password.
>> Then you do not have a Serverinfo Error
> Yes, I do.  Here's the command again after I have done kinit:
> athena:~# samba-tool dns serverinfo athena
> ERROR(runtime): uncaught exception - (9717, 
>   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", 
> line 177, in _run
>     return self.run(*args, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 
> 564, in run
>     None, 'ServerInfo')

How are you logging in to the DC and who as ?

If I login as the user 'rowland' to one of my DCs I get this prompt:

SAMDOM\rowland at dc4:~$

If I login as root, I get this:

root at dc4:~#

Your prompt is:


Which I think means you are doing this as 'root', so you should be able 
to kinit as Administrator and get this response:

root at dc4:~# kinit Administrator
Password for Administrator at SAMDOM.EXAMPLE.COM:
root at dc4:~# samba-tool dns serverinfo dc4
   dwVersion                   : 0xece0205
   fBootMethod                 : DNS_BOOT_METHOD_DIRECTORY
   fAdminConfigured            : FALSE
   fAllowUpdate                : TRUE
   fDsAvailable                : TRUE

If you run, on 'athena':

getent passwd Administrator

You should get something similar to this (if you have set up the 
libnns-winbind links):


The first '0' is the important item, if it isn't '0', then 
'Administrator' is just a normal user, as far as Unix is concerned.


More information about the samba mailing list