summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-06-20s4: Using control bypassoperational allow the logic of this module to be ↵Matthieu Patou1-10/+39
bypassed for some given attributes Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20ldb: add a new control bypassioperationnalMatthieu Patou4-0/+38
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: additional restylingMatthieu Patou1-31/+42
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Restyle importsMatthieu Patou1-15/+15
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Move functions to helpers and improve codeMatthieu Patou5-297/+494
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-20s4 python: Update unit tests related to create secretsMatthieu Patou1-0/+13
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4: Add comments about setup_secretsMatthieu Patou1-0/+2
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-20s4 upgradeprovision: Add documentation on the update processMatthieu Patou1-9/+162
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 python: Add unit tests for upgradeprovision related stuffMatthieu Patou2-0/+162
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: move some functions to upgradehelpers for unit testsMatthieu Patou2-130/+154
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Fix styleMatthieu Patou1-85/+137
reformat *_update_samdb functions fix_partition_sd rebuild_sd update_samdb update_privilege update_machine_account_password update_gpo Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Use replPropertyMetaData for better guessMatthieu Patou1-179/+565
Rework upgradeprovision in order to get more precise updates when doing upgrade provision. This is done through the use of replPropertyMetaData information and raw information revealed by the "reveal" control. The code has been changed also to avoid double free error when changing the schema (for old provision). Checking of SD is done a bit more cleverly as we compare the different parts for an ACL separately. Fix logic when upgrading provision without replPropertyMetaData infos Also for old provision (pre alpha9) do not copy the usn range because data here will be wrong Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Reformat attributes lists and reformat parserMatthieu Patou1-17/+33
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Inform about new dns dynamic update if the provision ↵Matthieu Patou1-3/+41
didn't have it Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: fix styleMatthieu Patou1-76/+123
add_deletedobj_containers add missing objects clean add-mising handle special add + dump denied Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgrade provision: Refactor code to do all the modification within 1 ↵Matthieu Patou1-308/+413
transaction Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgrade provision: Fix style in gen_dn_indexMatthieu Patou1-2/+1
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 Add functions related to ldb manipulation when doing upgradeMatthieu Patou1-17/+83
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 provision: Add information about provisioned usn range in sam.ldbMatthieu Patou1-0/+96
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-19python: Use samba.tests.TestCase, make sure base class tearDown andJelmer Vernooij28-80/+107
setUp methods are called, fix formatting.
2010-06-19acl: Clean up formatting, use samba.tests.TestCase.Jelmer Vernooij1-124/+128
2010-06-19pyrpc: Fix reference counting when using secondary connections.Jelmer Vernooij2-18/+43
2010-06-19samba.tests.samba3: Clean up imports, use new TestCase class.Jelmer Vernooij1-13/+38
2010-06-19ntacls: Raise TestSkipped rather than writing to stdout.Jelmer Vernooij1-16/+15
2010-06-19python/passwords: Clean up imports.Jelmer Vernooij1-8/+7
2010-06-19samba.tests: Provide TestCase and TestSkipped classes (from testtools) for ↵Jelmer Vernooij1-6/+9
convenience.
2010-06-19pytdb: Cleanup formatting.Jelmer Vernooij1-3/+8
2010-06-19dsdb_schema_info: Clean up imports, avoid using rpc test case forJelmer Vernooij1-9/+2
non-RPC tests.
2010-06-19python: Remove unnecessary Ldb.set_invocation_id - use ↵Jelmer Vernooij1-7/+0
SamDB.set_invocation_id instead.
2010-06-19pyglue: Trim dependencies.Jelmer Vernooij2-2/+2
2010-06-19pyglue: Remove unused code.Jelmer Vernooij1-27/+5
2010-06-19pydsdb: Move write_prefixes_from_schema_to_ldb to pydsdb from pyglue.Jelmer Vernooij3-27/+27
2010-06-19pydsdb: Move dsdb_set_schema_from_ldb to pydsdb.Jelmer Vernooij3-49/+32
2010-06-19pydsdb: Move set_schema_from_ldif function to pydsdb from pyglue.Jelmer Vernooij3-19/+21
2010-06-19libcli: Fixed a segfault in security_acl_dup when the acl is NULL.Brendan Powers1-0/+4
This can happen when duplicating a security descriptor that is missing either sacls or dacls. Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2010-06-19s4:provision: don't use hardcoded 'Default-First-Site-Name'Stefan Metzmacher1-2/+2
metze Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2010-06-19s4:instancetype LDB module - "instanceType" is single-valued - MS-ADTS ↵Matthias Dieter Wallnöfer2-2/+21
3.1.1.5.2.2
2010-06-19s4:torture/ldap/basic.c - add more error code/messages testsMatthias Dieter Wallnöfer1-30/+264
And now we do match at least the LDAP error code (the WERROR one does still differ from Windows - we will see how to change that).
2010-06-19s4:ldap_backend.c - more customisations to match Windows Server error ↵Matthias Dieter Wallnöfer1-13/+16
behaviour on renames
2010-06-19ldb:ldb_dn.c - don't support "ldb_dn_add_child" on a "" parent DNMatthias Dieter Wallnöfer1-0/+7
It's meaningless and could end in DNs as "cn=child,".
2010-06-19s4:python/samba/__init__.py - now specify the "relax" control for the delete ↵Matthias Dieter Wallnöfer1-5/+5
operation before the provision
2010-06-19ldb:api.py - add a small test for the enhanced "py_ldb_delete" syntaxMatthias Dieter Wallnöfer1-0/+9
2010-06-19ldb:python bindings - some small cleanup & improvements in "py_ldb_add"Matthias Dieter Wallnöfer1-14/+13
Also to make it similar to "py_ldb_delete".
2010-06-19ldb:python bindings - let also "py_ldb_delete" support controlsMatthias Dieter Wallnöfer1-6/+50
2010-06-19s4:objectclass LDB module - disable delete operations when ↵Matthias Dieter Wallnöfer1-5/+80
"SYSTEM_FLAG_DISALLOW_DELETE" is specified
2010-06-19s4:rootdse LDB module - strip trailing whitespacesMatthias Dieter Wallnöfer1-24/+24
2010-06-19s4:rootdse LDB module - protect add and delete operations on the rootdse entryMatthias Dieter Wallnöfer1-4/+34
2010-06-19s4:rootdse LDB module - Return "UNWILLING_TO_PERFORM" when no attribute fits ↵Matthias Dieter Wallnöfer1-1/+2
on a change
2010-06-19s4:rootdse LDB module - refactor error messagesMatthias Dieter Wallnöfer1-24/+29
Fix indentations, use "set_errstring" when no "asprintf" functionality required.
2010-06-19s4:objectclass LDB module - use the old DN when displaying error messagesMatthias Dieter Wallnöfer1-2/+2