Wilco Baan Hofman
a1fceac844
Rename files to reflect the libpolicy naming convention. Also fix the GNU make build.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
b025715419
Rename libgpo to lib/policy to avoid confusion with samba3 and add waf build
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
626db5c3b5
Add old functionality back which was removed in commit 589a42e2
.
...
Andrew, please review!
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
08a7bb4abc
Add gpo list function for listing applicable GPO's for users/machines.
...
Implements:
* Hierarchical listing through all parent containers
* security ACL checking on the GPO
* User/computer disabled flags on the GPO
* gPLink disabled
* gPLink enforced
* Block inheritance on the container
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
6478a1edb7
Add gPLink and getgpo functionality to net gpo.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
8d5f8f577f
Created net gpo and new libgpo for samba 4. This adds the init function which finds a DC and connects to its LDAP. It also can return information on all group policy objects on a DC.
...
Aborted earlier attempt at reconciliation with samba 3.
Did not work out due to lack of ldb support in samba 3, also the
different registry libraries and different libnet did not help..
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Jelmer Vernooij
9e02764f7c
pydsdb: Mark all SamDB and Schema methods that are in pydsdb as
...
private, to discourage them being called directly.
2010-06-20 15:22:49 +02:00
Jelmer Vernooij
7b32f65600
testparm: Check netbios name and workgroup characters and length.
2010-06-20 15:04:42 +02:00
Jelmer Vernooij
5f3d5a3ad8
provision: Properly cancel transactions on the secrets ldb.
2010-06-20 14:24:54 +02:00
Jelmer Vernooij
237ab66f6c
selftest: Use scripted testparm.
2010-06-20 14:14:47 +02:00
Jelmer Vernooij
7a064b9960
pyparam: Support Loadparm.get(p, "global")
2010-06-20 14:14:01 +02:00
Jelmer Vernooij
a2540fb3cb
ldb: Add ABI file for use when including ildap in the build.
2010-06-20 13:54:51 +02:00
Jelmer Vernooij
08a3e8b9f4
testparm: Simplify default option handling.
2010-06-20 13:51:39 +02:00
Jelmer Vernooij
338315f4d7
pyparam: Allow specifying None as section name to LoadparmContext.get()
...
to mean default section.
2010-06-20 13:51:14 +02:00
Jelmer Vernooij
f0ab4503d6
testparm: Fix suppress prompt option.
2010-06-20 13:47:36 +02:00
Jelmer Vernooij
c0e9a41f67
testparm: Fix exit value, install.
2010-06-20 13:41:38 +02:00
Jelmer Vernooij
de3f9e31d3
s4-python: Add LoadparmService.dump()
2010-06-20 13:40:49 +02:00
Jelmer Vernooij
74c66c9a3f
s4-python: Implement LoadParm.dump().
2010-06-20 13:29:35 +02:00
Jelmer Vernooij
f051a8557f
testparm: Split up functions that do multiple things.
2010-06-20 13:22:26 +02:00
Jelmer Vernooij
0a07b8ebfe
testparm: Convert to Python.
2010-06-20 13:16:30 +02:00
Jelmer Vernooij
8f383fc5c8
s4-python: Remove more unused imports, fix use of sets in upgradehelpers.
2010-06-20 13:15:09 +02:00
Jelmer Vernooij
1e35ec43f2
setnttoken: Remove empty utility.
2010-06-20 12:19:08 +02:00
Jelmer Vernooij
3795358aca
Use standard Python syntax, booleans and set()'s where appropriate.
2010-06-20 12:06:50 +02:00
Jelmer Vernooij
66e27e5214
Remove unnecessary use of transactions.
2010-06-20 11:59:49 +02:00
Jelmer Vernooij
9bcd0daba2
ldb: Change LDBSAMBA back to subsystem, update comments, use different
...
ABI file based on whether ldb_ildap is included.
2010-06-20 11:49:08 +02:00
Stefan Metzmacher
44c01a5eb4
s4:ldb-samba: fix the build without a system ldb
...
metze
2010-06-20 11:33:43 +02:00
Jelmer Vernooij
1f07f53827
ldb: Remove last import of dsdb.
2010-06-20 02:46:57 +02:00
Jelmer Vernooij
94e06fe203
Some more formatting fixes, move schema related functions from Ldb to Schema.
2010-06-20 02:46:57 +02:00
Jelmer Vernooij
d3d7ff66d4
Move convert_to_openldap onto Schema class.
2010-06-20 02:46:56 +02:00
Jelmer Vernooij
afad634207
Formatting cleanups; use True/False for booleans, unnecessary backslashes, spacing.
2010-06-20 01:57:11 +02:00
Jelmer Vernooij
a5e8ef884b
Move a few more samdb-specific methods to SamDB, away from Ldb.
2010-06-20 01:37:06 +02:00
Jelmer Vernooij
1d86414eb0
samdb: Fix formatting, move get_oid_from_attid from Ldb to SamDB.
2010-06-20 01:30:51 +02:00
Jelmer Vernooij
b48182007c
s4-python: Remove trivial function, replace by dictionary.
2010-06-20 01:30:51 +02:00
Lukasz Zalewski
e55c012acc
make test modules for net group set of commands and modification to the newuser to include additional parameters
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 01:29:03 +02:00
Lukasz Zalewski
214133fbec
Modifications extending functionality of newuser cmd and new net group set of commands for group related operations on ldb
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 01:29:03 +02:00
Lukasz Zalewski
c58c0c2129
Modifications extending functionality of newuser cmd and new net group set of commands for group related operations on ldb
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 01:29:03 +02:00
Matthieu Patou
38a26f79ea
s4 upgradeprovision: Make grouped commit / rollback more resistant to unexpected problems
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:09 +02:00
Matthieu Patou
c4f7b0e5f6
s4 upgradeprovision: Check that the policy for DC is present if not warn the user
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:09 +02:00
Matthieu Patou
aea0003d08
s4 upgradeprovision: Emit message instead of crashing when not able to set acl
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:09 +02:00
Matthieu Patou
17af115de5
s4 upgradeprovision: add an option to force the rebuilding of FS ACLs on sysvols share
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:09 +02:00
Matthieu Patou
59f17f9e64
s4 unittests: add unit tests for upgradehelpers
...
The functions tested are:
* construct_existor_expr
* search_constructed_attrs_stored
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:09 +02:00
Matthieu Patou
75389cecdd
s4 upgradeprovision: Add function for searching stored constructed attributes
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
f3e7d0ae8f
s4: Using control bypassoperational allow the logic of this module to be bypassed for some given attributes
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
3ebe560622
ldb: add a new control bypassioperationnal
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
9c5f0ed729
s4 upgradeprovision: additional restyling
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
423f99172e
s4 upgradeprovision: Restyle imports
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
fbeacc1013
s4 upgradeprovision: Move functions to helpers and improve code
...
Among code improvement the most significant part is that we now
compare DN object instead of their string representation. It allow
to better react to case an white space difference.
Some new move objects have been added (ie. System into well known
security principals).
This will allow more unittesting
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
8ff65b0136
s4 python: Update unit tests related to create secrets
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
9c808c47fc
s4: Add comments about setup_secrets
...
Comments are to inform people that this function should not handle
transaction within the function as it is mainly used in provision and
that we want to commit secrets only if all the action on secrets have
worked.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
84342b1c7f
s4 upgradeprovision: Add documentation on the update process
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00