Matthias Dieter Wallnöfer
6ce63655ef
s4:lib/tls/tls_tstream.c - quiet warning on Solaris "cc" by casts
2010-11-29 14:48:13 +01:00
Andrew Tridgell
33d178767b
s4-loadparm: use loadparm_init_global() instead of loadparm_init()
...
this prevents us having two lp_ctx contexts in these tools which leads
to bizarre behaviour
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-29 18:04:42 +11:00
Matthias Dieter Wallnöfer
450b26b9b5
s4:lib/registry/rpc.c - remove a duplicate assignment
2010-11-27 21:50:42 +01:00
Matthieu Patou
e8ae340421
ldb-tdb: Add more information about full scan
2010-11-26 23:46:06 +03:00
Jelmer Vernooij
df70a4a3b7
pyldb: Fix broken test.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Nov 23 23:20:38 CET 2010 on sn-devel-104
2010-11-23 23:20:38 +01:00
Andrew Tridgell
3a8b67d06c
s4-ldb: added an environment varibale LDB_WARN_UNINDEXED
...
when LDB_WARN_UNINDEXED is set, we produce warnings about unindexed
searches. This makes it easier to find performance problems caused by
unindexed searches.
2010-11-23 22:14:58 +11:00
Arnaud Faucher
2ac5cedb71
Avoid the use of PyAPI_DATA, which is for internal Python API's.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Nov 22 00:52:56 CET 2010 on sn-devel-104
2010-11-22 00:52:56 +01:00
Andrew Tridgell
9e2f39484c
s4-ldb: fixed the build with a space in the ldb modules directory name
...
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sun Nov 21 13:57:14 CET 2010 on sn-devel-104
2010-11-21 13:57:14 +01:00
Matthias Dieter Wallnöfer
8585de8881
ldb:rdn_name LDB module - add more RDN name constraints
...
And some small cleanups
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov 20 00:06:35 CET 2010 on sn-devel-104
2010-11-20 00:06:35 +01:00
Matthias Dieter Wallnöfer
bb679a4da3
ldb:ldb_rename on ldap backends - handle the case when the RDN value is empty
...
Otherwise we get "<RDN name>=(null),..."
2010-11-19 23:03:49 +01:00
Kamen Mazdrashki
ab379ddd51
s4-ldb.python: Use $SELFTEST_PREFIX/tmp as a temporary directory for testing
...
This way we won't flood /tmp directory with temp files
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Thu Nov 18 23:11:18 CET 2010 on sn-devel-104
2010-11-18 23:11:18 +01:00
Kamen Mazdrashki
05c0bface1
s4-ldb.python: add test for ldb.Message.from_dict() method
2010-11-18 22:28:08 +01:00
Kamen Mazdrashki
a403d7777e
s4-pyldb: ldb.Message.from_dict class method to create LdbMessage object from dictionary
2010-11-18 22:28:08 +01:00
Kamen Mazdrashki
a09a41f300
s4-pyldb: Move code to create a ldb_message from a Python Dictionary object into a separate function
2010-11-18 22:28:08 +01:00
Kamen Mazdrashki
b4809e4a82
s4-pyldb_util: Move ldb Type searching into separate function
2010-11-18 22:28:07 +01:00
Kamen Mazdrashki
88e4601900
s4-pyldb: Few miss-alignments aligned
2010-11-18 22:28:07 +01:00
Kamen Mazdrashki
72fcfedd89
s4-pyldb: Move PyLdbMessage_FromMessage() in PyMessage group of functions
2010-11-18 22:28:07 +01:00
Kamen Mazdrashki
d42ea3263a
s4-pyldb: Fix wrong type of 'self' parameter
2010-11-18 22:28:07 +01:00
Matthias Dieter Wallnöfer
fa1e8663bc
Revert "s4:api.py - DN tests - test a bit more special DNs and merge the comparison tests"
...
This reverts commit 732ef9353dff56384e8bb01aa20d2a371cd995c2.
Jelmer doesn't like to have these tests there.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Nov 18 17:46:38 UTC 2010 on sn-devel-104
2010-11-18 17:46:38 +00:00
Simo Sorce
0b3180bbf5
ldb: error out when modules are not found
...
We shouldn't proceed without all required modules, it could cause damage to the
ldb if operations are performed w/o the needed modules.
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Thu Nov 18 14:02:34 UTC 2010 on sn-devel-104
2010-11-18 14:02:34 +00:00
Matthias Dieter Wallnöfer
56512fb1da
ldb:skel.c - don't introduce trailing whitespaces by a module template
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Nov 18 12:08:30 UTC 2010 on sn-devel-104
2010-11-18 12:08:30 +00:00
Matthias Dieter Wallnöfer
732ef9353d
s4:api.py - DN tests - test a bit more special DNs and merge the comparison tests
2010-11-18 10:31:42 +01:00
Matthias Dieter Wallnöfer
ca7979e1a3
ldb:ldb_dn_explode - point out that on error cases "data" is implicitly free'd
2010-11-18 09:02:21 +01:00
Matthias Dieter Wallnöfer
3e055cc830
ldb:ldb_dn.c - ldb_dn_explode - free also the extended components on error cases
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Nov 17 08:45:53 UTC 2010 on sn-devel-104
2010-11-17 08:45:53 +00:00
Andrew Bartlett
95d33f2f24
s4-ldif_handlers Add handler for printing supplementalCredentials
2010-11-16 16:32:27 +11:00
Jelmer Vernooij
6e762f9003
Re-enable ldb-cmdline for the moment, as it is used by oLschema2ldif.
2010-11-14 17:14:05 +00:00
Jelmer Vernooij
d2dfa868fd
Don't build ldb tools when there is a system provided ldb.
2010-11-14 17:14:05 +00:00
Matthias Dieter Wallnöfer
f0367905d9
ldb:ldb_ldap.c rename operation - check for the RDN name and value
...
Make it more similar to "ldb_ildap.c" and also more save
2010-11-11 10:03:41 +01:00
Matthias Dieter Wallnöfer
feb00fe7cc
s4:dsdb - proof against empty RDN values where expected
...
This should prevent crashes as pointed out on the mailing list.
2010-11-11 10:03:40 +01:00
Kamen Mazdrashki
7e3419f32f
s4-pyldb: Handle internal errors in py_ldb_contains() properly
...
It is an exceptional condition for ldb_search() to return
more than one results during SCOPE_BASE search on DN
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Nov 10 09:02:00 UTC 2010 on sn-devel-104
2010-11-10 09:02:00 +00:00
Matthias Dieter Wallnöfer
422233c563
s4:pyldb.c - fix "py_ldb_contains" according to the comment by Jelmer
2010-11-08 15:24:41 +01:00
Matthias Dieter Wallnöfer
9aa0ed2c3a
ldb:pyldb.c - "py_ldb_msg_element_get" - here we can safely use "unsigned int" for the element reference
...
We don't make use of "Py_List*" calls
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Nov 8 11:21:27 UTC 2010 on sn-devel-104
2010-11-08 11:21:27 +00:00
Matthias Dieter Wallnöfer
ef4861d926
ldb:pyldb.c - "py_ldb_contains" - return only "0" not found, "1" found, "-1" error
2010-11-08 10:39:05 +00:00
Matthias Dieter Wallnöfer
7bdbfc9603
ldb:pyldb.c - most of the times "time_t" is defined as "long int"
...
Therefore use a signed long int for conversions.
http://stackoverflow.com/questions/471248/what-is-ultimately-a-time-t-typedef-to
2010-11-08 10:39:05 +00:00
Matthias Dieter Wallnöfer
9e5ca72afb
ldb:pyldb.c - fix some "Py_ssize_t" output warnings
2010-11-08 10:39:05 +00:00
Matthias Dieter Wallnöfer
f6572e5ffc
ldb:pyldb.c - use "Py_ssize_t" for counting list entries
...
This seems to be the most appopriate type
2010-11-08 10:39:05 +00:00
Matthias Dieter Wallnöfer
084c11d600
ldb:pyldb.c - fix indentation
2010-11-08 10:39:05 +00:00
Andrew Tridgell
7bd5d40208
s4-ldb: don't give an error if a module is already registered
...
this can happen when both the build and install paths are used to load
ldb modules
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Nov 8 05:28:14 UTC 2010 on sn-devel-104
2010-11-08 05:28:14 +00:00
Andrew Tridgell
d738a0448d
s4-ldb: better error message when we try to register a module twice
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-08 11:13:28 +11:00
Matthias Dieter Wallnöfer
d6d5f80348
ldb:ldb_pack.c - the "dn" attribute isn't allowed in the message part, only the "distinguishedName" one
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Nov 7 10:11:02 UTC 2010 on sn-devel-104
2010-11-07 10:11:02 +00:00
Jelmer Vernooij
4217734a51
credentials: Lowercase library name,
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Nov 7 01:48:44 UTC 2010 on sn-devel-104
2010-11-07 01:48:44 +00:00
Jelmer Vernooij
e28cec7817
ldbsamba: Lowercase library name.
2010-11-07 01:57:34 +01:00
Matthias Dieter Wallnöfer
3d443b3797
ldb:ldb_parse.c - "ldb_parse_hex2char" - always initialise "c"
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov 6 21:04:58 UTC 2010 on sn-devel-104
2010-11-06 21:04:57 +00:00
Matthias Dieter Wallnöfer
1688b71ca4
ldb:ldb_tdb.c - ltdb_check_special_dn - fix indentation
2010-11-06 20:24:19 +01:00
Matthias Dieter Wallnöfer
889fa1cac5
ldb:ldb_tdb.c - make "ltdb_add" more similar to "ltdb_modify"
...
And remove in "ltdb_add_internal" a cache loading call which has been present
twice.
2010-11-06 20:24:19 +01:00
Andrew Tridgell
eaabb5950f
s4-ldb: much more memory efficient msg filtering
...
this ensures we don't leave unnecessary attributes in returned ldb
objects
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-05 23:42:09 +11:00
Andrew Tridgell
0a2642c7dc
s4-ldb: show the reason for module initialization failure
2010-11-05 23:42:08 +11:00
Matthias Dieter Wallnöfer
90b3bf8f62
ldb:ldb.h - reorder extended operations list
...
We always define the controls and operations with a comment block. The data
structure definitions lie a bit below.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Nov 5 08:44:14 UTC 2010 on sn-devel-104
2010-11-05 08:44:14 +00:00
Kamen Mazdrashki
78b05a3116
s4-ldb_module.h: use LDB error code for ldb_error() macro rather than LDB_DEBUG_FATAL
...
We end up calling ldb_error_at() which expects an LDB error,
but LDB_DEBUG_FATAL is not such code. It is actually equal to LDB_SUCCESS.
Thus the effect is that we report a *fatal* error, but return
LDB_SUCCESS in many places.
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Thu Nov 4 12:57:33 UTC 2010 on sn-devel-104
2010-11-04 12:57:33 +00:00
Andrew Tridgell
e606298631
s4-ldb: implement LDB_FLAG_INTERNAL_DISABLE_SINGLE_VALUE_CHECK
...
this disables the single value checking for one attribute. It is much
more specific than a general RELAX control, and also more efficient. I
think we should try to have more precise overrides like this, rather
than using RELAX as a general purpose override
2010-11-04 20:35:44 +11:00