Luke Howard
48d1046a35
Make slapi_pblock directly overlaid on operation/connection/slapreply
...
structures
This removes a lot of copying. It's still a bit tricky where the internal
slapd data types are different to those exposed via SLAPI (eg. modifications)
or the internal values are not allocated on the heap (eg. controls). Some
copying is necessary in these cases.
2005-07-25 04:19:33 +00:00
Luke Howard
69230b2b9f
more slapi cleanup
2005-07-23 13:21:28 +00:00
Luke Howard
92df34238a
Cleanup of SLAPI internal operation code; use frontendDB rather than
...
duplicating frontend code, and o->o_callback rather than overriding
entry send clalbacks.
Support for SLAPI internal operation plugins.
2005-07-23 12:03:13 +00:00
Pierangelo Masarati
02870e815b
renamed slapi_int_init_connection => slapi_int_connection_init for consistency; blind fix to ITS#3879
2005-07-22 16:57:20 +00:00
Luke Howard
cb786e3330
Remove SLAPI pblock from operation structure
2005-07-22 07:54:17 +00:00
Luke Howard
0799e6a246
more cleanups
2005-07-22 06:46:07 +00:00
Luke Howard
de10624dc3
Use accessor macros for SLAPI parameter blocks, should make it
...
easier to move into overlay private data
2005-07-22 05:26:15 +00:00
Luke Howard
ffe20229dc
Move most of SLAPI frontend into overlay
2005-07-21 16:35:20 +00:00
Luke Howard
7129f9ef91
Factor out common code in SLAPI internal ops
...
Allow internal operation pblock to forward connection/operation parameters
2005-07-21 08:34:25 +00:00
Luke Howard
f12103f36b
Fix regression in SLAPI ACL plugins owing to accidental commit
...
Support ACL_WADD/ACL_WDEL in SLAPI ACL evaluation/plugins
2005-07-20 08:00:24 +00:00
Luke Howard
25ae11ccd9
Unset intop callback parameters before they go out of scope
2005-07-20 04:24:02 +00:00
Luke Howard
c8ef1e1861
Always set sml_desc when converting from LDAPMods
2005-07-19 09:37:36 +00:00
Luke Howard
5eda803bc1
Add slapi_x_filter_set_attribute_type() API
2005-07-19 06:55:56 +00:00
Luke Howard
9e9c4b5397
Implement more of SLAPI 5.x - all SLAPI internal operations now take pblocks
...
as the canonical argument (wrappers for old APIs are provided)
2005-07-19 06:48:45 +00:00
Hallvard Furuseth
d449c9d08b
Silence "unused variable" warnings
2005-07-14 19:18:55 +00:00
Hallvard Furuseth
f841c364eb
Format fixes (%d<->%lu etc)
2005-07-06 05:53:02 +00:00
Howard Chu
8f58409749
Add SLAP_MOD_INTERNAL flag to Modifications, allow internal ops to bypass
...
ACL checks when modifying user-modifiable attributes as non-root user.
2005-06-04 09:44:39 +00:00
Kurt Zeilenga
feeeabcd68
manageDIT framework and obsolete objectclasses/DIT-content-rule override
2005-05-13 19:07:31 +00:00
Pierangelo Masarati
4abbf9c610
implement add/delete granularity in write access (ITS#3631)
2005-04-08 00:18:24 +00:00
Luke Howard
4b1d72ab2f
Add slapi_x_backend_get_flags() API
2005-01-28 08:33:29 +00:00
Kurt Zeilenga
e826914a88
Less kludgy willing-to-perform check for recognized and appropriate
...
global controls
2005-01-27 06:45:20 +00:00
Kurt Zeilenga
dc0eacd40b
Happy New Year!
2005-01-01 20:49:32 +00:00
Howard Chu
47dd8d8732
Dynamic control management
2004-11-23 13:08:45 +00:00
Howard Chu
7e87f54716
Revert ITS#3353 patch, it needs to be reworked.
2004-10-06 05:51:38 +00:00
Howard Chu
fda3d6260e
ITS#3353 consolidate slapd globals into a single struct
2004-10-01 07:33:16 +00:00
Pierangelo Masarati
761f287943
multiple precision with BIGNUM/gmp/ulong
2004-09-26 22:58:47 +00:00
Luke Howard
410ca3d1a9
Allow mods to be NULL in slapi_int_ldapmods2modifications()
2004-08-27 17:27:09 +00:00
Luke Howard
815efedff5
Fix "FIXME" in slapi_attr_add_value() - store normalized value as well as
...
real value
2004-08-26 05:02:21 +00:00
Pierangelo Masarati
b94d5e17e2
rework op/rs structures to deal with opeartional attributes
2004-07-18 21:44:29 +00:00
Luke Howard
4eaef6a37d
Do not crash if computed attribute has no values - necessary for range retrieval
...
support
2004-06-20 18:04:01 +00:00
Pierangelo Masarati
a689d81536
typo?
2004-06-19 10:02:53 +00:00
Kurt Zeilenga
b438e6b533
ITS#3166: correct slapi_entry_attr_get_* return types
...
patch provided by Martin Evans
2004-06-01 22:07:57 +00:00
Luke Howard
ab48d0295d
slapi_ldap_init() / slapi_ldap_unbind()
2004-05-24 05:28:43 +00:00
Luke Howard
ba686c399b
slight optimization - use ldap_bv2dn()
2004-05-24 03:43:53 +00:00
Luke Howard
f9b719f56e
Implement slapi_entry_{get,set}_uniqueid
2004-05-23 16:04:27 +00:00
Luke Howard
e932093f47
Fix breakage
2004-05-23 15:51:58 +00:00
Luke Howard
4c2e3eeda4
Add slapi_entry_add_rdn_values(), slapi_entry_rdn_values_present(), slapi_entry_schema_check() API
2004-05-23 15:47:23 +00:00
Luke Howard
71d473f09f
Implement slapi_rdn2typeval and slapi_dn_plus_rdn
2004-05-23 12:43:59 +00:00
Luke Howard
f62d1aac4e
Implement slapi_entry_size()
2004-05-23 12:12:43 +00:00
Luke Howard
13e657ffa8
Implement slapi_entry_has_children()
2004-05-23 12:06:47 +00:00
Kurt Zeilenga
4834e626ff
Fix overaggressive s/bvalues/values/ changes of previous commit(s)
2004-04-12 17:35:12 +00:00
Kurt Zeilenga
07fc395816
s/bvalues/values/
2004-04-09 20:56:46 +00:00
Pierangelo Masarati
a886172472
blind fix of mod_values cleanup
2004-04-08 14:42:02 +00:00
Kurt Zeilenga
c7f0438044
bvalue cleanup
2004-04-08 06:49:17 +00:00
Kurt Zeilenga
44725e7303
use BER_BVNULL
2004-04-07 04:11:43 +00:00
Pierangelo Masarati
a11dc61e05
rework be_isupdate accordingly to be_isroot
2004-04-06 09:42:40 +00:00
Kurt Zeilenga
c7e89d57be
swap be_isroot and be_isroot_dn symbols
2004-04-06 01:06:20 +00:00
Pierangelo Masarati
e516247068
exploit new isroot_dn helper
2004-04-05 17:31:27 +00:00
Pierangelo Masarati
ec6a663820
reset SlapReply flags
2004-03-17 11:50:15 +00:00
Luke Howard
3102602002
Fix previous commit
2004-01-02 06:34:50 +00:00
Luke Howard
53002fc3ce
Wrap slapi_entry_attr_get_charptr() around slapi_value_get_string()
2004-01-02 06:10:51 +00:00
Luke Howard
cc9101d980
Check value is a C string in slapi_value_get_string()
2004-01-02 06:07:22 +00:00
Kurt Zeilenga
3c598e89fb
Happy new year
2004-01-01 19:15:16 +00:00
Luke Howard
b0416d1140
Cleanup SLAPI namespace
2003-12-28 04:14:19 +00:00
Luke Howard
71dfd57e75
Initialize terminating bv_len in slapi_int_ldapmods2modifications
2003-12-27 08:43:02 +00:00
Luke Howard
516fd0ff50
First round of SLAPI cleanups - use slapi_int_XXX for internal functions
...
(slapi_x_XXX is still reserved for exported functions that are not part
of the SLAPI specification)
2003-12-16 15:49:31 +00:00
Kurt Zeilenga
62e6779e4c
Cleanup rcsid comments
2003-11-29 18:03:43 +00:00
Kurt Zeilenga
f6b9ac1338
Update notices and acknowledgements
2003-11-26 16:05:06 +00:00
Kurt Zeilenga
35dc15ad66
Normalize to IBM's OPL notice (with permission).
2003-11-20 05:11:37 +00:00
Kurt Zeilenga
986aabae01
Update to basic notice.
2003-11-20 04:59:01 +00:00
Luke Howard
7a1c94acd3
Add entry_dup(); make slapi_entry_dup() use it
2003-10-08 00:48:33 +00:00
Luke Howard
abaddd1c70
Cleanup SLAPI logging
...
Remove _SPARC hostname special case - gethostname() should work
2003-09-27 05:03:16 +00:00
Luke Howard
613f493cae
Add slapi_dn_beparent, slapi_dn_parent and slapi_dn_isparent API.
2003-09-27 03:29:05 +00:00
Luke Howard
a57956ac0f
Implementation of slapi_send_ldap_search_reference()
2003-09-26 17:10:03 +00:00
Howard Chu
7fd47cedb7
ITS#2735 - plug memory leaks
2003-09-24 00:32:27 +00:00
Luke Howard
b299d7e067
Modifications must be copied before calling slap_mods_check() because
...
the pretty function may replace values which are owned by the SLAPI plugin
slapi_entry_dup() optimization - avoid string re-encoding
Fix slapi_add_internal() logic errors (was this ever tested?)
Don't attempt to free entries that have been cached; see new internal
slapi_add_entry_internal_locked() API
2003-09-15 06:53:54 +00:00
Luke Howard
da56275a2c
Support per-backend ACL plugins
2003-09-01 08:49:22 +00:00
Luke Howard
0edb270b9e
Support for ACL plugins
2003-08-31 08:17:21 +00:00
Luke Howard
a08fb7de7e
Expose SASL context to SLAPI plugins (SLAPI_X_CONN_SASL_CONTEXT)
...
Useful for plugins that may wish to collude with the SASL library to,
for example, retrieve a user's authorization data from a Kerberos ticket
for access control purposes
2003-08-30 17:29:14 +00:00
Luke Howard
e01031b357
Set AttributeDescription in slapi_acl_check_mods()
2003-07-15 12:10:19 +00:00
Luke Howard
d29ed4407c
Always call modification postoperation plugins even if a
...
preoperation plugin has removed all modifications and
thus there are none to pass to the backend.
Accept SSF as a valid parameter block value.
Fix completely broken slapi_access_allowed()
2003-07-03 23:17:54 +00:00
Luke Howard
9936694960
Expose SSF to plugin
2003-07-03 19:01:13 +00:00
Luke Howard
0af6508632
s/forms/form in PADL copyright
2003-05-25 04:48:49 +00:00
Luke Howard
4cee2467be
s/forms/form in PADL copyright
2003-05-25 02:59:09 +00:00
Kurt Zeilenga
4b3545cd2e
Update IBM copyrights
...
Kurt Zeilenga, IBM Corporation
2003-05-25 02:03:07 +00:00
Luke Howard
9184d038ea
Build without HAVE_TLS
2003-05-20 02:59:19 +00:00
Luke Howard
8fd23795f8
Don't crash slapi_filter_get_subfilt() if no "any" filter
2003-05-05 10:23:33 +00:00
Luke Howard
13f0acfb6a
Don't crash if no attributes in slapi_attr_value_find()
2003-05-04 16:59:10 +00:00
Luke Howard
83cb1037a4
Fix slapi_filter_join() behavioural bug.
...
Fix slapi_filter_dup() crasher.
Add slapi_x_filter_append(), as a replacement for slapi_filter_join() that
can create compound filters containing multiple filters. Will propose API
to Sun DS team; until then it should likely be marked LDAP_DEVEL (if SLAPI
is not entirely marked as such already).
2003-05-03 04:15:35 +00:00
Kurt Zeilenga
5cd994ed21
remove dnNormalize2
...
replace calls to dnNormalize2 with calls to dnNormalize
2003-04-29 18:28:14 +00:00
Kurt Zeilenga
eebc51b9bf
remove dnPretty
...
rename dnPretty2 to dnPretty
2003-04-29 18:13:10 +00:00
Luke Howard
231a7cacf6
Remove unused variables in slapi_filter_test()
2003-04-26 03:28:48 +00:00
Luke Howard
b0e2fd5a8b
Don't crash in slapi_send_ldap_search_entry if no attributes specified
2003-04-26 03:28:12 +00:00
Luke Howard
b1b8d9d651
slapi_dn_normalize() should pretty DN; slapi_dn_normalize_case() should normalize it
...
(appears to be correct based on iPlanet documentation)
2003-04-23 11:29:11 +00:00
Luke Howard
4a51d2457a
Use attr_merge_normalize() instead of attr_mergeit()
...
(Seems to me that attr_mergeit() can be deprecated in favour of the
former -- Howard?)
2003-04-23 09:50:41 +00:00
Luke Howard
d4a9e0ece0
Fix crasher when duplicating substring assertions
2003-04-18 08:21:12 +00:00
Luke Howard
c734eaf68a
Improve error checking
2003-04-18 07:29:45 +00:00
Howard Chu
ece7452b05
More memory context tweaks
2003-04-11 01:29:28 +00:00
Kurt Zeilenga
c75be97ae9
#ifdef -DSLAP_NVALUES
2003-04-05 03:35:16 +00:00
Luke Howard
92ac90c1e3
Handle plugin returning no modifications in slapi_x_ldapmods2modifications()
2003-04-01 17:33:37 +00:00
Luke Howard
3b5f98723c
Fix crasher in slapi_dn_issuffix() when malformed DNs are passed
2003-04-01 17:16:56 +00:00
Howard Chu
9355dca9af
Consolidated slap_callbacks into one function. Removed send_search_result.
2003-04-01 04:12:18 +00:00
Luke Howard
fc4d4e2f95
Cleanup to use new internal API
2003-03-31 17:10:55 +00:00
Luke Howard
2fdbc55374
SLAPI cleanup
2003-03-31 06:41:30 +00:00
Howard Chu
f80114af02
Fix previous commit
2003-03-31 06:27:16 +00:00
Luke Howard
5004ec3f01
SLAPI fixes
2003-03-31 04:58:41 +00:00
Luke Howard
6c2f47ecd5
SLAPI fixes
2003-03-31 04:56:17 +00:00
Pierangelo Masarati
a26cca88dd
blind fix of value_match when SLAP_NVALUES is set
2003-03-24 22:23:18 +00:00
Howard Chu
1d772b3df6
ITS#2364 fix unterminated AttributeName array
2003-03-23 16:00:20 +00:00
Kurt Zeilenga
c981ebcb61
Don't return LDAP_OPERATIONS_ERROR for internal errors
2003-03-01 20:17:52 +00:00