Commit Graph

531 Commits

Author SHA1 Message Date
Kurt Zeilenga
6db7e605ee Align Operation buffers using LBER_ALIGNED_BUFFER 2005-10-12 23:17:28 +00:00
Howard Chu
44e9209629 Remove lint 2005-10-11 02:16:09 +00:00
Pierangelo Masarati
03db9632dd improve previous commit (ITS#4071) 2005-10-08 18:54:03 +00:00
Pierangelo Masarati
5420344f05 allow rwm to work with either the real or the virtual naming context equal to the empty DN 2005-10-08 10:56:10 +00:00
Howard Chu
851c65ac5b ITS#4068 fix queued UUIDs 2005-10-07 00:31:38 +00:00
Howard Chu
f14f6472e7 Plug memleaks 2005-10-06 18:45:53 +00:00
Howard Chu
ebb23234ca Call normalizer directly, not rdnNormalize. 2005-10-05 15:51:34 +00:00
Howard Chu
2027e19e01 Fix rdn timestamp normalization 2005-10-05 08:59:59 +00:00
Howard Chu
f093f6788f ITS#4066 ignore writes that aren't under the unique_base 2005-10-05 06:18:56 +00:00
Howard Chu
0f69daacac Don't flush psearch queue in main search, let the qtask do it. 2005-10-04 02:29:25 +00:00
Howard Chu
59155d9029 Fix abandon checks, syncop use count. 2005-10-03 22:59:25 +00:00
Howard Chu
2233041bd0 Fix prev commit op initialization, runqueue startup latency 2005-10-03 04:49:35 +00:00
Howard Chu
7486ef93df Tweak prev commit, avoid rescheduling running qtask 2005-10-02 12:28:50 +00:00
Howard Chu
190d6e768d Fix runq scheduling 2005-10-02 12:26:02 +00:00
Howard Chu
52e8aaea3c Fix prev commit modrdn 2005-10-02 10:48:28 +00:00
Howard Chu
4d44d54144 Minimize base lookups 2005-10-02 05:01:45 +00:00
Howard Chu
47a055b59b Always queue psearch responses (ITS#3671 revisited) 2005-10-02 03:58:00 +00:00
Howard Chu
20cb8f49f9 ITS#4025 add pretty/normal for pwdAttribute that recognizes descr's as
well as numeric OIDs
2005-09-27 16:15:59 +00:00
Howard Chu
fc9bce707d Check log_ops before logging unbind and abandon 2005-09-26 09:49:03 +00:00
Howard Chu
285f841bd6 Add a "nopresent" keyword to skip the present phase; for backends that are
only used for logging (c.f. accesslog overlay) the present phase is useless.
2005-09-14 15:25:52 +00:00
Howard Chu
5e1ab5aba3 Add CSN management 2005-09-14 15:18:48 +00:00
Howard Chu
f1ffe0076f Zero out op2 2005-09-14 14:10:25 +00:00
Howard Chu
2babdaab9e Add flag for only logging successful operations 2005-09-14 09:11:03 +00:00
Howard Chu
ba39e3fe00 ITS#3989 more fixes 2005-09-09 04:53:56 +00:00
Howard Chu
d567be70eb ITS#3989 fix crash - don't access freed psearch records 2005-09-08 02:19:05 +00:00
Howard Chu
e0b42505c1 Add searchFilter var in searchDN session. Would have preferred to confine
this to the searchDN context. Please review.
2005-09-06 07:13:14 +00:00
Pierangelo Masarati
61e06b4ef2 all right, don't worry about free() by now 2005-09-04 23:54:30 +00:00
Howard Chu
92909f0682 ITS#3980 fix when master doesn't explicitly reset grace/lock attrs 2005-09-04 23:44:04 +00:00
Pierangelo Masarati
ec532ce885 disable pagedResults or reject 2005-09-04 20:08:35 +00:00
Howard Chu
1e4d973616 ITS#3980, filter out some delete modifications on replicas if target
attrs don't exist
2005-09-04 16:22:30 +00:00
Howard Chu
36db408d0e Add missing return from rev 1.27 2005-09-02 21:27:49 +00:00
Howard Chu
f4637d60c2 per LDAPext discussion, delete pwdAccountLockedTime on password change 2005-09-02 20:38:05 +00:00
Howard Chu
f1561ac4b5 Bypass all add/modify checks on replicas, the master has done them already. 2005-09-02 20:23:32 +00:00
Howard Chu
fc8b2dda7c ITS#3989 fix ID used for syncprov_findbase 2005-09-02 10:08:44 +00:00
Howard Chu
4a1eabf257 Moving glue overlay back into slapd core, returning to 2.2 config syntax 2005-09-01 11:45:04 +00:00
Howard Chu
be1216819c ITS#3979 only one glue overlay per tree is allowed 2005-08-31 11:47:18 +00:00
Howard Chu
ba268441bc ITS#3937 tone down informational debug msgs 2005-08-28 07:02:53 +00:00
Howard Chu
528acf7504 Finish control implementation 2005-08-27 01:21:51 +00:00
Hallvard Furuseth
a1a9507295 Remove unused variable 2005-08-26 21:42:48 +00:00
Howard Chu
e641222b10 More for ITS#3854 2005-08-26 03:35:42 +00:00
Howard Chu
6a4839bd23 Windows mod compatibility 2005-08-26 02:21:07 +00:00
Howard Chu
4cc7efdadc Revert ITS#3577 patch, breaks Windows build and not needed in RE23. 2005-08-26 02:20:45 +00:00
Howard Chu
d7122627fa Leave pwdPolicySubEntry user-modifiable for now 2005-08-26 00:19:08 +00:00
Pierangelo Masarati
6cb8b14435 allow undefined attrs to be "proxied" (ITS#3959) 2005-08-25 21:14:26 +00:00
Pierangelo Masarati
afaf426231 need stricter sanity checks... 2005-08-25 08:57:08 +00:00
Howard Chu
f6be095299 Don't do anything if this is a syncrepl response. 2005-08-25 06:56:09 +00:00
Howard Chu
5903ebc1b5 Config fixes 2005-08-24 08:32:03 +00:00
Howard Chu
fc1c7d9987 Fix typo in numeric-descend 2005-08-24 02:26:55 +00:00
Howard Chu
c9c1ee10b3 Add LDAP_CONTROL_VALSORT 2005-08-24 02:07:43 +00:00
Howard Chu
6b63e25bc2 Check for numeric syntaxes 2005-08-24 01:52:05 +00:00
Howard Chu
7dde9e0b33 Tweak prev commit, use BER_BVZERO 2005-08-24 01:36:16 +00:00
Howard Chu
c947cfd66a Fix uninit'd var, check for single-valued attrs 2005-08-24 01:34:49 +00:00
Pierangelo Masarati
ac1488b50d workaround ITS#3965; if anybody has a better solution... 2005-08-23 22:54:07 +00:00
Howard Chu
ef220ac1ef Updated for draft 09, allow MANAGE for operational attrs. 2005-08-23 19:37:16 +00:00
Howard Chu
02f52030b0 More for valsort 2005-08-23 10:44:36 +00:00
Howard Chu
57722288f1 Add valsort 2005-08-23 08:52:01 +00:00
Howard Chu
225275407d Add sorted values overlay 2005-08-23 08:47:38 +00:00
Howard Chu
1f78e2b831 ITS#3961 better fix - provide a context for the main thread. The context
must be reset by the caller to clear out temp allocations etc.
2005-08-23 04:12:57 +00:00
Howard Chu
468112e2ba ITS#3961 provide ldap_pvt_thread_pool_fake_context_init/destroy, don't
use arbitrary context pointers.
2005-08-23 03:25:21 +00:00
Pierangelo Masarati
a3554aad3a log the right string 2005-08-22 09:42:51 +00:00
Pierangelo Masarati
150bcfcbcb moved to contrib/slapd-overlays/allop 2005-08-22 09:12:21 +00:00
Pierangelo Masarati
5b7f996566 cleanup 2005-08-20 19:50:59 +00:00
Pierangelo Masarati
c8ef609ea1 fix (and partially revert) last commit 2005-08-20 19:05:10 +00:00
Pierangelo Masarati
6bae592866 cleanup objectclass inheritance; don't proceed if initial lookup resulted in a hit with "success" errcode and the base is search; either the filter doesn't match, or the same action is taken twice 2005-08-20 18:00:40 +00:00
Pierangelo Masarati
f227a96053 more for the allop overlay 2005-08-20 11:53:31 +00:00
Pierangelo Masarati
95f65ff352 all-operational overlay: allows to configure part of te DIT so that requests
with requested attribute lists empty or containing "*" are expanded
to contain "+" as well, so that all operational attributes are returned.
This may be required to work around dumb clients that interrogate
the rootDSE requesting "*" and expecting operational attributes to be
returned as well.  To make it a bit more generic, it can be configured
to do the same for an arbitrary search described by an URI.  For example,

overlay		allop
allop-URI	ldap:///??sub

before any database instantiation causes all searches to return "*","+"
when ors_attrs is NULL or countains "*".
2005-08-20 11:48:13 +00:00
Pierangelo Masarati
fdfcf0406e need an AUXILIARY objectClass to play with some special error codes (need to update man page as well)... 2005-08-20 11:31:51 +00:00
Pierangelo Masarati
e066ec210e merge sml_managing into sml_flags (SLAP_MOD_MANAGING) 2005-08-18 08:48:10 +00:00
Pierangelo Masarati
9487629061 zero out sml_managing any time a Modifications is built (use calloc?) 2005-08-18 08:12:26 +00:00
Howard Chu
315c4a3b72 ITS#3946 reset lockout status at beginning of all Binds 2005-08-18 07:05:56 +00:00
Pierangelo Masarati
557f5eb2ca allow noUserMod attrs write proxying when manageDIT is set (still to work in frontend for add) 2005-08-17 19:40:02 +00:00
Howard Chu
d247840d6b ITS#3946 use connection_destroy hook to reset lockouts instead of unbind 2005-08-17 16:42:22 +00:00
Howard Chu
88dd1c5659 More optimization for CSN filter checks 2005-08-15 07:18:19 +00:00
Howard Chu
8c20a11293 Fix prev commit 2005-08-15 05:36:56 +00:00
Howard Chu
71bc69bfff Optimize FINDCSN case 2005-08-15 00:04:13 +00:00
Howard Chu
f4c1eee382 ITS#3935 tweak sessionlog description 2005-08-14 08:35:31 +00:00
Howard Chu
c30992f05e ITS#3922 don't leak ber buffer on decode/parse errors 2005-08-09 00:26:39 +00:00
Howard Chu
28be8691cc ITS#3922 plug another cookie parsing leak 2005-08-09 00:11:42 +00:00
Pierangelo Masarati
64af435895 ITS#3914 bug was very close to that leak: rwm_dnattr_rewrite() already freed the original value (all this stuff may need work) 2005-08-08 19:49:48 +00:00
Pierangelo Masarati
47351e3b5c fix yet another leak (not related to ITS#3914, though) 2005-08-08 19:41:10 +00:00
Howard Chu
9365649dad ITS#3922 fix syncrepl ctxcsn leak 2005-08-08 12:38:19 +00:00
Pierangelo Masarati
ca00d860d6 plug selected leaks at shutdown 2005-08-07 16:38:20 +00:00
Pierangelo Masarati
61f11773ba address ITS#3914 2005-08-02 23:22:10 +00:00
Hallvard Furuseth
cc79022b71 Cleanup (unused variable ad_oldest) 2005-08-02 10:36:48 +00:00
Hallvard Furuseth
a3f3143cc5 Fix off-by-one pointer error. Garbage byte between uuid and csn in slog_entry. 2005-08-02 08:43:27 +00:00
Pierangelo Masarati
673ea82eab fix typo in previous commit 2005-08-01 23:40:40 +00:00
Pierangelo Masarati
c8a5fd2df2 fix various leaks 2005-08-01 23:32:14 +00:00
Pierangelo Masarati
9a64785e4d plug leaks; fix map initialization 2005-08-01 22:40:18 +00:00
Howard Chu
91ea3a113a Add static build for accesslog 2005-08-01 22:02:23 +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
Pierangelo Masarati
e161f50ac0 silence warning 2005-07-25 23:06:12 +00:00
Pierangelo Masarati
739128a016 silence warning(s) 2005-07-25 20:50:33 +00:00
Hallvard Furuseth
cc27d26f48 rs->sr_flags should be saved in variables of type slap_mask_t, not int. 2005-07-22 13:28:49 +00:00
Hallvard Furuseth
100634c920 Remove unused variables. 2005-07-22 13:18:28 +00:00
Luke Howard
ffe20229dc Move most of SLAPI frontend into overlay 2005-07-21 16:35:20 +00:00
Pierangelo Masarati
ab4bb3e617 glue's enum conflicts with slap_operation_t 2005-07-21 14:23:49 +00:00
Hallvard Furuseth
81ecb0b153 assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL). 2005-07-18 06:22:33 +00:00
Hallvard Furuseth
ec4d6d0d69 Remove spurious printf argument 2005-07-17 12:17:54 +00:00
Hallvard Furuseth
ecef4972fe rc in glue_tool_entry_put() is an int, not NOID (unsigned long). 2005-07-17 12:14:42 +00:00
Hallvard Furuseth
7ab3d2c245 Silence warnings 2005-07-14 19:32:21 +00:00
Howard Chu
0b93bfc4f3 ITS#3854 fix Modify logging, add handlers for unrecognized ops. 2005-07-12 14:00:01 +00:00
Hallvard Furuseth
d5685734d2 retcode_op_func(): Fix uninitialized variable 'ref':
Under rs->sr_err == LDAP_REFERRAL, return LDAP_OTHER "bad referral
object" if both rdi->rdi_ref and default_referral are NULL.
2005-07-11 19:09:30 +00:00
Hallvard Furuseth
ac7513155b fbuf in syncprov_findcsn() got used before it was fully filled in 2005-07-10 10:20:21 +00:00
Howard Chu
b131aab00e Streamline call to lutil_passwd_scheme 2005-07-08 06:05:02 +00:00
Hallvard Furuseth
f841c364eb Format fixes (%d<->%lu etc) 2005-07-06 05:53:02 +00:00
Pierangelo Masarati
d576364089 more checks (ITS#3817) 2005-07-01 09:53:20 +00:00
Pierangelo Masarati
b42207d048 don't use missing hooks (ITS#3817) 2005-07-01 09:25:55 +00:00
Howard Chu
6236574efc ITS#3456 better fix, use a child thread. 2005-06-30 04:06:40 +00:00
Howard Chu
0e00a1af79 ITS#3456 - omit FIND_MAXCSN call from syncprov_db_open. Will probably
delete all associated code soon; since the maxcsn will be updated as
soon as any write op occurs, it's no big deal for this to be out of date.
Also, since the maxcsn will get checkpointed on close, it will only get
out of date on an actual slapd crash, which is hopefully too rare to
worry about.
2005-06-30 03:42:51 +00:00
Pierangelo Masarati
aa16988d3c don't try to lookup the rootdn; handle errors separately 2005-06-25 15:05:02 +00:00
Pierangelo Masarati
fddeed7903 add support for connection_init/destroy and retcode overlay 2005-06-19 22:42:12 +00:00
Pierangelo Masarati
f86daac8c8 import retcode overlay 2005-06-19 22:39:44 +00:00
Pierangelo Masarati
3172222266 cleanup of previous commit 2005-06-18 18:59:04 +00:00
Pierangelo Masarati
2abaf7bf66 fix ITS#3788: don't free slapo-rwm callback, rather reuse it 2005-06-16 23:08:23 +00:00
Pierangelo Masarati
c7c572f883 fix ITS#3785: do our best to deal with invalid filters... 2005-06-16 19:27:03 +00:00
Howard Chu
b6aa697000 ITS#3779 fix pwdLockoutDuration handling 2005-06-15 21:21:12 +00:00
Ralf Haferkamp
f9fb5e63f4 silence warning 2005-06-15 18:00:49 +00:00
Howard Chu
60339c7f77 ITS#3777 fix scheme comparison 2005-06-15 03:06:48 +00:00
Howard Chu
63f6e91a97 ITS#3772 fix dependencies for static overlays 2005-06-13 10:24:39 +00:00
Howard Chu
cd15432de6 More accesslog updates 2005-06-10 11:41:57 +00:00
Howard Chu
257be58eb6 In-directory logging overlay 2005-06-10 09:18:01 +00:00
Howard Chu
21b8be393a Add slap_timestamp(), use mutex in slap_get_csn() 2005-06-07 04:12:14 +00:00
Howard Chu
3bae4b4acb ITS#3691 import auditlog overlay 2005-06-07 03:03:18 +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
Howard Chu
d7745c17d4 Use "pcache" to invoke the overlay instead of "proxycache" 2005-05-24 17:13:37 +00:00
Pierangelo Masarati
2f0d712492 exit on error 2005-05-23 21:59:14 +00:00
Pierangelo Masarati
fc148e8e54 fix interaction with table-driven config of back-ldap (please review) 2005-05-23 07:25:45 +00:00
Pierangelo Masarati
58abc661f6 "restrict" is a c99 keyword (ITS#3739) 2005-05-21 00:15:16 +00:00
Pierangelo Masarati
7b0d820ce5 minor cleanup 2005-05-20 23:36:23 +00:00
Pierangelo Masarati
5f361f31b3 initialize AttributeName structures; allow '*' attribute set (related to ITS#3741) 2005-05-20 23:27:42 +00:00
Pierangelo Masarati
6bd4ef7667 fix cleanup in case of error 2005-05-13 19:08:41 +00:00
Pierangelo Masarati
96773427db don't bother about slap_dummy_bv 2005-05-13 09:06:28 +00:00
Howard Chu
376537f3d7 ITS#3577 Make librewrite shared - > liblrewrite.la 2005-05-11 10:18:27 +00:00
Howard Chu
f2e62ea04c Fix (temporary) crash on ldbm 2005-05-09 11:20:24 +00:00
Howard Chu
1d283c2154 More fixes for overlay support. Converted pcache to config table. 2005-05-09 10:33:43 +00:00
Howard Chu
cfccf68bf6 Fix debug msg 2005-05-09 10:33:01 +00:00
Pierangelo Masarati
fd52d607b0 don't compare freed pointers (no harm) 2005-05-09 09:32:44 +00:00
Howard Chu
bd63507868 Table-driven config 2005-05-09 05:02:01 +00:00
Howard Chu
179032ffe2 Explicitly set LTONLY_MOD for shared overlays 2005-05-09 00:13:47 +00:00
Howard Chu
f597e7651b Simplify static build 2005-05-07 23:14:57 +00:00
Pierangelo Masarati
d23243a507 more on strict config parsing (ITS#3705) 2005-05-06 16:42:03 +00:00
Howard Chu
54eb6f539c Remove redundant def 2005-05-06 01:45:44 +00:00
Howard Chu
86b7448a47 More for ITS#3681 2005-05-06 00:39:25 +00:00
Howard Chu
0079690f8f ITS#3681 separate static from dynamic overlays 2005-05-05 22:57:19 +00:00
Pierangelo Masarati
b8b0bb000b honor T-F filters (ITS#3706) 2005-05-04 23:57:33 +00:00
Howard Chu
6a2d53f396 In backend_group, return LDAP_COMPARE_FALSE if attr exists but value is
not matched, instead of LDAP_NO_SUCH_ATTRIBUTE
2005-05-04 06:28:27 +00:00
Howard Chu
3a42760472 ITS#3671 more abandon/error checks 2005-04-28 18:36:47 +00:00
Howard Chu
df22b333a5 Mroe abandon checks for ITS#3671 2005-04-28 16:45:52 +00:00
Howard Chu
67c68bab9c More for ITS#3671, check for Abandon before replaying queued events 2005-04-28 16:21:52 +00:00
Pierangelo Masarati
5697bed1f9 anticipate undefined symbols when compiling for 2.2 2005-04-28 11:03:22 +00:00