Commit Graph

380 Commits

Author SHA1 Message Date
Howard Chu
4097d261bb Use <ldap_queue.h> macros for prev commit 2008-03-14 16:49:53 +00:00
Kurt Zeilenga
c890c96d13 Happy New Year (belated) 2008-01-08 00:19:56 +00:00
Pierangelo Masarati
7aeac21440 silence warnings 2007-11-23 12:47:53 +00:00
Howard Chu
4c4cb4921b ITS#5060 take care of entry cleanup when using
pblock_set(SLAPI_SEARCH_RESULT_ENTRY)
2007-10-03 09:40:08 +00:00
Howard Chu
ae0c57a420 ITS#5164 lack of a db_open handler is not an error 2007-10-03 09:00:41 +00:00
Howard Chu
396b22cfe2 Fix uninit'd ld in prev commit (coverity) 2007-10-02 13:31:27 +00:00
Pierangelo Masarati
2de9d97ad2 first round of s/sprintf/snprintf/; the rationale is: truncate error messages rather than buffer overflow; otherwise, assert that no buffer overflow occurred. In some cases, error handling could be added. Please note: no real error in the code was found so far, apart from that in syncprov.c and from some config-time error logging; however, errors could slip thru again if things don't change consistently 2007-09-29 17:55:33 +00:00
Howard Chu
d2179d885f Use attr_valfind instead of value_find_ex to optimize lookups 2007-09-24 05:02:31 +00:00
Howard Chu
e8c2414831 Preliminary sorted value support 2007-09-24 01:31:23 +00:00
Howard Chu
c4dbe1a274 Attribute/Modification value counters 2007-09-21 08:43:56 +00:00
Pierangelo Masarati
1bdc186ea2 fix API change 2007-08-22 00:08:38 +00:00
Pierangelo Masarati
f4844889fd s/orb_tmp_mech/orb_mech/ 2007-08-16 09:29:45 +00:00
Howard Chu
88cbe052e0 Fallout from ITS#4986 - remove unused param of select_backend() 2007-07-13 03:18:20 +00:00
Hallvard Furuseth
93fbb87545 Give OperationBuffer normal struct members instead of using
LBER_ALIGNED_BUFFER(OPERATION_BUFFER_SIZE), as discussed in ITS#4078.
Add a corresponding SyncOperationBuffer in overlays/syncprov.c.
2007-05-18 23:54:26 +00:00
Pierangelo Masarati
bf2d5729ae more structure name cleanup 2007-03-20 17:09:24 +00:00
Kurt Zeilenga
da6d9eb046 happy new year 2007-01-02 20:00:42 +00:00
Howard Chu
45fbb173b7 Pass op to slap_mods_check() 2006-12-24 06:55:02 +00:00
Howard Chu
6020a6d81d ITS#4337 implement modrdn for back-config 2006-12-24 00:56:37 +00:00
Howard Chu
2a9afa55a7 Avoid unnecessary calls to oc_bvfind 2006-11-27 19:59:59 +00:00
Howard Chu
78172aa0cf Entry/Attribute struct caching, to minimize malloc fragmentation
Note: this breaks LDAP_COMP_MATCH and SLAP_ZONE_MALLOC. But they
were probably broken already anyway.
2006-08-29 01:43:23 +00:00
Kurt Zeilenga
d3e288dffe s/managedit/relax/
#unifdef -DSLAP_RELAX
2006-08-22 23:31:46 +00:00
Luke Howard
88b499b93d s/ber_tag_t/int where appropriate
Note about possible ITS#4158 breakage for SLAPI_CONN_DN
2006-06-12 08:40:39 +00:00
Luke Howard
e752b0b9af Don't call search rewriter plugins for internal operations 2006-06-11 10:10:32 +00:00
Luke Howard
0e5ff3dbd0 Add internal bind/unbind/search/compare/abandon plugin types 2006-06-11 09:54:15 +00:00
Luke Howard
60b25fb095 Add internal bind/unbind/search/compare/abandon plugin types 2006-06-11 09:47:54 +00:00
Luke Howard
71827d002d Add SLAPI_X_OPERATION_NO_SUBORDINATE_GLUE for exposing o_no_subordinate_glue 2006-06-11 06:50:53 +00:00
Luke Howard
1ebfd26ca3 Fix broken referral handling in slapi_send_ldap_result() 2006-06-11 06:49:58 +00:00
Luke Howard
60b9c90fad Fix typo when comparing local sock name 2006-06-10 07:37:06 +00:00
Luke Howard
2941bd8a9e Handle unknown attributes in SLAPI_SEARCH_ATTRS 2006-06-09 15:54:59 +00:00
Luke Howard
ea45b5b322 fix previous commit 2006-06-09 15:52:44 +00:00
Luke Howard
f4c5bddd9c Ignore unknown attributes in slapi_send_ldap_search_entry()
(mirrors code in slapi_pblock.c)
2006-06-09 15:42:33 +00:00
Howard Chu
58099cc045 coverity cleanup 2006-05-16 22:16:27 +00:00
Howard Chu
1135d19f16 ITS#4466 fix typo, uninit'd var 2006-05-16 22:16:13 +00:00
Luke Howard
51a65afb86 SLAPI_PLUGIN_{PRE,POST}_RESULT_FN should also be called for
REP_SASL and REP_EXTENDED in addition to REP_RESULT -- the
distinction is not present in FDS
2006-04-28 08:39:29 +00:00
Luke Howard
fa1f4d3c38 slapi_ch_bvdup() should be implemented in terms of ber_dupbv() 2006-03-01 16:29:31 +00:00
Luke Howard
cd18c6cb4d Fix slapi_valueset_count() for no value case 2006-02-27 05:21:11 +00:00
Luke Howard
8c674299bf Fix memory smasher in slapi_valueset_free() 2006-02-27 03:44:40 +00:00
Luke Howard
8a3e5eb1b8 Add SLAPI_OPERATION_MSGID
Add SLAPI_IS_INTERNAL_OPERATION
2006-02-20 09:30:28 +00:00
Luke Howard
ec023f9777 remove c_pb, it is no longer needed 2006-02-16 00:14:38 +00:00
Luke Howard
dab5803a59 Use bi_db_{open,close} to run SLAPI start/close plugins 2006-02-14 09:20:50 +00:00
Luke Howard
4954adb7c1 formatting cleanup 2006-02-10 07:40:23 +00:00
Luke Howard
0c0abfe917 slapi_filter_dup() can now use filter_dup() 2006-01-23 21:23:36 +00:00
Luke Howard
90a6c71d32 ITS#4291 2006-01-08 14:11:29 +00:00
Luke Howard
e60724422b ITS#4311 2006-01-08 14:07:19 +00:00
Kurt Zeilenga
acbb5cf689 Happy new year! 2006-01-03 23:11:52 +00:00
Luke Howard
3f6daa4680 Initialize sml_type
Don't clobber sml_type when converting SLAPI mods
2006-01-01 14:25:09 +00:00
Luke Howard
b6fffd1417 Add orr_modlist member to request structure, containing a list of
modifications to be applied by the backend atomically with a modify
RDN request.

Handle updating of RDN values in frontend.

Code that calls a backend's be_modrdn should call slap_modrdn2mods(op, rs)
before invoking the backend and cleanup with slap_mods_free( op->orr_modlist, 1 ).
See do_modrdn() for an example.
2006-01-01 09:23:24 +00:00
Luke Howard
dc166c08b8 Fix regression in SLAPI ACL plugins, call with frontendDB pblock 2005-12-24 17:15:13 +00:00
Luke Howard
d4c9c3b60e Use local SSF for internal SLAPI operations (probably need to do same
in connection_fake_init()) too)
2005-12-24 13:16:48 +00:00
Luke Howard
c723a77e1c Fix crasher in slapi_over_unmerge_controls() (if called from cleanup handler
where merge controls was not called)
2005-12-24 09:20:06 +00:00