Jelmer Vernooij
4291e28a93
s4-python: Fix formatting.
2010-01-25 15:18:02 +01:00
Jelmer Vernooij
8562bbdce5
pyxattr: Move to the same directory as the xattr code.
2010-01-25 15:18:01 +01:00
Endi S. Dewata
5cdd30011c
s4-provision: Fixed typos and redundant code
...
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-01-23 22:41:10 +01:00
Jelmer Vernooij
9ddeac17f5
pyxattr: Factor out helper functions.
2010-01-21 17:17:02 +13:00
Jelmer Vernooij
8b0f31994c
pyxattr: Simplify tests.
2010-01-21 16:56:23 +13:00
Jelmer Vernooij
05b4e29f7f
pyxattr: Fix tests by not opening tdb files multiple times.
2010-01-21 16:45:06 +13:00
Jelmer Vernooij
14b0fed96c
pyxattr: Fix tests by avoiding opening tdb files multiple times.
2010-01-21 16:44:20 +13:00
Jelmer Vernooij
253a232d30
pyxattr: Fix memory leaks.
2010-01-21 16:44:12 +13:00
Jelmer Vernooij
9a25380838
pyxattr: Simplify tests.
2010-01-21 16:41:30 +13:00
Jelmer Vernooij
342aff75c5
pyxattr: Use standard functions for error handling.
2010-01-21 16:28:24 +13:00
Jelmer Vernooij
6afb162533
pyxattr: Remove unnecessary hacks.
2010-01-21 16:18:19 +13:00
Matthieu Patou
c12d5363d6
s4-python: add some helper for converting ldb_flag to text
2010-01-21 07:11:21 +13: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
d4514a6539
provision: introduce use-xattr parameter for defining where to store attributes
...
This option allow simple user (non root) to invoke provision without facing an error
while insuring that ACL on shared files will always be set
2010-01-21 07:11:17 +13:00
Matthieu Patou
711c7606a5
s4-tests: register new unit tests
...
make unit test emit a visible warning
2010-01-21 07:11:17 +13:00
Matthieu Patou
10995d9256
s4-python: add unit test for ntacls manipulation in python
2010-01-21 07:11:16 +13:00
Matthieu Patou
3789ba2654
s4-python: add more unit tests for xattr manipulation in python
2010-01-21 07:11:16 +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
Matthieu Patou
e78626dc2e
s4: Set acls correctly on all sysvol and scripts shares
2010-01-21 07:11:15 +13:00
Matthieu Patou
9b70979bc9
s4: Make unixid optional
...
Make unixid optional, if value not supplied next id from id pool will be used.
Create a function to get next id in id pool.
2010-01-21 07:11:15 +13:00
Matthieu Patou
028c9b1c15
s4: regroup gpo modification in one function, set acl on files accordingly with ACL in LDAP
2010-01-21 07:11:14 +13:00
Matthieu Patou
08c59c38a2
s4: Create unit tests for python "samba.xattr" module
2010-01-21 07:11:14 +13:00
Matthieu Patou
c80ecd9964
s4: add python bindings for wrap_(s|g)etxattr
2010-01-21 07:11:13 +13:00
Jelmer Vernooij
28577aae92
Import testtools as well, required for subunit.
2010-01-16 19:53:49 +13:00
Jelmer Vernooij
53d7c4c7a2
Fix permissions - net subcommand modules don't need to be executable.
2010-01-16 19:53:48 +13:00
Nadezhda Ivanova
a4eaa11134
Fixed a problem with incorrect default SD owner/group.
2010-01-13 15:16:38 +02:00
Zahari Zahariev
5d1aa4c5b7
Comparison tool for LDAP servers (using Ldb)
...
This tool is integrated with Samba4 Ldb. It provides a useful output
where you can find easy differences in objects or attributes within
naming context (Domain, Configuration or Schema).
Added functionality for two sets of credentials.
2010-01-13 12:06:17 +02:00
Andrew Tridgell
8a09dc1266
s4-schema: fixed the SDDL for the schema root security descriptor
...
This was preventing a DCPROMO client from allowing outgoing
replication
2010-01-09 21:59:33 +11:00
Andrew Tridgell
38909a4ae5
s4-schema: switch to W2K8-R2 schema
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-01-08 18:24:53 +11:00
Andrew Tridgell
d371b0eabe
s4-schema: added adminDisplayName and adminDescription
...
These are missing from the WSPP schemas
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-01-08 18:24:53 +11:00
Andrew Tridgell
a7fffe8da0
s4-provision: do a self join for all server types
...
We need a machine account so the RID allocation code can work. It
seems better to use the same code paths for a domain controller and
standalone server to avoid testing headaches with little used code.
2010-01-08 13:03:05 +11:00
Andrew Tridgell
1f25d0a5ad
s4-provision: re-open sam.ldb after creating the schema
...
This enables the full schema during the rest of the provision, which
means indexing is enabled (along with index error checking, such as
duplicate SIDs)
2010-01-08 13:03:03 +11:00
Andrew Tridgell
53d10d139e
s4-provision: don't hard wire the creation of the RID Set object
...
We now create it automatically in the samldb module when the first
user is created.
The creation of the dns user also had to move to the _modify.ldif as
it now relies on the fSMO role being setup for the RID Manager
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-01-08 13:03:00 +11:00
Andrew Tridgell
fcfb5d7b63
s4-provision: allow provision modifies to add records
...
we need to recognise a changetype of 'add'
2010-01-08 13:02:59 +11:00
Andrew Tridgell
5eb3b919c5
s4-provision: the DC object itself needs a fixed objectSID
...
We can't allocate a objectSID until we have rIDSetReferences, but that
is in the DC object, so we have to force the objectSID of the DC
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-01-08 13:02:58 +11:00
Andrew Tridgell
3239872bbc
s4-net: fixed pwsettings command
...
Don't override user settings with current settings
2009-12-31 17:33:33 +11:00
Jelmer Vernooij
66f81d18ce
samba: Fix whitespace, remove pointless 'pass' statement.
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:31 +11:00
Jelmer Vernooij
ea5af6e30c
pyldb: Add dom_sid.split in favor of less powerful dom_sid_to_rid().
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:30 +11:00
Jelmer Vernooij
7effe2d2e3
net: Support 'super' commands implemented in Python.
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:28 +11:00
Jelmer Vernooij
9e5ef916d4
net: Move 'newuser' to 'net newuser'
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:27 +11:00
Jelmer Vernooij
73594c248f
net: Fix tests and documentation of setexpiry.
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:25 +11:00
Jelmer Vernooij
345b25d059
net: Move setexpiry to 'net setexpiry'
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:24 +11:00
Jelmer Vernooij
b531696a5b
net: Move 'setpassword' to 'net setpassword'.
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:22 +11:00
Jelmer Vernooij
588b3e6181
python: When updating sys.path to include the Samba python path, avoid throwing away the changes made by site.py.
2009-12-29 16:26:20 +01:00
Jelmer Vernooij
e2c4d8281d
s4/net: Allow options before arguments for Python commands.
2009-12-29 16:26:20 +01:00
Jelmer Vernooij
433f58f5a7
s4/net: Pass all arguments through to the Python commands.
2009-12-29 16:26:20 +01:00
Jelmer Vernooij
e60a40e287
s4/net: Add domainlevel subcommand.
2009-12-29 16:26:20 +01:00
Jelmer Vernooij
732a7630e9
Use CommandError exception to deal with problems during net commands.
2009-12-29 16:26:19 +01:00
Jelmer Vernooij
eaf4a9afb2
s4/net: Make pwsettings a net subcommand.
2009-12-29 16:26:19 +01:00
Jelmer Vernooij
8c19cd2dea
netcmd: Add some basic tests.
2009-12-29 16:26:19 +01:00