Andrew Bartlett
30253c11cc
s4-samba-tool: Ensure we also sync the SACL as well as the DACL during sysvolreset
2012-09-04 09:52:23 +02:00
Andrew Bartlett
0aed29105e
s3-smbd: Add security_info_wanted argument to get_nt_acl_no_snum
...
I need to get at the owner, group, DACL and SACL when testing correct
ACL storage.
Andrew Bartlett
2012-08-23 15:02:26 +02:00
Andrew Bartlett
b1825c6421
s4-scripting: Redefine getntacl() as accessing via the smbd VFS or directly
...
This allows us to write tests that compare the smbd vfs with what is
in the DB or xattr.
Andrew Bartlett
2012-08-23 15:02:26 +02:00
Andrew Bartlett
a778662da8
s4-provision: set POSIX ACLs to for use with the smbd file server (s3fs)
...
This handles the fact that smbd will rarely override the POSIX ACL enforced by
the kernel. This has caused issues with the creation of group policies by
other members of the Domain Admins group.
Andrew Bartlett
2012-08-23 15:02:26 +02:00
Andrew Bartlett
4ded55ebcd
s4-python: Ensure we handle the no-eadb case for system xattrs in get/setntacl
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 19 20:51:16 CEST 2012 on sn-devel-104
2012-04-19 20:51:16 +02:00
Andrew Bartlett
628a24172f
s4-python: Add python wrapper for xattr_tdb format xattr storage
...
This uses the format used by the vfs_xattr_tdb module. The s4
posix:eadb format is kept, just in a new file and module.
Andrew Bartlett
2012-04-18 12:05:00 +10:00
Andreas Schneider
b787ba789e
s4-python: Remove env from non-executable samba scripts.
2012-03-13 17:52:29 +01:00
Andrew Tridgell
37bfc4ec38
s4-samba-tool: fixed exception handling in subcommands
...
this switches to the new pattern of:
except Exception, e:
raise CommandError("some error message", e)
2010-11-29 18:04:42 +11:00
Jelmer Vernooij
eb5a8e29cf
s4-python: Some reformatting for the purpose of pydoctor.
2010-11-28 17:23:28 +01:00
Andrew Tridgell
5e8cb67605
s4-provision: fixed eadb automatic and manual setting in provision
...
we should not set posix:eadb in lp in the acl native test code
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-26 03:08:21 +01:00
Andrew Tridgell
1645190b1c
s4-provision: don't test for xattrs if posix:eadb is set
...
when it is set in smb.conf or on the command line, obey the setting
and don't try to test for system xattr support
2010-11-17 23:55:39 +11:00
Andrew Tridgell
4cb423f527
s4-python: python is not always in /usr/bin
...
Using "#!/usr/bin/env python" is more portable. It still isn't ideal
though, as we should really use the python path found at configure
time. We do that in many places already, but some don't.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-24 18:46:57 +10:00
Jelmer Vernooij
51058213cb
s4-test: Use smb.conf path set in environment rather than using
...
command-line options.
This is the first step towards supporting custom test runners.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
c446fbc3bf
s4-python: Fix formatting.
2010-06-11 01:47:55 +02:00
Jelmer Vernooij
7a6f1c7842
s4-python: Fix formatting, use standard convention to call instance methods.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
dd4ef4e106
s4-python: More cleanups.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
86e2b25186
More formatting fixes, pointed out by pylint.
2010-03-01 16:24:58 +01:00
Jelmer Vernooij
31a718aa27
General cleanups of python code, hinted by pyflakes.
2010-03-01 04:46:51 +01:00
Matthieu Patou
8b4b602e1a
python: ntacls, fix a leftover that is not in the try/except branch
...
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-02-24 14:50:30 +01:00
Matthieu Patou
a4b01dd59c
s4: utils recreate in python setntacl and getntacl
...
setntacl is able to set NTACL attribute from command line
getntacl now use getopt for parsing command line option and is also able to
dump the acl in the SDDL format.
2010-01-21 07:11:18 +13:00
Matthieu Patou
f0954c7372
s4: update setntacl and getntacl to select the adaquate backend (fs/tdb) for storing xattr
2010-01-21 07:11:15 +13:00