summaryrefslogtreecommitdiff
path: root/source4/scripting/python
AgeCommit message (Collapse)AuthorFilesLines
2010-06-20s4:python LDB __init__.py - remove completely unused "erase_partitions" callMatthias Dieter Wallnöfer2-36/+0
Seems to be a relict from the past.
2010-06-20provision: Look for Samba prefix a bit harder.Jelmer Vernooij1-4/+6
2010-06-20pydsdb: Mark all SamDB and Schema methods that are in pydsdb asJelmer Vernooij3-17/+17
private, to discourage them being called directly.
2010-06-20provision: Properly cancel transactions on the secrets ldb.Jelmer Vernooij1-122/+131
2010-06-20s4-python: Remove more unused imports, fix use of sets in upgradehelpers.Jelmer Vernooij1-2/+2
2010-06-20Use standard Python syntax, booleans and set()'s where appropriate.Jelmer Vernooij3-23/+28
2010-06-20Remove unnecessary use of transactions.Jelmer Vernooij1-11/+3
2010-06-20ldb: Remove last import of dsdb.Jelmer Vernooij1-12/+0
2010-06-20Some more formatting fixes, move schema related functions from Ldb to Schema.Jelmer Vernooij5-35/+31
2010-06-20Move convert_to_openldap onto Schema class.Jelmer Vernooij3-5/+7
2010-06-20Formatting cleanups; use True/False for booleans, unnecessary backslashes, ↵Jelmer Vernooij5-61/+78
spacing.
2010-06-20Move a few more samdb-specific methods to SamDB, away from Ldb.Jelmer Vernooij1-13/+1
2010-06-20samdb: Fix formatting, move get_oid_from_attid from Ldb to SamDB.Jelmer Vernooij3-22/+20
2010-06-20s4-python: Remove trivial function, replace by dictionary.Jelmer Vernooij2-36/+3
2010-06-20Modifications extending functionality of newuser cmd and new net group set ↵Lukasz Zalewski2-60/+63
of commands for group related operations on ldb Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20Modifications extending functionality of newuser cmd and new net group set ↵Lukasz Zalewski4-8/+439
of commands for group related operations on ldb Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Make grouped commit / rollback more resistant to ↵Matthieu Patou1-13/+42
unexpected problems Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Check that the policy for DC is present if not warn the ↵Matthieu Patou1-0/+24
user Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Emit message instead of crashing when not able to set aclMatthieu Patou1-4/+10
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 unittests: add unit tests for upgradehelpersMatthieu Patou2-4/+19
The functions tested are: * construct_existor_expr * search_constructed_attrs_stored Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Add function for searching stored constructed attributesMatthieu Patou1-0/+51
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: Move functions to helpers and improve codeMatthieu Patou3-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>
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 python: Add unit tests for upgradeprovision related stuffMatthieu Patou1-0/+161
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: move some functions to upgradehelpers for unit testsMatthieu Patou1-1/+141
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 Vernooij14-32/+42
setUp methods are called, fix formatting.
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-19samba.tests: Provide TestCase and TestSkipped classes (from testtools) for ↵Jelmer Vernooij1-6/+9
convenience.
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 Vernooij1-1/+1
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 Vernooij2-27/+1
2010-06-19pydsdb: Move dsdb_set_schema_from_ldb to pydsdb.Jelmer Vernooij2-49/+1
2010-06-19pydsdb: Move set_schema_from_ldif function to pydsdb from pyglue.Jelmer Vernooij2-19/+1
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:python/samba/__init__.py - now specify the "relax" control for the delete ↵Matthias Dieter Wallnöfer1-5/+5
operation before the provision
2010-06-19s4-python: Use sys.prefix rather than guessing prefix from currentJelmer Vernooij1-7/+6
file path.
2010-06-19waf: Add missing dependency (so header paths are inherited) on talloc to ↵Jelmer Vernooij1-0/+1
internal python lib.
2010-06-18s4: Don't build a $prefix/lib/libpython.so, as such a library often already ↵Jelmer Vernooij1-1/+2
exists :-)
2010-06-18s4-waf: Don't include pytalloc when embedding python.Jelmer Vernooij1-1/+0
2010-06-18s4: Build more python convenience files as subsystems rather than as python ↵Jelmer Vernooij1-2/+3
modules.
2010-06-16s4:provision.py - we do now support the "Windows 2000 Native" domain ↵Matthias Dieter Wallnöfer1-3/+0
function level
2010-06-15Attempt to fix SamDB test infrastructure (not used in Samba anywhere, only ↵Jelmer Vernooij2-21/+25
in OpenChange).
2010-06-15s4:provision Allow a specific prefix map to be loaded into a new schema ↵Andrew Bartlett1-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>
2010-06-14s4:provision: Make gc._msdcs DNS entries A/AAAA recordsAndrew Kroeger1-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.