Web lists-archives.com

Re: [Samba] samba installed but smbclient -L localhost -N fails




On Wed, 20 Feb 2019 13:06:10 -0500
"samba.x.eliezer613--- via samba" <samba@xxxxxxxxxxxxxxx> 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

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba