Commit Graph

338 Commits

Author SHA1 Message Date
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
Kurt Zeilenga
48cb85865d Remove some unnecessary #ifdefs 2005-11-26 07:38:18 +00:00
Pierangelo Masarati
cbdaf8058f silence warning 2005-11-10 00:33:19 +00:00
Howard Chu
7dcb68f6fa Move CSN invocations to backends 2005-10-13 11:58:44 +00:00
Luke Howard
06600b9a1d fix slapi_sdn_isempty() logic 2005-08-26 10:46:56 +00:00
Hallvard Furuseth
45d60c21dd slapi_rdn_set_<sdn/rdn>: Void functions, so return nothing - not even void. 2005-08-26 02:26:50 +00:00
Luke Howard
a99305da41 Allow slapi_sdn_get_parent() to work if only normalized DN is available 2005-08-24 05:11:58 +00:00
Luke Howard
53a15b6820 Use be_match() instead of testing pointer equivalence 2005-08-18 04:12:54 +00:00
Luke Howard
d174f6720a Add read-only SLAPI_X_ADD_STRUCTURAL_CLASS pblock extension.
This is necessary to compensate for a regression in the SLAPI
implementation since it moved to an overlay: global add preop
plugins no longer have access to operational attributes,
because slap_mods_opattrs() is called by fe_op_add(), invoked
after the global SLAPI overlay.

(Some of our plugins need to the structural object class of the
to-be-added entry.)

I suppose an option would be to have the SLAPI overlay
optimistically call slap_mods_opattrs() (as long as this can be
called idempotently). If there are any other ideas let me know.
2005-08-17 07:25:27 +00:00
Luke Howard
3647cba131 ITS#3924
Also, fix slapi_dn_parent() crasher
2005-08-09 05:28:58 +00:00
Pierangelo Masarati
eae2233d0c don't leak in case of attribute not found 2005-08-09 03:39:12 +00:00
Luke Howard
2e36d49a73 Fix slapi_str2entry()/slapi_entry2str() allocation 2005-08-09 02:56:21 +00:00
Luke Howard
6461a5b7fd ITS#3924 2005-08-09 02:12:18 +00:00
Hallvard Furuseth
3142c03e5a Fix typo in previous commit (slapi_dn.c -> slapi_dn.lo) 2005-08-08 14:30:34 +00:00
Luke Howard
d463430295 Remove slapi_x_be_select() 2005-08-08 13:26:02 +00:00
Luke Howard
d96f3615b3 New file - slapi_dn.c 2005-08-08 13:25:24 +00:00
Luke Howard
7d557f0b0d Add Slapi_DN API 2005-08-08 13:24:18 +00:00
Luke Howard
3858ce0728 Add slapi_x_be_select() (to be replaced with slapi_be_select() when
we support Slapi_DN API)
2005-08-08 11:01:39 +00:00
Luke Howard
ef81368404 Don't return frontend as SLAPI_BACKEND, return actual backend instead
for compat with 2.2 plugins

Add a couple of backend SLAPI APIs
2005-08-08 09:33:02 +00:00
Luke Howard
0dd503a339 Add missing break statement in switch for SLAPI_SEARCH_ATTRS handler 2005-08-08 03:39:00 +00:00
Luke Howard
bba3f62bdc Always restore op->o_callback in SLAPI overlay - was spinning indefinitely 2005-08-07 03:13:57 +00:00
Luke Howard
6911e0022b Plug some leaks in SLAPI modifications handling 2005-08-06 14:58:25 +00:00
Luke Howard
b620a0e23c slapi/slapi_utils.c rev 1.172 removed the 'dup' parameter to
slapi_int_ldapmods2modifications(), but a 'dup' test remains in the
function body. Should always evaluate to TRUE.
2005-08-02 16:12:09 +00:00
Luke Howard
12d006d17d Add o_no_schema_check to operation structure
entry_schema_check() nows takes Operation instead of Backend as first
argument, allows it to check o_no_schema_check
2005-08-01 15:26:13 +00:00
Luke Howard
b1f478f161 Add slapi_dn_isbesuffix()
Fix slapi_dn_beparent() logic
Fix slapi_int_ldapmods2modifications() memory management, values
always need to be duplicated because of prettying in slap_mods_check()
2005-08-01 15:24:46 +00:00
Luke Howard
9a45f87ede Fix crasher in SLAPI_SEARCH_ATTRS handler
Add SLAPI_X_OPERATION_NO_SCHEMA_CHECK, SLAPI_X_MANAGEDIT
Fix modlist memory management
2005-08-01 15:24:02 +00:00
Luke Howard
65ac57bcac Plug leaks 2005-08-01 15:23:12 +00:00
Luke Howard
e70ab8655c Centralize SLAPI initialization into slapi_over_config() 2005-08-01 15:22:56 +00:00
Luke Howard
71d76fbeba slap_mods2entry() should not zero pointers into the modifications
list because checking is performed on these, rather than the entry.

slap_mods_free() now takes an extra argument indicating whether to
free the values or not.
2005-08-01 02:16:02 +00:00
Luke Howard
2b5cf310e6 Fix slapi_dn_beparent() behaviour (again) 2005-07-31 14:17:36 +00:00
Luke Howard
f0101fe5a7 Fix slapi_dn_beparent() logic 2005-07-31 06:45:39 +00:00
Luke Howard
040a0956ac Support SLAPI_X_OPERATION_DELETE_GLUE_PARENT 2005-07-31 05:42:51 +00:00
Luke Howard
1a2f3b5f2d Restore 2.2 SLAPI behaviour: target DN is not normalized
(actually, in 2.2 the target DN was not even prettied, but this
will do)
2005-07-31 05:23:56 +00:00
Luke Howard
6f0edd6c22 Call slap_mods2entry() in do_add(), so that global overlays (including
global SLAPI plugins) have access to op->ora_e.

Note that slap_mods2entry() is still called in fe_op_add() in order to
add any operational attributes.
2005-07-31 04:56:27 +00:00
Hallvard Furuseth
42a9661071 Initialize i (#changes) if no mods. Simplify (*modp) to lmod. 2005-07-30 23:46:07 +00:00
Luke Howard
f5afe4fdc7 Back out previous commit, appears not to match frontend - still
investigating
2005-07-30 08:30:36 +00:00
Luke Howard
98e49eca60 slapi_add_internal_pb() should not set op->ora_e, this is done by frontend 2005-07-30 08:19:26 +00:00
Luke Howard
60e17c1fff Don't instantiate SLAPI overlay in tool mode 2005-07-29 16:45:25 +00:00
Luke Howard
0582504893 Remember to NULL terminate control arrays - not sure how I managed to
make this error in multiple places
2005-07-28 09:56:55 +00:00
Luke Howard
f32bfe729f pblock_add_control() needs to call slapi_dup_control() 2005-07-28 09:48:44 +00:00
Luke Howard
f1e604a3ac Add slapi_int_dn_pretty()/slapi_int_dn_normalize() to support plugins
that override distinguishedName syntax and matching rule
2005-07-28 09:02:13 +00:00
Luke Howard
e4ff86c198 Add slapi_over_call_plugins() to ensure that global plugins are
invoked from slap_callbacks
2005-07-28 08:52:50 +00:00
Luke Howard
53ad7ffbff Add some debugging for failed plugin loads 2005-07-28 08:35:28 +00:00