Matthias Dieter Wallnöfer
a75d271373
s4:rdn_name LDB module - move the "distinguishedName" write prevent check here
...
In my eyes it fits better here than in the TDB backend code.
2010-06-07 20:31:22 +02:00
Matthias Dieter Wallnöfer
dd64b253fc
s4:rdn_name LDB module - use "ldb_msg_remove_attr" for deleting attributes
2010-06-06 20:48:04 +02:00
Matthias Dieter Wallnöfer
430491b2df
s4:rdn_name LDB module - remove "rdn_name_find_attribute"
...
It does exactly the same as "ldb_msg_find_element".
2010-06-06 20:47:41 +02:00
Matthias Dieter Wallnöfer
ee524d3182
s4:"rdn_name" LDB module - fix the creation of the RDN attribute (try to normalise it)
...
And return always the correct error codes on the failed add operations (should
anyway be ERR_OPERATIONS_ERROR - therefore no behaviour change).
2010-05-24 14:01:06 +02:00
Anatoliy Atanasov
bcdaa23798
s4/rodc: Fix the callbacks up the stack to handle referrals on modify requests
2010-05-04 18:31:47 +02:00
Matthias Dieter Wallnöfer
8d3b7d418e
LDB:asq module - change counters to "unsigned" where appropriate
2010-03-08 18:53:24 +01:00
Matthias Dieter Wallnöfer
df17e1b962
LDB:sort module - change counters to "unsigned" where appropriate
2010-03-08 18:51:27 +01:00
Matthias Dieter Wallnöfer
8248069c91
LDB:rdn name module - change counters to "unsigned" where appropriate
2010-03-08 18:51:26 +01:00
Matthias Dieter Wallnöfer
681c88798a
LDB:paged searches module - change counters to "unsigned" where appropriate
2010-03-08 18:51:25 +01:00
Matthias Dieter Wallnöfer
7e7d9a8a48
LDB:paged results module - change counters to "unsigned" where appropriate
2010-03-08 18:51:25 +01:00
Brad Hards
1683d090cc
LDB related spelling fixes.
...
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-02-22 21:45:36 +01:00
Andrew Tridgell
3ae75a4248
s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()
2010-02-13 22:36:12 +11:00
Andrew Tridgell
8331b4c4f8
s4-ldb: check for -ve value for page size
...
This comes from a tip from Howard Chu. Apparently some clients
will send a -ve page size value.
2009-11-30 18:15:31 +11:00
Andrew Bartlett
f1f1bdada6
s4:ldb Remove debug traces duplicated by the new generic trace code
2009-11-02 16:36:51 +11:00
Matthias Dieter Wallnöfer
d120e7ebde
s4:ldb_sort - Add some more "const"
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-10-22 10:02:43 +11:00
Matthias Dieter Wallnöfer
8536e1b947
s4:various LDB modules - "build_request" functions - propagate result codes back
...
It's very useful to know the exact result code when something fails and not
only a generic (by the module) created one.
Sure, there are some exception cases with specific results (special message
constellations, attributes, values...) which shouldn't be changed at all
(examples of them are in the "ldap.py" test). Therefore I looked very
carefully to not change them.
2009-10-06 19:41:16 +02:00
Matthias Dieter Wallnöfer
deb268f7fa
s4:rdn_name - fix up the rename operation
...
A function call was wrong ("ldb_request" rathen than "ldb_next_request").
2009-10-03 10:36:41 +02:00
Matthias Dieter Wallnöfer
2b9b232912
Revert "s4:LDB/LDAP - Re-allow renames"
...
This reverts commit 767fce6fccf484b547219abd5e6abc941eacaf92.
Simo pointed out that the patch generates race conditions. We need to solve this
using a new control.
2009-10-03 00:14:05 +02:00
Matthias Dieter Wallnöfer
767fce6fcc
s4:LDB/LDAP - Re-allow renames
...
The main problem is that the "rdn_name" module launches on a rename request also
a modification one with the "special attributes" which can't be changed directly.
An introduced flag helps to bypass the restriction.
2009-10-02 21:27:46 +02:00
Andrew Bartlett
2651603269
s4:ldb Don't allow RDN to be modified with an LDB modify message
...
Found by the Microsoft testsuite at the AD interop event.
Andrew Bartlett
2009-10-02 19:17:24 +02:00
Matthias Dieter Wallnöfer
d2ac4cbcee
s4:rdn_name module - a normal error message should be enough for this failure
...
I don't think that we really want to have this error printed out on the server
console (stdout) since this hasn't serious results as DB or data corruption
and similar.
2009-10-02 19:17:23 +02:00
Matthias Dieter Wallnöfer
ae8e5b48e7
s4: Fix typo
2009-09-06 12:30:37 +02:00
Matthias Dieter Wallnöfer
b255a41dca
s4:operational module - move and enhancements
...
This moves the "operational" LDB module to the right place under "dsdb/samdb/ldb_modules"
(suggested by abartlet) and enhances it for supporting dynamic generated
"primaryGroupToken" for AD groups. This should fix bug #6466 .
2009-08-11 12:59:15 +02:00
Andrew Bartlett
dd557cc361
s4:ldb Make error message in rnd_name more useful
2009-08-07 14:22:54 +10:00
Matthias Dieter Wallnöfer
39b0158373
s4:ldb Cosmetic corrections in "rdn_name" module
2009-08-05 20:28:05 +02:00
Sumit Bose
9d7cb4826a
remove all '\n' from ldb_debug
2009-07-14 11:21:11 -04:00
Andrew Tridgell
6836b16dda
fixed server side sort control
...
when sorting a record that does not have the requested sort attribute
then put those records last in the sort result
2009-06-10 10:33:53 +10:00
Andrew Kroeger
bf863bccb6
s4:ldb:modules: Correct typos.
2009-05-26 16:38:39 -04:00
Andrew Bartlett
4a45b0da57
s4:ldb Allow paged_searches to be mixed with other controls
...
I want to mix this with the server-side sort in particular.
Andrew Bartlett
2009-03-20 16:45:52 +11:00
Andrew Bartlett
1dc5b90e86
s4:ldb Fix the paged_searches module
...
This simplifies the code, removes presumptions about being the only
control in the reply, and allows it to function against Windows 2008.
For searches which did not require a paged result, the module was
simply returning a failure when the compleated search did not include
a paged result control.
Andrew Bartlett
2009-03-20 16:28:40 +11:00
Simo Sorce
1cd7fe7194
Fix headers, ldb_includes.h is a private header,
...
do not reference it from ldb.h
2009-02-23 17:38:11 -05:00
Volker Lendecke
d75fe9b393
Fix Coverity ID 872 -- we have alread dereferenced "ac" 2 lines above
2009-02-12 23:17:19 +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
Jelmer Vernooij
479b4b09e1
Fix accidental condition inversion.
2008-12-24 05:39:29 +01:00
Jelmer Vernooij
bd64688c6a
Fix more compiler warnings in various places.
2008-12-23 22:57:11 +01:00
Andrew Bartlett
596fe759e1
s4:ldb: make it possible to return per entry controls
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:27 +11:00
Jelmer Vernooij
87ec1d2532
Make sure prototypes are always included, make some functions static and
...
remove some unused functions.
2008-10-20 18:59:51 +02:00
Simo Sorce
7fb9007f3d
Fix very old bug in ASQ
2008-10-14 12:25:18 -04:00
Simo Sorce
4f40ee2b86
LDB ASYNC: core modules
2008-09-29 04:22:19 +02:00
Jelmer Vernooij
b0a95ad2f6
Revert LDB return code patches from Matthias.
2008-09-25 00:01:05 +02:00
Matthias Dieter Wallnöfer
9d849c30bc
Cosmetic corrections for the LDB library
...
This commit applies some cosmetic corrections for the LDB library.
2008-09-24 19:40:03 +02:00
Andrew Bartlett
64293ca4af
All these syntaxes are now handled by the schema.
...
(This used to be commit 94d5e69190f34d66d4defd4a7de7ce24bee77bc3)
2008-08-21 12:56:34 +10:00
Andrew Bartlett
ba94c12bc4
Fix rdn_name errors.
...
Return the correct error when the DN is mismatched with it's RDN
attribute (now matches AD).
Andrew Bartlett
(This used to be commit bf7166e785e5c5d52dbb0c12e5e4206d74e72f4e)
2008-02-28 08:38:53 +11:00
Jelmer Vernooij
39a817d310
Fix use of some modules (needed _PUBLIC_).
...
(This used to be commit ce332130ea77159832da23bab760fa26921719e2)
2008-02-20 04:33:43 +01:00
Jelmer Vernooij
0020793515
Fix static module list generation for ldb.
...
(This used to be commit 92c1c0e9137f0845cac6cc96bf78711b6aaffe21)
2008-02-20 03:40:44 +01:00
Jelmer Vernooij
16109a40c0
Use struct-based rather than function-based initialization for ldb modules everywhere.
...
(This used to be commit 85c96a325867f7bcdb412ebc53f8a47dbf7cd89b)
2008-02-20 01:54:32 +01:00
Simo Sorce
5a1433cae7
r26581: Make ldb_wait uniform, so that it is easy to remove it completely from modules
...
later on.
(This used to be commit f75ce8c20aa2b466e9ee86fdf1702b2ffda10ddf)
2007-12-24 01:51:07 -06:00
Jelmer Vernooij
0500b87092
r26540: Revert my previous commit after concerns raised by Andrew.
...
(This used to be commit 6ac86f8be7d9a8c5ab396a93e6d1e6819e11f173)
2007-12-21 05:52:06 +01:00
Jelmer Vernooij
3e75f222bc
r26539: Remove unnecessary statics.
...
(This used to be commit e53e79eebef3ece6978f0a2b4a1ee0a0814bb5d2)
2007-12-21 05:52:05 +01:00
Jelmer Vernooij
719a4ae0d3
r25522: Convert to standard bool types.
...
(This used to be commit 5e814287ba475e12f8cc934fdd09b199dcdfdb86)
2007-10-10 15:07:47 -05:00