summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python
Commit message (Collapse)AuthorAgeFilesLines
* s4 upgradeprovision: Check that the policy for DC is present if not warn the ↵Matthieu Patou2010-06-201-0/+24
| | | | | | user Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: Emit message instead of crashing when not able to set aclMatthieu Patou2010-06-201-4/+10
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 unittests: add unit tests for upgradehelpersMatthieu Patou2010-06-202-4/+19
| | | | | | | | The functions tested are: * construct_existor_expr * search_constructed_attrs_stored Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: Add function for searching stored constructed attributesMatthieu Patou2010-06-201-0/+51
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: additional restylingMatthieu Patou2010-06-201-31/+42
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: Move functions to helpers and improve codeMatthieu Patou2010-06-203-99/+444
| | | | | | | | | | | | 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>
* s4 python: Update unit tests related to create secretsMatthieu Patou2010-06-201-0/+13
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4: Add comments about setup_secretsMatthieu Patou2010-06-201-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>
* s4 python: Add unit tests for upgradeprovision related stuffMatthieu Patou2010-06-201-0/+161
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: move some functions to upgradehelpers for unit testsMatthieu Patou2010-06-201-1/+141
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 Add functions related to ldb manipulation when doing upgradeMatthieu Patou2010-06-201-17/+83
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 provision: Add information about provisioned usn range in sam.ldbMatthieu Patou2010-06-201-0/+96
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* python: Use samba.tests.TestCase, make sure base class tearDown andJelmer Vernooij2010-06-1914-32/+42
| | | | setUp methods are called, fix formatting.
* samba.tests.samba3: Clean up imports, use new TestCase class.Jelmer Vernooij2010-06-191-13/+38
|
* ntacls: Raise TestSkipped rather than writing to stdout.Jelmer Vernooij2010-06-191-16/+15
|
* samba.tests: Provide TestCase and TestSkipped classes (from testtools) for ↵Jelmer Vernooij2010-06-191-6/+9
| | | | convenience.
* python: Remove unnecessary Ldb.set_invocation_id - use ↵Jelmer Vernooij2010-06-191-7/+0
| | | | SamDB.set_invocation_id instead.
* pyglue: Trim dependencies.Jelmer Vernooij2010-06-191-1/+1
|
* pyglue: Remove unused code.Jelmer Vernooij2010-06-191-27/+5
|
* pydsdb: Move write_prefixes_from_schema_to_ldb to pydsdb from pyglue.Jelmer Vernooij2010-06-192-27/+1
|
* pydsdb: Move dsdb_set_schema_from_ldb to pydsdb.Jelmer Vernooij2010-06-192-49/+1
|
* pydsdb: Move set_schema_from_ldif function to pydsdb from pyglue.Jelmer Vernooij2010-06-192-19/+1
|
* s4:provision: don't use hardcoded 'Default-First-Site-Name'Stefan Metzmacher2010-06-191-2/+2
| | | | | | metze Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
* s4:python/samba/__init__.py - now specify the "relax" control for the delete ↵Matthias Dieter Wallnöfer2010-06-191-5/+5
| | | | operation before the provision
* s4-python: Use sys.prefix rather than guessing prefix from currentJelmer Vernooij2010-06-191-7/+6
| | | | file path.
* waf: Add missing dependency (so header paths are inherited) on talloc to ↵Jelmer Vernooij2010-06-191-0/+1
| | | | internal python lib.
* s4: Don't build a $prefix/lib/libpython.so, as such a library often already ↵Jelmer Vernooij2010-06-181-1/+2
| | | | exists :-)
* s4-waf: Don't include pytalloc when embedding python.Jelmer Vernooij2010-06-181-1/+0
|
* s4: Build more python convenience files as subsystems rather than as python ↵Jelmer Vernooij2010-06-181-2/+3
| | | | modules.
* s4:provision.py - we do now support the "Windows 2000 Native" domain ↵Matthias Dieter Wallnöfer2010-06-161-3/+0
| | | | function level
* Attempt to fix SamDB test infrastructure (not used in Samba anywhere, only ↵Jelmer Vernooij2010-06-152-21/+25
| | | | in OpenChange).
* s4:provision Allow a specific prefix map to be loaded into a new schema ↵Andrew Bartlett2010-06-151-2/+3
| | | | | | | | | | | | provision This allows the prefixMap from a DRS server to be used when loading the schema from the local files. This helps us then import other schema with this map in place. Andrew Bartlett Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
* s4:provision: Make gc._msdcs DNS entries A/AAAA recordsAndrew Kroeger2010-06-141-0/+6
| | | | | | | | | | When adding an additional DC as a GC server, the new DC attempts to register its own gc._msdcs records. If the existing gc._msdcs record is a CNAME, BIND fails the update with the message "attempt to add non-CNAME alongside CNAME ignored", and the new DC is not registered as a GC server. The A & AAAA record types for gc._msdcs have been verified against the DNS server of a W2K8 DC.
* s4-provision: Use logger in provision backends.Jelmer Vernooij2010-06-132-42/+38
|
* s4-test: Use smb.conf path set in environment rather than usingJelmer Vernooij2010-06-134-13/+19
| | | | | | command-line options. This is the first step towards supporting custom test runners.
* upgradeprovision: Use logging infrastructure.Jelmer Vernooij2010-06-131-5/+7
|
* upgrade: Properly cancel/commit transactions in a couple more places.Jelmer Vernooij2010-06-131-1/+1
|
* s4-python: Start using standard python logging infrastructure ratherJelmer Vernooij2010-06-134-87/+89
| | | | than simple messaging callbacks.
* s4:provision Allow both additional and override prefixmaps in SchemaAndrew Bartlett2010-06-122-5/+8
| | | | | | | The idea here is to allow some callers to specify a new prefixMap that will override the values loaded from the prefixMap.txt. Andrew Bartlett
* Add missing stub functions.Jelmer Vernooij2010-06-111-0/+9
|
* s4-python: Fix formatting.Jelmer Vernooij2010-06-117-133/+176
|
* s4:provision - fix typo in substitution variableMatthias Dieter Wallnöfer2010-06-061-1/+1
|
* ldb: Fix dependencies when building with system ldb.Jelmer Vernooij2010-05-311-1/+1
|
* s4-python: Remove cruft to deal with static python modules, which are noJelmer Vernooij2010-05-312-41/+0
| | | | longer supported.
* s4:scripting/python/modules.c - fix "asprintf" callsMatthias Dieter Wallnöfer2010-05-281-2/+6
|
* pynet: Raise proper exceptions rather than invoking sys.exit.Jelmer Vernooij2010-05-192-8/+6
|
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-3/+0
|
* s4-rodc: Set am_rodc flag during provisionAnatoliy Atanasov2010-05-173-11/+16
|
* s4:net domainlevel tool - fix up the error handling as Jelmer suggestedMatthias Dieter Wallnöfer2010-05-141-2/+4
| | | | Sorry, I've copied this from the "ldap.py" test and thought it would work.
* s4:domainlevel - handle exceptions more preciselyMatthias Dieter Wallnöfer2010-05-131-2/+2
| | | | | | | | | LDB_ERR_UNWILLING_TO_PERFORM should be the right error code when the "msDS-Behavior-Version" was already raised by the first change as it is on Windows Server. When s4 itself does implement this trigger then we don't need to do the second write operation anymore (they're kept in sync).