Jelmer Vernooij
10441ed83d
subunitrun: Use unittest.TestProgram if subunit.TestProgram is not
...
available.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Dec 10 03:49:03 CET 2010 on sn-devel-104
2010-12-10 03:49:03 +01:00
Jelmer Vernooij
636d8cfb42
s4-python: Add convenience function for forcibly importing bundled
...
package.
2010-12-10 03:04:06 +01:00
Jelmer Vernooij
408a99e3bb
s4-python: Fix use of bundled modules.
2010-12-10 03:04:06 +01:00
Jelmer Vernooij
4571b94e7b
s4-python: Split up ensure_external_module.
2010-12-10 03:04:06 +01:00
Andrew Tridgell
0dd2152b01
s4-pyglue: added get_debug_level() method
...
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-11-29 18:04:42 +11:00
Jelmer Vernooij
eb5a8e29cf
s4-python: Some reformatting for the purpose of pydoctor.
2010-11-28 17:23:28 +01:00
Andrew Tridgell
f6c2d39d0b
s4-pyglue: expose the remaining NTTIME functions from glue
2010-11-28 00:16:38 +11:00
Jelmer Vernooij
cd172e7724
talloc: Add python talloc module, move convenience functions to it.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Nov 5 02:48:21 UTC 2010 on sn-devel-104
2010-11-05 02:48:21 +00:00
Jelmer Vernooij
654fdce6a2
samba: Make in_source_tree() public.
2010-11-03 19:13:36 +00:00
Matthias Dieter Wallnöfer
dda6c354f6
s4:dsdb python stuff - introduce also here the "show_recycled" control
...
But also here beside "show_deleted" to not loose compatibility with older
provisions.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-10-03 15:23:18 +00:00
Kamen Mazdrashki
0cb476fb26
s4-python-samba: 'file' is a built-in
2010-10-03 01:24:55 +03:00
Kamen Mazdrashki
e9620c5fd2
s4-python-samba: Fix few cosmetics
...
- we have sys module already imported
- _glue module is part of samba package so be more precise how to import
2010-10-03 01:24:55 +03:00
Jelmer Vernooij
118c6548bb
selftest: Fix run for systems without testtools installed.
2010-09-21 22:54:37 -07:00
Andrew Tridgell
717ee453dd
s4-pyglue: added talloc_total_blocks() python call
2010-08-25 23:05:05 +10:00
Andrew Tridgell
5a367f641e
s4-pyglue: added talloc_report_full() and talloc_enable_null_tracking()
...
these are useful for tracking down leaks and bugs in python scripts
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-25 23:05:05 +10:00
Andrew Tridgell
4cb423f527
s4-python: python is not always in /usr/bin
...
Using "#!/usr/bin/env python" is more portable. It still isn't ideal
though, as we should really use the python path found at configure
time. We do that in many places already, but some don't.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-24 18:46:57 +10:00
Matthias Dieter Wallnöfer
e062e7300b
s4:python LDB __init__.py - remove completely unused "erase_partitions" call
...
Seems to be a relict from the past.
2010-06-20 18:52:28 +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
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
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
c2cb0a710b
python: Remove unnecessary Ldb.set_invocation_id - use SamDB.set_invocation_id instead.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
74309eb29c
pydsdb: Move write_prefixes_from_schema_to_ldb to pydsdb from pyglue.
2010-06-19 22:46:43 +02:00
Jelmer Vernooij
a4f60ffe4b
pydsdb: Move dsdb_set_schema_from_ldb to pydsdb.
2010-06-19 22:46:43 +02:00
Jelmer Vernooij
05b108a06b
pydsdb: Move set_schema_from_ldif function to pydsdb from pyglue.
2010-06-19 22:46:43 +02:00
Matthias Dieter Wallnöfer
bce8017ca9
s4:python/samba/__init__.py - now specify the "relax" control for the delete operation before the provision
2010-06-19 17:53:22 +02:00
Jelmer Vernooij
c446fbc3bf
s4-python: Fix formatting.
2010-06-11 01:47:55 +02:00
Kamen Mazdrashki
5bf12e101a
Revert "s4/dsdb: Set schemaInfo attribute value during provisioning"
...
This reverts commit 8149094eddebd9a0e8b7c123c2ed54d00164bb26.
Windows implementation does not set schemaInfo attribute value
until first Schema update request.
This way, newly provisioned forest returns no schemaInfo value.
I think it won't be bad for us to have this value preset, but
I want to mimic Win AD behavior as close as possible.
2010-04-29 04:54:05 +03:00
Matthieu Patou
634caed116
s4 python: make the function dsdb_get_oid_from_attid reachable from a samDB object
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-04-15 18:45:41 +02:00
Kamen Mazdrashki
8149094edd
s4/dsdb: Set schemaInfo attribute value during provisioning
...
After provisioning new Forest, schemaInfo should be set
to a value with revision=1 and current invocation_id
2010-04-09 12:21:34 +03:00
Jelmer Vernooij
a35d876537
s4-python: rename samba.glue to samba._glue to indicate it's private.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
cc6e2b8a81
s4-python: Fix formatting, import of FLG_NOSYNC.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
c76bd65b60
s4-samdb: Allow skipping global schema.
2010-04-07 17:40:00 +02:00
Jelmer Vernooij
449bdf3543
s4-python: Move set_session_info to PySambaLdb.
2010-04-06 13:12:43 +02:00
Jelmer Vernooij
55b98e9768
s4-python: Move register_samba_handlers to PySambaLdb.
2010-04-06 13:12:43 +02:00
Jelmer Vernooij
e9c3f2ef13
s4-python: Move ldb_set_utf8_casefold to pyldb-samba.
2010-04-06 13:12:43 +02:00
Jelmer Vernooij
b72a5c0336
Move glue.set_credentials hack to samba.Ldb.
2010-04-06 13:12:43 +02:00
Jelmer Vernooij
099fc00b60
Add C-based Samba-specific subclass of Ldb.
2010-04-06 13:12:43 +02:00
Matthias Dieter Wallnöfer
1b6e5a1b8d
s4:python/samba/__init__.py - import "sys" for "ensure_external_module" method
2010-04-05 12:06:49 +02:00
Jelmer Vernooij
55aeb682ba
s4-python: Move dsdb_convert_schema_to_openldap to dsdb.
2010-04-04 00:42:52 +02:00
Jelmer Vernooij
2a67eda98f
s4-python: Move set_opaque_integer -> dsdb.
2010-04-04 00:40:01 +02:00
Jelmer Vernooij
ccd954f2a7
s4-python: Avoid importing glue directly.
2010-04-04 00:30:34 +02:00
Jelmer Vernooij
8afd52a641
s4-python: Move samdb_server_site_name to dsdb module.
2010-04-04 00:21:09 +02:00
Jelmer Vernooij
31a517e172
s4-python: Move dsdb constants to a separate python module.
2010-04-04 00:14:23 +02:00
Jelmer Vernooij
e5b33be2f2
s4-python: Remove remaining constants.
2010-04-03 23:47:26 +02:00
Jelmer Vernooij
13a6aee591
s4-python: Remove duplicate definition of GUID_DRS_* constants.
2010-04-03 23:47:25 +02:00
Jelmer Vernooij
84891b048d
s4-python: Install external packages to a different directory but import into
...
the normal namespace when the system doesn't have it available.
2010-04-01 15:33:07 +02:00
Jelmer Vernooij
c873329500
s4-python: Simplify mechanism for finding included Python modules.
2010-03-29 18:05:29 +02:00