[Samba] samba installed but smbclient -L localhost -N fails
Rowland Penny
rpenny at samba.org
Wed Feb 20 18:23:53 UTC 2019
On Wed, 20 Feb 2019 13:06:10 -0500
"samba.x.eliezer613--- via samba" <samba at lists.samba.org> wrote:
> Hi,
> Finally have samba installed in ubuntu 18.04. Ran dc setup..
> Server Role: active directory domain controller
> Hostname: dc1
> NetBIOS Domain: REDACTED
> DNS Domain: internal
> DOMAIN SID: S-1-5-21-3313626214-3140439515-2095946098
>
> smbstatus:
> Samba version 4.7.6-Ubuntu
> PID Username Group
> Machine Protocol Version
> Encryption Signing
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Service pid Machine Connected at
> Encryption Signing
> ---------------------------------------------------------------------------------------------
>
> No locked files
>
> # smbclient -L localhost -N
> session setup failed: NT_STATUS_INVALID_SID
>
> smb.conf:
> [global]
> dns forwarder = 192.168.25.1
> netbios name = DC1
> realm = INTERNAL
> server role = active directory domain controller
> workgroup = REDACTED
> idmap_ldb:use rfc2307 = yes
>
> [netlogon]
> path = /var/lib/samba/sysvol/internal/scripts
> read only = No
>
> [sysvol]
> path = /var/lib/samba/sysvol
> read only = No
>
> smbclient //localhost/netlogon -UAdministrator -c 'ls'
> Enter REDACTED\Administrator's password:
> session setup failed: NT_STATUS_INVALID_SID
>
> What is missing?
>
You are having a hard time of it ;-)
Now, whilst I do not normally use Ubuntu, I know this does work.
My fellow Samba team member, Louis, has an howto here:
https://github.com/thctlo/samba4/blob/master/full-howto-Ubuntu18.04-samba-AD_DC.txt
Have a look at, it might point you at a possible error you made.
What documentation did you actually follow ?
Rowland
More information about the samba
mailing list