Web lists-archives.com

Re: [Samba] samba-tool ntacl sysvolcheck ERROR




I am sorry,

What OS = Centos 7
What version of Samba = version 4.7.1
How did you provision AD = from samba wiki

samba-tool domain join mydomain.cu DC -U"mydomain\administrator" --dns-backend=SAMBA_INTERNAL

What is in smb.conf
[global]
    netbios name = SRV-CDS
    realm = mydomain.CU
    server role= active directory domain controller
    workgroup = mydomain
    dns forwarder = 8.8.8.8
    log level = passdb:5 auth:10
    log file = /var/log/samba/samba.log
    vfs objects = full_audit
    ntlm auth = yes
    client ntlmv2 auth = yes
    acl_xattr:ignore system acls = yes
[netlogon]
     path = /usr/local/samba/var/locks/sysvol/mydomain.cu/scripts
     read only = no
[sysvol]
    path = /usr/local/samba/var/locks/sysvol
    read only = no

[root@srv-cds ~]# samba-tool gpo aclcheck
ERROR(<type 'exceptions.KeyError'>): uncaught exception - 'No such element'
  File "/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 176, in _run
    return self.run(*args, **kwargs)
  File "/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/gpo.py", line 1150, in run
    ds_sd_ndr = m['nTSecurityDescriptor'][0]


samba-tool dbcheck --cross-ncs --fix

is ok


best regards


El 12/14/2017 a las 11:03 AM, Rowland Penny via samba escribió:
On Thu, 14 Dec 2017 10:10:25 -0500
"Lic. Liusmer Martínez Q via samba" <samba@xxxxxxxxxxxxxxx> wrote:

[root@srv-cds ~]# samba-tool ntacl sysvolcheck

Attempting to register passdb backend smbpasswd
Successfully added passdb backend 'smbpasswd'
Attempting to register passdb backend tdbsam
Successfully added passdb backend 'tdbsam'
Attempting to register passdb backend samba_dsdb
Successfully added passdb backend 'samba_dsdb'
Attempting to register passdb backend samba4
Successfully added passdb backend 'samba4'
Attempting to register passdb backend ldapsam
Successfully added passdb backend 'ldapsam'
Attempting to register passdb backend NDS_ldapsam
Successfully added passdb backend 'NDS_ldapsam'
Attempting to find a passdb backend to match
samba_dsdb:tdb:///usr/local/samba/private/sam.ldb (samba_dsdb)
Found pdb backend samba_dsdb
pdb backend samba_dsdb:tdb:///usr/local/samba/private/sam.ldb has a
valid init
ERROR(<type 'exceptions.TypeError'>): uncaught exception - (61, 'No
data available')
    File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
line 176, in _run
      return self.run(*args, **kwargs)
    File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/ntacl.py",
line 270, in run
      lp)
    File
"/usr/local/samba/lib64/python2.7/site-packages/samba/provision/__init__.py",
line 1714, in checksysvolacl
      fsacl = getntacl(lp, dir_path,
direct_db_access=direct_db_access, service=SYSVOL_SERVICE)
    File
"/usr/local/samba/lib64/python2.7/site-packages/samba/ntacls.py",
line 81, in getntacl
      xattr.XATTR_NTACL_NAME)


What OS ?
What version of Samba ?
How did you provision AD ?
What is in smb.conf ?

Rowland



El 12/14/2017 a las 11:03 AM, Rowland Penny via samba escribió:
On Thu, 14 Dec 2017 10:10:25 -0500
"Lic. Liusmer Martínez Q via samba" <samba@xxxxxxxxxxxxxxx> wrote:


[root@srv-cds ~]# samba-tool ntacl sysvolcheck

Attempting to register passdb backend smbpasswd
Successfully added passdb backend 'smbpasswd'
Attempting to register passdb backend tdbsam
Successfully added passdb backend 'tdbsam'
Attempting to register passdb backend samba_dsdb
Successfully added passdb backend 'samba_dsdb'
Attempting to register passdb backend samba4
Successfully added passdb backend 'samba4'
Attempting to register passdb backend ldapsam
Successfully added passdb backend 'ldapsam'
Attempting to register passdb backend NDS_ldapsam
Successfully added passdb backend 'NDS_ldapsam'
Attempting to find a passdb backend to match
samba_dsdb:tdb:///usr/local/samba/private/sam.ldb (samba_dsdb)
Found pdb backend samba_dsdb
pdb backend samba_dsdb:tdb:///usr/local/samba/private/sam.ldb has a
valid init
ERROR(<type 'exceptions.TypeError'>): uncaught exception - (61, 'No
data available')
    File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
line 176, in _run
      return self.run(*args, **kwargs)
    File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/ntacl.py",
line 270, in run
      lp)
    File
"/usr/local/samba/lib64/python2.7/site-packages/samba/provision/__init__.py",
line 1714, in checksysvolacl
      fsacl = getntacl(lp, dir_path,
direct_db_access=direct_db_access, service=SYSVOL_SERVICE)
    File
"/usr/local/samba/lib64/python2.7/site-packages/samba/ntacls.py",
line 81, in getntacl
      xattr.XATTR_NTACL_NAME)


What OS ?
What version of Samba ?
How did you provision AD ?
What is in smb.conf ?

Rowland



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