Commit Graph

11123 Commits

Author SHA1 Message Date
Kurt Zeilenga
1abceb3020 deprecated 2004-08-28 15:52:18 +00:00
Kurt Zeilenga
5cf77e2d31 new RFCs 2004-08-28 15:50:21 +00:00
Kurt Zeilenga
429be3c137 Add FIXME comment regarding improper return of unavailableCriticalExtension
Misc Clean.
2004-08-28 13:45:53 +00:00
Kurt Zeilenga
1ccb936170 fix typo in last commit 2004-08-28 04:01:19 +00:00
Kurt Zeilenga
c9dd33b520 Add scheme check to find_connection 2004-08-28 03:55:02 +00:00
Sang Seok Lim
d997105915 .conf and .schema files for test31-component-filter 2004-08-28 03:53:41 +00:00
Kurt Zeilenga
8064bb6ef1 A better find_connection() port fix 2004-08-28 03:53:31 +00:00
Kurt Zeilenga
1d3eccca9e Partial ITS#3280 fix. ldap:// referrals only. 2004-08-28 03:25:59 +00:00
Kurt Zeilenga
e29381da53 Fix typo 2004-08-28 02:30:18 +00:00
Kurt Zeilenga
e2f2186aa0 Note fixme 2004-08-28 01:26:34 +00:00
Kurt Zeilenga
49bd9befa4 Referrals should not (except in special cases) be
returned for Bind operations, instead invalidCreditials
should be returned.
2004-08-28 01:08:24 +00:00
Kurt Zeilenga
f39d6f80fb ITS#3275: fix logging 2004-08-28 00:50:15 +00:00
Howard Chu
81265a7872 fix uninit'd be_context_csn for syncrepl 2004-08-28 00:26:35 +00:00
Luke Howard
6cdaa19b96 Remove bogus SLAPI code path which special-cased modlist == NULL
This had the effect of setting the result code to LDAP_SUCCESS for modlist == NULL
even on a replica when an update-ref might be set. This was causing a plugin (that
implements the commit phase in a post-op plugin) to write to "read-only" replica.
2004-08-27 19:34:14 +00:00
Kurt Zeilenga
2782b6f46f cleanup 2004-08-27 19:00:15 +00:00
Kurt Zeilenga
fe6e3ba3ef Instead of removing AI_ADDRCONFIG, place behind #ifdef (of undefined
macro).  Add comment indicating configure test needed.
2004-08-27 18:59:34 +00:00
Kurt Zeilenga
6cde4bdeb3 Move LDAP_COMP_MATCH define from ldap.h to slap.h 2004-08-27 18:53:44 +00:00
Kurt Zeilenga
6780800386 Update RFCs and I-Ds... 2004-08-27 18:41:02 +00:00
Kurt Zeilenga
a17c9ec502 Fix init error 2004-08-27 17:54:18 +00:00
Luke Howard
410ca3d1a9 Allow mods to be NULL in slapi_int_ldapmods2modifications() 2004-08-27 17:27:09 +00:00
Luke Howard
8c764e8d63 Fix a SLAPI bug where slapd could crash if a preop plugin changed the mods
list and a subsequent plugin aborted the operation -- regardless of the
preop result the frontend must refetch the array of LDAPMods
2004-08-27 17:12:01 +00:00
Ralf Haferkamp
0185c75c2f added new test slapd-modify (based on slapd-modrdn). Adds a single attribute to an entry and removes it again. 2004-08-27 17:07:18 +00:00
Sang Seok Lim
78d08a8271 Misc Bug Fix:
- Remove unused variables
- Remove the attribute for component filter test in core.schema
2004-08-26 16:43:28 +00:00
Luke Howard
8d1f26b7b6 Check for opinfo->boi_txn before using it - sometimes it is NULL even if
opinfo isn't
2004-08-26 10:17:53 +00:00
Luke Howard
400458c9c5 Don't use SLAPI_TARGET_DN for group plugins - it is required elsewhere 2004-08-26 10:04:08 +00:00
Luke Howard
bccb4860ec Sync with slapd/slapi/slapi.h (whose idea was it ever to have the same
headers in two places? :))
2004-08-26 05:30:49 +00:00
Luke Howard
739dcf2193 boi_bdb must be set 2004-08-26 05:27:59 +00:00
Luke Howard
563f73b81d backend_compute_output_attr() should use actual computed attribute type
returned by the plugin, rather than that requested by backend_attribute(),
for ACL checking.

