[PATCH] Re: [Samba] SYSVOL ACLs and GPOs

Luiz Gustavo dos S. Costa luizgustavo at mundounix.com.br
Sat Oct 27 08:25:58 MDT 2012


Hi Andrew,

not work this patch, now, other error, see below:

root at samba4:/usr/local/samba # bin/samba-tool ntacl sysvolcheck -d3
lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
params.c:pm_process() - Processing configuration file
"/usr/local/samba/etc/smb.conf"
lp_load_ex: refreshing parameters
Initialising global parameters
max_open_files: increasing sysctl_max (3405) to minimum Windows limit (16384)
rlimit_max: increasing rlimit_max (3405) to minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file
"/usr/local/samba/etc/smb.conf"
Processing section "[global]"
Processing section "[netlogon]"
Processing section "[sysvol]"
Processing section "[devel]"
Processing section "[publico]"
ldb_wrap open of idmap.ldb
ndr_pull_error(2): Bad switch value 0 at default/librpc/gen_ndr/ndr_xattr.c:1072
ERROR(runtime): uncaught exception - (2, 'Bad Switch')
  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py",
line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py",
line 245, in run
    lp)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/provision/__init__.py",
line 1565, in checksysvolacl
    fsacl = getntacl(lp, dir_path, direct_db_access=direct_db_access)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/ntacls.py",
line 74, in getntacl
    ntacl = ndr_unpack(xattr.NTACL, attribute)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/ndr.py",
line 45, in ndr_unpack
    object.__ndr_unpack__(data, allow_remaining=allow_remaining)


2012/10/26 Andrew Bartlett <abartlet at samba.org>:
> On Fri, 2012-10-26 at 15:04 -0200, Luiz Gustavo dos S. Costa wrote:
>> more errors with sysvol:
>>
>> samba4# bin/samba-tool ntacl sysvolcheck -d3
>> lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
>> params.c:pm_process() - Processing configuration file
>> "/usr/local/samba/etc/smb.conf"
>> lp_load_ex: refreshing parameters
>> Initialising global parameters
>> rlimit_max: increasing rlimit_max (11095) to minimum Windows limit (16384)
>> params.c:pm_process() - Processing configuration file
>> "/usr/local/samba/etc/smb.conf"
>> Processing section "[global]"
>> Processing section "[netlogon]"
>> Processing section "[sysvol]"
>> Processing section "[engenharia]"
>> Processing section "[pessoal]"
>> Processing section "[financeiro]"
>> Processing section "[comercial]"
>> Processing section "[producao]"
>> Processing section "[eletrica]"
>> Processing section "[aparas]"
>> Processing section "[contabilidade]"
>> Processing section "[qualidade]"
>> ldb_wrap open of idmap.ldb
>> ERROR(<type 'exceptions.TypeError'>): uncaught exception - (34,
>> 'Result too large')
>>   File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py",
>> line 175, in _run
>>     return self.run(*args, **kwargs)
>>   File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py",
>> line 245, in run
>>     lp)
>>   File "/usr/local/samba/lib/python2.7/site-packages/samba/provision/__init__.py",
>> line 1565, in checksysvolacl
>>     fsacl = getntacl(lp, dir_path, direct_db_access=direct_db_access)
>>   File "/usr/local/samba/lib/python2.7/site-packages/samba/ntacls.py",
>> line 73, in getntacl
>>     xattr.XATTR_NTACL_NAME)
>
> Try this patch.  We need to cope with system xattr interfaces where we
> need to guess the size of the xattr.
>
> Thanks,
>
> Andrew Bartlett
>
> --
> Andrew Bartlett                                http://samba.org/~abartlet/
> Authentication Developer, Samba Team           http://samba.org
>


More information about the samba-technical mailing list