zahari
4fff36f618
Setting nTSecurityDescriptor via LDAP fails
...
Fix for the problem was substitute talloc_strndup() with
talloc_memdup(), allocate 1 more character and put null character
('\0') in the extra place so data copied is null terminated.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-03-20 22:54:15 +01:00
Jelmer Vernooij
ee577ef0ee
Add more comments.
2009-03-20 22:52:57 +01:00
Jelmer Vernooij
722dc9eed3
pyldb: Improve exception message when a list is expected.
2009-03-20 00:33:43 +01:00
Stefan Metzmacher
1d22e0ecef
s4:pyldb: fix compiler warnings
...
metze
2009-02-05 17:48:11 +01:00
Stefan Metzmacher
d129507ee4
s4:lib/ldb: include replace.h in pyldb.c
...
This fixes the build on Tru64.
metze
2009-01-30 19:41:33 +01:00
Simo Sorce
380874ef86
Fix the mess with ldb includes.
...
Separate again the public from the private headers.
Add a new header specific for modules.
Also add service function for modules as now ldb_context and ldb_module are
opaque structures for them.
2009-01-30 01:02:03 -05:00
Stefan Metzmacher
d965ff05c9
s4:ldb: remove dependency to samba4's events wrapper
...
metze
2009-01-21 10:44:04 +01:00
Jelmer Vernooij
ba5d6e6d70
Avoid using a utility header for Python replacements included in Samba,
...
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea
s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4
2009-01-07 15:03:16 -08:00
Andrew Bartlett
59d5a963d1
Raise a python exception when the ldb search fails
...
This fixes a regression found by ldap.py in the new hand-written
python bindings.
Andrew Bartlett
2009-01-07 17:09:26 +11:00
Jelmer Vernooij
d2c70d24e1
py: Properly increase the reference counter of Py_None.
2009-01-06 04:13:57 +01:00
Andrew Bartlett
83b2f1483f
Initialise 'flags' in new python ldb binding for ldb_connect
2009-01-05 20:08:04 +11:00
Jelmer Vernooij
227c8000df
Fix silly typo.
2008-12-23 12:14:25 +01:00
Jelmer Vernooij
4bbd2cbab7
pyldb: Provide replacement for sizeargfunc, not available before Python2.5.
2008-12-23 11:48:14 +01:00
Jelmer Vernooij
58cfb1a9e1
python: Define Py_ssize_t if the Python library doesn't.
2008-12-23 11:26:31 +01:00
Jelmer Vernooij
8ce77a57cc
pyldb: Fix segfault because of incorrect reference counting.
2008-12-23 05:36:27 +01:00
Jelmer Vernooij
112feeaa35
pyldb: Avoid use of pytalloc, as it may not be available.
2008-12-23 05:36:27 +01:00
Jelmer Vernooij
a7f64ba2f1
ldb: Include tevent.h rather than events.h.
2008-12-23 04:21:35 +01:00
Jelmer Vernooij
6efb7ff981
Fix various Python-related bugs.
2008-12-21 07:34:27 +01:00
Jelmer Vernooij
33ebc95591
Remove remaining fragments of SWIG code in pyldb.
2008-12-21 04:42:51 +01:00
Jelmer Vernooij
eeb25cf548
Fix more introduced regressions in new bindings.
2008-12-21 04:36:16 +01:00
Jelmer Vernooij
2e7a6cb6bf
py: Fix initialisation of subtypes, fix segfaults.
2008-12-21 03:08:14 +01:00
Jelmer Vernooij
0d585a67ed
Support subtypes of ldb.Ldb.
2008-12-20 23:00:23 +01:00
Jelmer Vernooij
94ed43390c
Fix all pyldb tests except for modules.
2008-12-20 22:21:39 +01:00
Jelmer Vernooij
04bef7fe2a
Fix more tests.
2008-12-19 16:08:35 +00:00
Jelmer Vernooij
7f4e4df58d
Port over more functionality to new SWIGless Python module.
2008-12-19 13:41:44 +00:00
Jelmer Vernooij
a57b1aa0f1
Initial work using manual Python bindings for LDB, rather than SWIG-generated ones.
2008-12-19 01:22:07 +00:00