They should of course be the same but this is the "correct" approach from
both a security and readability perspective
2004-08-26 05:18:33 +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
Luke Howard
102cd721ef Extend backend_attribute() to support computed attributes (SLAPI) 2004-08-26 05:02:01 +00:00
Luke Howard
5f6996c8bf Add SLAPI_X_GROUP_TARGET_ENTRY so that group plugin can use target entry 2004-08-26 04:24:29 +00:00
Sang Seok Lim
2af6457771 This patch is for a component filter. please refer ITS#3260 for detail
and "implementing GSER and Component Matching" in ODD 2004.
All codes are #ifdef'd with LDAP_COMP_MATCH.
test031-component-filter works correctly only when the LDAP_COMP_MATCH macro is set.
To disable it, set AC_WITH_COMP_MATCH "no" in "openldap_src/tests/run.in".
2004-08-26 00:06:39 +00:00
Howard Chu
05e7632c30 ITS#3301 fix prev commit, don't fail op on DB_NOTFOUND 2004-08-25 20:53:39 +00:00
Luke Howard
d45b89823f Support pre-operation and post-operations for backend_group()
This allows computed attribute plugins to also provide their attributes to
the ACL engine, for example
2004-08-25 15:20:19 +00:00
Luke Howard
9df812bba1 Add pblock types for backend_group SLAPI plugins 2004-08-25 15:18:56 +00:00
Pierangelo Masarati
da6bd4b8b0 cleanup 2004-08-25 14:37:28 +00:00
Pierangelo Masarati
ba7bb04ed3 check if "rootdn" is defined 2004-08-25 14:29:40 +00:00
Howard Chu
5cba217006 ITS#3301 check for dn2entry failure 2004-08-25 13:55:55 +00:00
Luke Howard
2316461b93 Remove unused variable 2004-08-25 12:31:43 +00:00
Pierangelo Masarati
d9534e5e0d "order by" plus -S "" seems to work... 2004-08-25 12:14:07 +00:00
Pierangelo Masarati
81b5755364 try with "order by"... 2004-08-25 12:09:05 +00:00
Luke Howard
ea6f5bad65 This patch fixes some subtle interactions between SLAPI and syncrepl. Due to
SLAPI always assigning connection and operation IDs of zero for internal
operations, such operations would cause a stale contextCSN to be returned from
slap_get_commit_csn(). As a result, SLAPI internal updates would be invisible
to replicas until an external update was made. Also, SLAPI internal operations
never called slap_graduate_commit_csn() which leaked pending CSNs.

Also included in this patch is a general cleanup of some of the SLAPI code.

Note that we need to use a separate mutex on conn_nextid to avoid a deadlock
where a post-operation plugin tries to acquire connections_mutex, having locked
the per-connection mutex, while the listener thread tries to acquire the
per-connection mutex (having locked connections_mutex). connection.c needs to
be fixed to acquire mutexes in the same order.
2004-08-25 11:52:55 +00:00
Pierangelo Masarati
2aacf1d353 problems: asort() is not available in all awk implementations 2004-08-25 11:43:21 +00:00
Pierangelo Masarati
e745d15f02 remove cruft 2004-08-25 11:32:47 +00:00
Pierangelo Masarati
20d923fac9 works with IBM db2 as well; at this point the tsts are assumed to wok with any RDBMS that allows write operations 2004-08-25 11:28:14 +00:00
Pierangelo Masarati
53483e012d more definitive improvements; now write operations are consistent; plugged some more leaks/invalid frees; tests are more complete. IBM db2 doesn't pass write test because the entries are written in a different order; need to write a script that sorts the results... 2004-08-25 10:41:13 +00:00
Pierangelo Masarati
752bffb16c write test is almost working for ibmdb2 as well... 2004-08-24 17:08:30 +00:00
Pierangelo Masarati
361f943dfd revert previous (erroneous) commit 2004-08-24 15:38:40 +00:00
Pierangelo Masarati
d25ade71e9 need to perform a select after adds... 2004-08-24 15:37:10 +00:00
Pierangelo Masarati
aae3c074f1 cleanup 2004-08-24 15:16:06 +00:00