samba.x.eliezer613 at spamgourmet.com
2019-Feb-20 18:06 UTC
[Samba] samba installed but smbclient -L localhost -N fails
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? Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20190220/5cb99c92/signature.sig>
Rowland Penny
2019-Feb-20 18:23 UTC
[Samba] samba installed but smbclient -L localhost -N fails
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