a0db69dd79
python: samba: Use relative import for _glue.
...
For some reason, using an absolute import breaks pydoctor.
2012-03-10 21:31:53 +01:00
411119db50
provision: Share more code for determine_netbios_name() with samba.valid_netbios_name().
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org >
Autobuild-Date: Sun Feb 26 22:24:42 CET 2012 on sn-devel-104
2012-02-26 22:24:42 +01:00
a977de9fdf
s4-python: Various formatting fixes.
2012-02-18 23:59:48 +01:00
0ee22a2dec
s4-python: Fix some formatting issues.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org >
Autobuild-Date: Tue Sep 13 03:51:13 CEST 2011 on sn-devel-104
2011-09-13 03:51:13 +02:00
607d7c5cdf
s4-provision Use samba.dns_name_to_dn
2011-08-26 14:06:07 +02:00
f67a14976b
s4-param Remove 'modules dir'
...
The Samba waf build ensures that dyn_MODULESDIR is always correct
(even for in-tree binaries), so we don't need to allow the user to
configure this at run time.
Andrew Bartlett
2011-06-06 17:37:51 +10:00
fa3e2fc8bb
selftest: Re-enable strings.py from source3/stf as a python subunit test
2011-05-18 16:12:08 +02:00
e7b2e06130
s4-provision: cope with top level directory for provision
...
to allow for top level 'make test' we need to cope with two in-tree
directory layouts
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org >
2011-02-07 13:22:00 +11:00
dbe0b07849
s4-python Remove manipuation of python path from samba module
...
This manipulation should be done by top level scripts, otherwise we
won't find samba in the first place (and these can be munged correctly
for the install).
Andrew Bartlett
2011-02-02 15:21:13 +11:00
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
636d8cfb42
s4-python: Add convenience function for forcibly importing bundled
...
package.
2010-12-10 03:04:06 +01:00
408a99e3bb
s4-python: Fix use of bundled modules.
2010-12-10 03:04:06 +01:00
4571b94e7b
s4-python: Split up ensure_external_module.
2010-12-10 03:04:06 +01:00
0dd2152b01
s4-pyglue: added get_debug_level() method
...
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org >
2010-11-29 18:04:42 +11:00
eb5a8e29cf
s4-python: Some reformatting for the purpose of pydoctor.
2010-11-28 17:23:28 +01:00
f6c2d39d0b
s4-pyglue: expose the remaining NTTIME functions from glue
2010-11-28 00:16:38 +11:00
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
654fdce6a2
samba: Make in_source_tree() public.
2010-11-03 19:13:36 +00:00
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
0cb476fb26
s4-python-samba: 'file' is a built-in
2010-10-03 01:24:55 +03:00
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
118c6548bb
selftest: Fix run for systems without testtools installed.
2010-09-21 22:54:37 -07:00
717ee453dd
s4-pyglue: added talloc_total_blocks() python call
2010-08-25 23:05:05 +10:00
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
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
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
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
1f07f53827
ldb: Remove last import of dsdb.
2010-06-20 02:46:57 +02:00
94e06fe203
Some more formatting fixes, move schema related functions from Ldb to Schema.
2010-06-20 02:46:57 +02:00
d3d7ff66d4
Move convert_to_openldap onto Schema class.
2010-06-20 02:46:56 +02:00
a5e8ef884b
Move a few more samdb-specific methods to SamDB, away from Ldb.
2010-06-20 01:37:06 +02:00
1d86414eb0
samdb: Fix formatting, move get_oid_from_attid from Ldb to SamDB.
2010-06-20 01:30:51 +02:00
c2cb0a710b
python: Remove unnecessary Ldb.set_invocation_id - use SamDB.set_invocation_id instead.
2010-06-19 22:46:44 +02:00
74309eb29c
pydsdb: Move write_prefixes_from_schema_to_ldb to pydsdb from pyglue.
2010-06-19 22:46:43 +02:00
a4f60ffe4b
pydsdb: Move dsdb_set_schema_from_ldb to pydsdb.
2010-06-19 22:46:43 +02:00
05b108a06b
pydsdb: Move set_schema_from_ldif function to pydsdb from pyglue.
2010-06-19 22:46:43 +02:00
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
c446fbc3bf
s4-python: Fix formatting.
2010-06-11 01:47:55 +02:00
5bf12e101a
Revert "s4/dsdb: Set schemaInfo attribute value during provisioning"
...
This reverts commit 8149094edd
.
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
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
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
a35d876537
s4-python: rename samba.glue to samba._glue to indicate it's private.
2010-04-08 23:20:36 +02:00
cc6e2b8a81
s4-python: Fix formatting, import of FLG_NOSYNC.
2010-04-08 23:20:36 +02:00
c76bd65b60
s4-samdb: Allow skipping global schema.
2010-04-07 17:40:00 +02:00
449bdf3543
s4-python: Move set_session_info to PySambaLdb.
2010-04-06 13:12:43 +02:00
55b98e9768
s4-python: Move register_samba_handlers to PySambaLdb.
2010-04-06 13:12:43 +02:00
e9c3f2ef13
s4-python: Move ldb_set_utf8_casefold to pyldb-samba.
2010-04-06 13:12:43 +02:00
b72a5c0336
Move glue.set_credentials hack to samba.Ldb.
2010-04-06 13:12:43 +02:00
099fc00b60
Add C-based Samba-specific subclass of Ldb.
2010-04-06 13:12:43 +02:00
1b6e5a1b8d
s4:python/samba/__init__.py - import "sys" for "ensure_external_module" method
2010-04-05 12:06:49 +02:00