Jelmer Vernooij
5548d3d41e
Add missing dependencies for com_err.
2010-10-05 00:38:35 +02:00
Matthieu Patou
d09cfc04fb
unittests: add a test to avoid regression on previous fix
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Oct 4 20:23:31 UTC 2010 on sn-devel-104
2010-10-04 20:23:31 +00:00
Jelmer Vernooij
c92db7b6dc
python: Use samba.tests.TestCase, make sure base class tearDown and
...
setUp methods are called, fix formatting.
2010-06-19 22:46:45 +02:00
Matthias Dieter Wallnöfer
c0538a006d
ldb:api.py - add a small test for the enhanced "py_ldb_delete" syntax
2010-06-19 17:53:21 +02:00
Matthieu Patou
0c3dfd7a79
s4 python: add more unit tests to verify the compare tests
2010-06-07 21:06:23 +02:00
Andrew Tridgell
088096d1ba
python: use '#!/usr/bin/env python' to cope with varying install locations
...
this should be much more portable
2010-03-25 14:37:19 +11:00
Matthieu Patou
9a9202e7bd
pythonbindings: allow add() to have an array of controls as second parameter
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-09-26 01:31:38 +02:00
Jelmer Vernooij
667b825d18
pyldb: Don't segfault when invalid type is specified to Dn.get().
...
(#6722 )
2009-09-14 17:03:30 +02:00
Andrew Bartlett
425386ff61
s4:ldb Add ldb_ldif_write_string() and python wrappers
...
This allows us to turn a python LdbMessage back into a string.
Andrew Bartlett
2009-08-26 15:59:00 +10:00
Andrew Bartlett
3ed33813bb
s4:ldb Add hooks to get/set the flags on a ldb_message_element
...
Also add tests to prove that we got this correct, and correct the
existing tests which used the wrong constants.
Andrew Bartlett
2009-08-26 15:07:50 +10:00
Andrew Bartlett
7234a24f82
s4:ldb Add python binding and test for ldb_msg_diff()
2009-08-24 20:24:18 +10:00
Jelmer Vernooij
bb944dcf64
pyldb: Raise proper exception when attempting to assign a string to a dn
...
attribute.
2009-08-03 18:15:16 +02:00
Jelmer Vernooij
832b929dde
pyldb: Fix three more (minor) memory leaks.
2009-06-17 20:45:40 +02:00
Jelmer Vernooij
f1561cd72b
pyldb/tests: Use different dn's everywhere, to easily spot which test is
...
breaking in gdb.
2009-06-17 20:45:39 +02:00
Jelmer Vernooij
2f27d0c762
pyldb: Support getting the parent of special DNs without segfaulting.
...
Found by: Андрей Григорьев <andrew@ei-grad.ru>
2009-06-17 20:45:37 +02:00
Jelmer Vernooij
8f4e4d2e30
Adapt Zahari's test to the generic LDB Python tests.
2009-03-20 22:58:15 +01:00
Jelmer Vernooij
eeb25cf548
Fix more introduced regressions in new bindings.
2008-12-21 04:36:16 +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
e0672ae29b
Remove swig support from standalone ldb build.
2008-12-19 01:24:00 +00:00
Jelmer Vernooij
0e2928f946
Don't expose ldb_request in the Python API but rather use regular
...
parameters.
2008-09-20 15:06:26 +02:00
Jelmer Vernooij
acae07bc17
Add support for implementing LDB modules in Python.
2008-09-19 16:17:52 +02:00
Simo Sorce
e060303670
Fix spellings and file names
...
(This used to be commit baddefd0a6fa430af1a3001064149127e0d29361)
2008-09-12 13:29:51 -04:00
Jelmer Vernooij
43a22c9b4a
Add __repr__ implementation for Ldb.
...
(This used to be commit 5607aea07f66f09fd5b33842d07d2fbbf44d13e7)
2008-05-19 23:12:13 +02:00
Jelmer Vernooij
ae46119096
Add __repr__ implementations for ldb.Message, ldb.MessageElement and ldb.Dn.
...
(This used to be commit b9119c0f0f524d43ff09825dffb24a5e77a240f4)
2008-05-19 23:07:04 +02:00
Jelmer Vernooij
1529331b97
Avoid using setup.py for intsallation.
...
(This used to be commit 7b93e43dad55454e9107a38e67764e08f51392d3)
2008-02-12 01:21:10 +01:00
Jelmer Vernooij
79d466c373
ldb/python: Support comparing Dn's to strings.
...
(This used to be commit 355878907970b396e4031426fda260d981c417eb)
2008-01-11 04:05:41 +01:00
Jelmer Vernooij
1d8cdddcd0
python/ldap: Support controls argument to ldb.search().
...
(This used to be commit 9eddc27f13fa2feb56d6b015e66d8c54081487da)
2008-01-11 03:26:45 +01:00
Jelmer Vernooij
1f4838b8a3
python/ldap: Wrap parse_control_strings().
...
(This used to be commit b27e5a68530c4fd6430cbb174b63f8ff2b6f4e53)
2008-01-11 02:36:59 +01:00
Jelmer Vernooij
2466d2cc5e
ldb/python: Allow comparing a MessageElement to a list or a singleton.
...
(This used to be commit 1ccbab81d79f83bb419104f2bbaf2ae7b368e90f)
2008-01-11 01:55:56 +01:00
Jelmer Vernooij
c3695026e1
ldb/python: Implement __len__ for MessageElement.
...
(This used to be commit a8f90ed34ce9341080b63c801ef54b82de42b8e6)
2008-01-11 01:04:25 +01:00
Jelmer Vernooij
9269db983d
python/ldb: Add __getitem__ implementation for LdbMessageElement.
...
(This used to be commit e6498a0780dd31dfc623a69432004b606aeaccbe)
2008-01-11 01:04:25 +01:00
Jelmer Vernooij
aa0a06f13c
r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.
...
- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.
(This used to be commit c550c03372cb260b78f6a6c132e70571bc4cb852)
2007-12-24 01:51:03 -06:00
Jelmer Vernooij
fb021305e4
r26567: Allow registering new ldb modules from python.
...
(This used to be commit 485db76d8476fce399a9b6cb977cf55ea35ec189)
2007-12-24 01:51:02 -06:00
Jelmer Vernooij
6e2459211d
r26537: Support ldb.add({'dn': 'dc=foo,bar=bla', ...}).
...
(This used to be commit e91fe76d296973430f71502c9b614d0dfac4d83c)
2007-12-21 05:51:57 +01:00
Jelmer Vernooij
07beaf09c9
r26480: Add utility class for testing LDB code.
...
(This used to be commit d7f0b12c9e43b93705f6b9fa6b5ab74fe68e80a0)
2007-12-21 05:50:37 +01:00
Jelmer Vernooij
ea85165841
r26068: Import improved Python bindings for LDB, including tests.
...
(This used to be commit fc3a8caef749ddac56a4f035dde8b6ceeaa95c48)
2007-12-21 05:45:51 +01:00