Howard Chu
72fee93e31
ITS#4209 release entry when it exists.
2005-11-25 21:40:33 +00:00
Howard Chu
4f15618201
op->ors_slimit is always intact now.
2005-11-25 20:52:25 +00:00
Pierangelo Masarati
98936ee3c4
streamline overlay configuration
2005-11-25 12:43:43 +00:00
Pierangelo Masarati
6ab23ef926
add more versatile private API for filter escaping
2005-11-25 10:41:33 +00:00
Pierangelo Masarati
efe575c255
escape filter values (ITS#4212)
2005-11-25 01:13:24 +00:00
Pierangelo Masarati
ea83f6a669
check sizelimit in frontend (ITS#4213)
2005-11-25 00:28:33 +00:00
Pierangelo Masarati
8d19d52467
use time_t for time-related vars
2005-11-24 01:49:06 +00:00
Pierangelo Masarati
9a47e3c81a
use lutil_ato*() whenever appropriate
2005-11-24 01:44:29 +00:00
Pierangelo Masarati
c7ae6680f2
don't expose unnecessary symbols :)
2005-11-24 01:21:34 +00:00
Pierangelo Masarati
d34fffcaf9
use lutil_ato*() whenever appropriate
2005-11-24 01:10:05 +00:00
Pierangelo Masarati
990b435ce0
fix return attributes (ITS#4203)
2005-11-23 10:04:33 +00:00
Pierangelo Masarati
59c4fb1fcd
"relax" previous commit; don't leave locks 'round (ITS#4204)
2005-11-23 09:35:44 +00:00
Pierangelo Masarati
de31e7aa91
quick fix to ITS#4204
2005-11-23 08:47:48 +00:00
Pierangelo Masarati
c580a4182e
make controls as strict as possible
2005-11-23 02:01:51 +00:00
Pierangelo Masarati
478360925b
add some integrity checks on input, without changing syntax nor semantics (ITS#4199)
2005-11-23 01:15:01 +00:00
Pierangelo Masarati
c1a845165e
add a comment about reworking compare
2005-11-22 19:05:43 +00:00
Pierangelo Masarati
23d893b4cc
run thru the list also in case of FALSE
2005-11-22 18:28:07 +00:00
Howard Chu
d0b70826d4
Fix prev commit, don't touch logDB in tool mode at all.
2005-11-22 09:09:52 +00:00
Howard Chu
f2ee760e92
Create auditContainer object automatically.
2005-11-21 05:38:50 +00:00
Howard Chu
12d2901162
More for ITS#3939
2005-11-20 22:14:57 +00:00
Howard Chu
3167b29812
Fix back-bdb inequality_candidates to use unchecked limit.
...
Fix syncprov_findcsn to set unchecked limit. (ITS#3939)
2005-11-20 10:39:05 +00:00
Pierangelo Masarati
429a6f5353
fix wrong response tags (ITS4182; consequence of fixing ITS#4173)
2005-11-17 23:52:56 +00:00
Howard Chu
c5cf54dddf
Fix Add password_hash to not depend on password quality configuration
2005-11-16 18:51:56 +00:00
Pierangelo Masarati
86fc534c8f
improve fix to ITS#4173
2005-11-16 15:58:18 +00:00
Pierangelo Masarati
48ecc89890
don't muck with SlapReply during response (ITS#4173)
2005-11-15 18:27:40 +00:00
Pierangelo Masarati
2bf647fa16
re-fix cast and logic
2005-11-14 15:02:14 +00:00
Hallvard Furuseth
bfd221ae46
Fix void* pointer arithmetic from ber_bvchr()
2005-11-14 14:46:38 +00:00
Pierangelo Masarati
474dfbc8fd
don't trust strchr/strrchr with bervals
2005-11-13 22:26:53 +00:00
Pierangelo Masarati
2132b8d57e
plug yet another one time leak
2005-11-09 02:52:28 +00:00
Pierangelo Masarati
2e6cd12216
plug one time leak
2005-11-09 02:48:37 +00:00
Pierangelo Masarati
82d3fbf4e3
fix previous commit
2005-11-09 02:40:34 +00:00
Pierangelo Masarati
255112e702
gdb is much more clever with enums...
2005-11-08 00:40:20 +00:00
Pierangelo Masarati
a6453f28f8
silence warnings
2005-11-06 23:27:09 +00:00
Pierangelo Masarati
fd1b1a53f2
add matchedDN; fix and clarify behavior when searching in-directory entries
2005-11-06 23:26:42 +00:00
Howard Chu
19f6e2d943
ITS#4148 fix replica mods
2005-11-05 08:50:16 +00:00
Pierangelo Masarati
1249fa93d5
plug one-time leak
2005-11-03 22:51:27 +00:00
Howard Chu
06c96f6cf1
Cleanup
2005-11-03 20:38:51 +00:00
Howard Chu
27b197c36d
ITS#4128 use backend_db_init
2005-11-03 20:34:45 +00:00
Pierangelo Masarati
e2b87791ac
release entry, if required; release mapping resources as appropriate on exit
2005-11-03 13:34:43 +00:00
Kurt Zeilenga
ecd86725f2
Update result code to IANA-assigned values
...
Provide some backwards compatibility.
Misc cleanup
2005-11-03 01:27:07 +00:00
Howard Chu
e0ec0a21c2
ITS#4134 additional fix
2005-11-03 00:51:57 +00:00
Howard Chu
82db113f32
ITS#4134 delete pwdFailureTime on password reset
2005-11-03 00:35:46 +00:00
Howard Chu
39f39fcb44
reqMod / reqOld must be OctetString to accomodate all possible values
2005-10-28 03:31:04 +00:00
Howard Chu
625e30929c
More matching rules
2005-10-17 12:25:36 +00:00
Howard Chu
c15a509f92
More schema tweaks
2005-10-17 12:19:26 +00:00
Howard Chu
3a47092d3f
Change ModDN back to ModRDN. Legacy...
2005-10-17 11:40:20 +00:00
Howard Chu
0265f85fba
Schema tweaks
2005-10-17 11:38:13 +00:00
Howard Chu
f46ffc3c6a
Fix Bind/Unbind logging, align Search scopes with RFC2255
2005-10-17 08:32:29 +00:00
Howard Chu
1bd689d5d0
Use generic filter for findbase
2005-10-15 05:13:05 +00:00
Howard Chu
8c8e6293f9
The rest of the reloadHint support...
2005-10-15 03:27:05 +00:00
Howard Chu
d98dee3e19
Add option to enable using the reloadHint. 2.2 consumers never sent this
...
hint. The 2.3 consumer needs it for delta-syncrepl.
2005-10-15 00:31:22 +00:00
Howard Chu
df27731f66
Do some rough bounds checks on the age
2005-10-14 23:29:42 +00:00
Howard Chu
860bd2d6a8
Extend age buffer
2005-10-14 23:24:34 +00:00
Howard Chu
4277658ea6
Remove two-digit limitation on days in log purge interval
2005-10-14 23:18:12 +00:00
Kurt Zeilenga
0b153841a6
Fix prototype
2005-10-14 05:44:28 +00:00
Pierangelo Masarati
b48ace2dfe
more about ITS#4086: fix back-meta as well
2005-10-14 00:43:23 +00:00
Pierangelo Masarati
918405d154
note that "discover" is not supported yet
2005-10-14 00:20:56 +00:00
Pierangelo Masarati
72080136d1
more cleanup
2005-10-14 00:17:51 +00:00
Pierangelo Masarati
f161b7f875
better fix to ITS#4086: treat mapping failures as undefined filter
2005-10-14 00:03:18 +00:00
Pierangelo Masarati
001e565577
temporarily fix ITS#4086
2005-10-13 22:43:46 +00:00
Howard Chu
7dcb68f6fa
Move CSN invocations to backends
2005-10-13 11:58:44 +00:00
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