Howard Chu
e60536c04a
Fix for dynamic adds
2007-10-08 06:21:13 +00:00
Howard Chu
ec7a05adff
Check for cleanup on Adds, not just Modifies
2007-10-08 06:19:50 +00:00
Howard Chu
f0468901c6
ITS#4884 fix prev commit
2007-10-08 05:41:44 +00:00
Howard Chu
a1a63bead0
ITS#4188 check for pool pause every 64 entries. (probably should make
...
this number tunable.)
2007-10-08 01:15:49 +00:00
Howard Chu
c103b3c9e9
ITS#3864 use sasl_ssf_t where expected
2007-10-06 14:50:02 +00:00
Howard Chu
c406042fd6
ITS#5072 fix issuer format, use uppercase hex per RFC3641
2007-10-05 11:27:20 +00:00
Pierangelo Masarati
c2bbd6d5e7
fix typing warnings
2007-10-05 10:06:20 +00:00
Pierangelo Masarati
617bd11452
de-normalize simple filter values consistently
2007-10-05 09:49:19 +00:00
Pierangelo Masarati
c3c3c9c16b
support de-normalization
2007-10-05 09:26:48 +00:00
Howard Chu
3a1b56192d
Fix syncrepl_entry to propagate cookieCSN when present
2007-10-05 09:03:44 +00:00
Pierangelo Masarati
7c6c734226
fix previous commit (didn't have coffee yet :()
2007-10-05 08:34:03 +00:00
Pierangelo Masarati
f7d274e672
for consistency, always represent UUIDs correctly (ITS#5168; really, a de-normalize hook would help)
2007-10-05 08:24:36 +00:00
Pierangelo Masarati
55a988831a
ITS#5168 also affects back-meta
2007-10-04 22:18:34 +00:00
Pierangelo Masarati
4cf03ca277
fix ITS#5168 (a better fix would probably be a generic handler to de-normalize values)
2007-10-04 21:53:49 +00:00
Howard Chu
4c4cb4921b
ITS#5060 take care of entry cleanup when using
...
pblock_set(SLAPI_SEARCH_RESULT_ENTRY)
2007-10-03 09:40:08 +00:00
Howard Chu
ae0c57a420
ITS#5164 lack of a db_open handler is not an error
2007-10-03 09:00:41 +00:00
Howard Chu
a2a83fe239
From ITS#5164 - treat monitoredInfo normalization consistently, don't
...
crash if SLAPI plugin doesn't register a description
2007-10-03 08:59:37 +00:00
Howard Chu
9dc35b8997
Don't queue zero-length CSNs
2007-10-02 23:51:40 +00:00
Pierangelo Masarati
471cd1d848
s/strtoul/strtol/ (ITS#5165)
2007-10-02 23:45:50 +00:00
Pierangelo Masarati
5653ab8338
don't malloc the berval separately for presentlist
2007-10-02 23:26:04 +00:00
Pierangelo Masarati
122b184a32
also log cookie parsing
2007-10-02 18:39:43 +00:00
Pierangelo Masarati
14bcd332ce
log cookie (until we find what's going on...)
2007-10-02 18:09:15 +00:00
Pierangelo Masarati
cf2cee553e
back out hex RID
2007-10-02 18:08:41 +00:00
Howard Chu
396b22cfe2
Fix uninit'd ld in prev commit (coverity)
2007-10-02 13:31:27 +00:00
Howard Chu
925e92dcc9
certificateExactNormalize - only check serial encoding if len > 1
2007-10-01 16:32:30 +00:00
Pierangelo Masarati
05d2ce40b9
s/%d/%x/
2007-10-01 16:28:27 +00:00
Howard Chu
291c8d9bd8
ITS#5070 unify serialNumberAndIssuer validation
2007-10-01 08:43:56 +00:00
Howard Chu
4ad821910c
ITS#5070 use lutil_str2bin() for certificate serialNumbers
...
Still need to fix serialNumberAndIssuerPretty to accept hex
2007-10-01 06:55:02 +00:00
Pierangelo Masarati
2de9d97ad2
first round of s/sprintf/snprintf/; the rationale is: truncate error messages rather than buffer overflow; otherwise, assert that no buffer overflow occurred. In some cases, error handling could be added. Please note: no real error in the code was found so far, apart from that in syncprov.c and from some config-time error logging; however, errors could slip thru again if things don't change consistently
2007-09-29 17:55:33 +00:00
Pierangelo Masarati
e4036af0c8
remove potential buffer overflow, now that rids can be up to 4096
2007-09-29 16:11:28 +00:00
Pierangelo Masarati
fedcbe9a41
better fix for ITS#5154
2007-09-29 11:45:37 +00:00
Howard Chu
37e295f269
ITS#5070 again, use [-]0x123456789abcdef for big int serial numbers
2007-09-29 09:50:54 +00:00
Pierangelo Masarati
24db207196
check for ee == NULL
2007-09-26 22:37:35 +00:00
Pierangelo Masarati
a0d26ada9c
plug leak (ITS#5155)
2007-09-26 22:10:16 +00:00
Pierangelo Masarati
ebf7338b8b
temporary fix to ITS#5154
2007-09-26 20:57:25 +00:00
Howard Chu
9fd4a8582a
coverity - a->a_nvals may be NULL
2007-09-26 20:26:03 +00:00
Howard Chu
c428a16332
coverity - init i
2007-09-26 20:21:53 +00:00
Howard Chu
2f3bf07285
init rc
2007-09-26 20:17:48 +00:00
Ralf Haferkamp
3d1df12527
set mod->sm_numvals
2007-09-26 01:59:24 +00:00
Howard Chu
81db5651da
ITS#5153 fix prev commit, ordering matches can be done in O(1) instead
...
of O(logn)
2007-09-25 05:46:12 +00:00
Howard Chu
d322eb96c3
ITS#5151 fix CertificateListValidate
2007-09-24 07:55:56 +00:00
Howard Chu
f1065e1780
Remove special cases for BigNums in certificateExactNormalize, just
...
use hex when serial is larger than int. Normalized values need to be
consistent regardless of compile-time environment...
2007-09-24 06:26:36 +00:00
Howard Chu
9dd2fbcba6
Log the attribute that failed normalization
2007-09-24 06:25:34 +00:00
Howard Chu
0f2b1d551b
More for Mod.sm_numvals
2007-09-24 05:30:53 +00:00
Howard Chu
dcaa5a27f5
Partially revert prev commit, unintended.
2007-09-24 05:30:36 +00:00
Howard Chu
d2179d885f
Use attr_valfind instead of value_find_ex to optimize lookups
2007-09-24 05:02:31 +00:00
Howard Chu
e8c2414831
Preliminary sorted value support
2007-09-24 01:31:23 +00:00
Howard Chu
ebb9e029a7
Make slap_passwd_parse non-destructive
2007-09-23 04:40:51 +00:00
Howard Chu
a3547e2758
More for a_numvals
2007-09-23 04:40:16 +00:00
Howard Chu
75df004a04
Use OLcfgCt{Oc|At} arc for contrib modules
2007-09-22 23:58:54 +00:00
Hallvard Furuseth
aad6555340
Update last change: lutil_atoul() -> lutil_atou() for csnsid.
2007-09-21 13:11:39 +00:00
Hallvard Furuseth
cea5e5664d
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
2007-09-21 13:02:36 +00:00
Hallvard Furuseth
8b7fd262b8
Cast away const
2007-09-21 12:58:34 +00:00
Howard Chu
8c6d828a1f
More for Modification value counter
2007-09-21 09:34:31 +00:00
Howard Chu
c4dbe1a274
Attribute/Modification value counters
2007-09-21 08:43:56 +00:00
Ralf Haferkamp
b99749aba4
Use rwlock for CachedQuery to avoid returning incomplete results (ITS#5113)
2007-09-20 17:23:56 +00:00
Ralf Haferkamp
af7f86a2cd
Fixed memory leak in pcache. Cache is now populated in cleanup handler.
...
ITS#5112
2007-09-20 16:15:23 +00:00
Howard Chu
9281472144
Add comment for prev commit
2007-09-15 23:40:34 +00:00
Howard Chu
3dfab875e8
Fix prev commit
2007-09-15 23:38:12 +00:00
Pierangelo Masarati
43c00ab486
fix previous commit
2007-09-15 18:03:55 +00:00
Pierangelo Masarati
d92e8ad1f7
add helper for internal searchs for objectClass=*
2007-09-15 17:38:53 +00:00
Pierangelo Masarati
eb51129e29
alloc temporaries on slab
2007-09-15 17:33:59 +00:00
Pierangelo Masarati
d1c4d6481f
further fix ITS#5138 (please review)
2007-09-15 17:30:07 +00:00
Pierangelo Masarati
5569180736
draft-wahl-ldap-session: append further instances of the control
2007-09-15 17:26:09 +00:00
Pierangelo Masarati
06e6e6c053
apply Howard's cleanup of database monitoring registration
2007-09-15 15:34:49 +00:00
Howard Chu
5cd816f4eb
ITS#5138 don't scan past the sequence of attributes
2007-09-15 03:08:32 +00:00
Pierangelo Masarati
9c5c20b1b9
fix potential double-free (valgrind; ITS#5137)
2007-09-14 23:58:00 +00:00
Pierangelo Masarati
9f36fafe55
add more sanity checks (ITS#5136)
2007-09-14 23:25:15 +00:00
Pierangelo Masarati
927efd4a94
fix ITS#5136
2007-09-14 23:14:33 +00:00
Pierangelo Masarati
76974d412a
add support for dgAuthz --- see discussion on -devel
2007-09-14 22:42:16 +00:00
Pierangelo Masarati
f7bda3be0a
release entry (ITS#5135)
2007-09-14 22:39:49 +00:00
Pierangelo Masarati
e48e3e7503
remove unused code
2007-09-14 22:24:21 +00:00
Pierangelo Masarati
1845f1b951
fix double free - related to ITS#4860 and probably ITS#4873
2007-09-13 22:39:33 +00:00
Pierangelo Masarati
60b03d4103
don't leak in case of error
2007-09-13 18:47:36 +00:00
Pierangelo Masarati
d6baaffbec
HEADS-UP: now the list of URIs is better set by using separate arguments
2007-09-13 18:34:04 +00:00
Pierangelo Masarati
af9e17379b
further rework URI parsing
2007-09-13 17:55:45 +00:00
Pierangelo Masarati
6d38af2689
improve error message
2007-09-13 17:54:49 +00:00
Pierangelo Masarati
a09b4c5f20
log unknown message type
2007-09-13 17:54:15 +00:00
Pierangelo Masarati
202080dfa1
enable unindexed searches monitoring ifdef LDAP_DEVEL
2007-09-12 21:26:10 +00:00
Pierangelo Masarati
1157b6dc6a
handle sizelimit in caching (in partial fulfilment of ITS#5114)
2007-09-12 21:09:04 +00:00
Howard Chu
aec54643c2
Don't populate member list unless it was requested
2007-09-11 14:10:50 +00:00
Pierangelo Masarati
a4b1ba0b5f
use /-* for all parents; ignore /-0; check syntax; better parsing
2007-09-10 22:29:10 +00:00
Pierangelo Masarati
4137870344
handle empty set, empty string special cases
2007-09-10 21:58:12 +00:00
Pierangelo Masarati
1e0794f0ad
cleanup sets code; should fix a potential leak and possibly address ITS#4873. Please test
2007-09-10 21:30:02 +00:00
Pierangelo Masarati
552761696b
applied with changes (ITS#4860)
2007-09-10 00:06:20 +00:00
Pierangelo Masarati
331fef5e78
idassert also in case of SASL mechs that do not set authcId
2007-09-09 21:52:10 +00:00
Pierangelo Masarati
f834cdb2f7
fix proxyAuthz oid setup
2007-09-09 21:48:17 +00:00
Howard Chu
c32e182c56
re: prev commit, init j
2007-09-09 14:25:34 +00:00
Howard Chu
40e796c547
ITS#5129 fix alock_close with Quick mode
2007-09-08 05:26:03 +00:00
Howard Chu
6a6adff86c
ITS#5129 disallow Quick mode if DB_CONFIG has changed
2007-09-08 04:59:34 +00:00
Pierangelo Masarati
9c437f4411
quote suffix (ITS#5128) and use it as much as possible to identify databases
2007-09-08 00:41:29 +00:00
Pierangelo Masarati
2da15f1013
remove experimental code as per ITS#4962 discussion
2007-09-07 12:33:21 +00:00
Howard Chu
c8c6cba5fc
back-sock by Brian Candler (B.Candler@pobox.com) ITS#4094 (untested)
2007-09-07 12:27:33 +00:00
Howard Chu
3b7e703cb9
Add Acknolwedgement
2007-09-07 12:20:24 +00:00
Howard Chu
d0ab632239
Use permalink
2007-09-07 12:14:10 +00:00
Howard Chu
276a8cd4dd
Update Net::Server URL
2007-09-07 12:13:29 +00:00
Howard Chu
b6827c75a8
back-sock by Brian Candler (B.Candler@pobox.com) ITS#4094 (untested)
2007-09-07 12:02:43 +00:00
Pierangelo Masarati
00ad93ac70
also copy modifications we don't deal with, as they will be freed altogether (ITS#5124)
2007-09-07 09:38:38 +00:00
Pierangelo Masarati
ed12ff8fd3
parse unsigned as unsigned (ITS#5122)
2007-09-04 19:32:54 +00:00
Pierangelo Masarati
371bf8f803
blind fix: I assume we need to restore ors_scope
2007-09-04 19:31:47 +00:00
Pierangelo Masarati
c73520ec08
fix idl lru deletion of last entry (ITS#5121)
2007-09-04 19:01:55 +00:00
Howard Chu
1800fbb307
ITS#5119 fix uninit'd nval after normalization failure
2007-09-04 05:40:41 +00:00
Pierangelo Masarati
12ea3e4304
check call consistency
2007-09-03 16:36:22 +00:00
Pierangelo Masarati
04cf328716
make sure n,o are non-zero, so j is initialized (coverity)
2007-09-03 16:31:33 +00:00
Pierangelo Masarati
9beb9f9f51
fix one-time leak (coverity)
2007-09-03 16:27:01 +00:00
Pierangelo Masarati
55e908dca2
fix helper pointer inizialization (coverity)
2007-09-03 16:22:53 +00:00
Howard Chu
75964a771f
Use IA5String for olcDbConfig to allow empty strings
2007-09-03 00:41:30 +00:00
Howard Chu
f385341f46
Add IA5String macro
2007-09-03 00:40:52 +00:00
Howard Chu
f8fcb44d13
Fix PrintableString/IA5String commentary
2007-09-03 00:40:37 +00:00
Howard Chu
33f311d81f
Read DB_CONFIG file in server and tool mode, for config conversions
2007-09-02 23:53:29 +00:00
Howard Chu
d316b89bc3
Fix schema undo crash
2007-09-02 23:47:49 +00:00
Howard Chu
2437abac38
ITS#5082 RE23 compatibility, allow olcPasswordHash in global entry
2007-09-02 13:24:14 +00:00
Howard Chu
e10a33753a
Partially resurrect cn=Include stuff - parse from LDIF and ignore.
2007-09-02 12:01:56 +00:00
Howard Chu
dbac914e33
Hide log schema
2007-09-01 22:28:06 +00:00
Pierangelo Masarati
bcf9bce5f4
hide (experimental) schema
2007-09-01 16:09:06 +00:00
Pierangelo Masarati
c83b8b58a3
hide (experimental) schema
2007-09-01 16:01:29 +00:00
Pierangelo Masarati
f89f552d2a
fix previous commit
2007-09-01 15:47:23 +00:00
Pierangelo Masarati
f6dc2b1032
hide (experimental) schema
2007-09-01 15:45:12 +00:00
Pierangelo Masarati
56d9a93ad4
authzMatch IS octetStringMatch
2007-09-01 15:44:24 +00:00
Pierangelo Masarati
4edd5cca23
hide (experimental) schema
2007-09-01 15:38:03 +00:00
Pierangelo Masarati
63a7a69b89
hide schema
2007-09-01 15:32:47 +00:00
Howard Chu
c06ed65f2a
Protect Debug messages from NULL pointers
2007-09-01 13:35:34 +00:00
Quanah Gibson-Mount
dfe8eca92d
ITS#5102 fix
2007-09-01 00:28:07 +00:00
Howard Chu
784daf01e5
Fix DEVEL dependency
2007-09-01 00:11:42 +00:00
Howard Chu
d13d15c37a
Revert prev commit, don't advertise subord scope
2007-08-30 21:09:30 +00:00
Pierangelo Masarati
1b40253d4d
release certificateListValidate()
2007-08-30 20:27:13 +00:00
Howard Chu
f9bc1426ad
Fix SORTED_RESULTS check
2007-08-29 23:57:55 +00:00
Howard Chu
605fdacf51
unifdef LDAP_DEVEL for subordinate scope
2007-08-29 23:40:17 +00:00
Pierangelo Masarati
19330dc1cc
allow shutdown while syncrepl_del_nonpresent()
2007-08-29 18:13:12 +00:00
Pierangelo Masarati
eff90dc512
note what SID the server is assuming
2007-08-29 18:12:05 +00:00
Ralf Haferkamp
cd103f9010
Additional fix for ITS#4991. _cleanup callback was always executed when
...
needed.
2007-08-29 14:29:37 +00:00
Pierangelo Masarati
7ceaad7eb2
plug yet another leak
2007-08-29 00:27:47 +00:00
Pierangelo Masarati
6fb9790a15
plug another leak (hope it's general enough)
2007-08-29 00:14:33 +00:00
Pierangelo Masarati
e161e8efb6
fix test
2007-08-29 00:13:56 +00:00
Pierangelo Masarati
0bedad3b65
plug leak
2007-08-28 23:56:18 +00:00
Pierangelo Masarati
96767fee77
back out previous two commits
2007-08-28 23:13:29 +00:00
Pierangelo Masarati
c0f7dc78f7
fix uninit'ed var crasher
2007-08-28 23:00:36 +00:00
Pierangelo Masarati
a6fd7fa95a
add -S to slapadd to set desired SID in generated entryCSN/contextCSN
2007-08-28 19:35:57 +00:00
Pierangelo Masarati
5ed5bc5803
first round of CSN normalization consequences
2007-08-28 18:38:27 +00:00
Pierangelo Masarati
faa52ce410
forgot to re-sort operation names
2007-08-28 18:37:23 +00:00
Pierangelo Masarati
9a0797004f
if tool mode needs to add structuralObjectClass, override any database setting (rationale: if configured w/ mirror mode and syncrepl, a master is also a shadow, but we need to be able to slapadd to a master (possibly with the correct SID; will deal with this later)
2007-08-28 18:36:42 +00:00
Howard Chu
4ccb430c8c
Convert collect to dynamic config. Even though it's only a demo...
2007-08-28 09:19:07 +00:00
Pierangelo Masarati
47f1f66361
keep pretty and normal form of CSN the same...
2007-08-27 10:39:48 +00:00
Pierangelo Masarati
4db9863fa8
fix previous commit
2007-08-27 10:12:39 +00:00
Pierangelo Masarati
6edcf92419
also the MOD part is hex; preserve compatibility with OpenLDAP's 2.3 entryCSN
2007-08-27 10:09:46 +00:00
Pierangelo Masarati
81a4676571
add csnValidate/csnNormalize, since the SID could be hexadecimal, and we want upper/lowercase a-f to match as appropriate
2007-08-27 09:13:45 +00:00
Pierangelo Masarati
5674d38a17
allocate OID for back-sql configuration
2007-08-27 07:14:55 +00:00
Pierangelo Masarati
8931d68e37
close LDIF handler (valgrind)
2007-08-27 07:14:04 +00:00
Pierangelo Masarati
09cbbb92a7
need to copy the Entry to safely manipulate it
2007-08-27 07:13:25 +00:00
Pierangelo Masarati
5fb99e0a23
consistently dispose of limbo
2007-08-27 07:12:12 +00:00
Pierangelo Masarati
62504d7ef0
add anlist_free
2007-08-27 07:11:32 +00:00
Pierangelo Masarati
2082935657
so SIDs are hex
2007-08-27 07:09:57 +00:00
Pierangelo Masarati
7dc7c60c4b
improve previous commit; fix ITS#5108 by letting both SID and RID be 0..4095, input/output in decimal, but consistently handled in hexadecimals within CSN
2007-08-26 17:03:22 +00:00
Pierangelo Masarati
2132aa3b16
add support for CSNSIDMatch; use it to set contextCSN as appropriate when slapadd'ing -w
2007-08-26 15:39:45 +00:00
Pierangelo Masarati
7c66952714
check for shutdown (need to add to other backends?)
2007-08-26 15:38:51 +00:00
Pierangelo Masarati
b95e40f56f
cleanup
2007-08-26 15:38:20 +00:00
Pierangelo Masarati
af9233b9df
use LDAP_RES_UNSOLICITED for the response message id
2007-08-26 15:06:52 +00:00
Howard Chu
8367f0cfe4
revert prev commit, no gain
2007-08-26 14:37:12 +00:00
Howard Chu
ddc5c9f735
Just use read locks on the entry_db_lock
2007-08-26 13:49:35 +00:00
Pierangelo Masarati
e33abd467c
needs work: memberOf should not be replicated
2007-08-25 16:02:43 +00:00
Howard Chu
6d9e2cac21
Fix prev commit
2007-08-25 16:00:15 +00:00
Howard Chu
a1c088ed02
ITS#5077 again
2007-08-25 15:40:39 +00:00
Pierangelo Masarati
96611ac703
getting an abnormal number of empty syncUUID...
2007-08-25 15:15:05 +00:00
Pierangelo Masarati
071b77cf9d
better fix
2007-08-25 15:01:27 +00:00
Pierangelo Masarati
84143631ee
fix potential concurrency issue (not so potential, if we could regularly trigger it :)
2007-08-25 14:58:43 +00:00
Pierangelo Masarati
abca6f16a6
also improve massaged DN containment check
2007-08-25 10:57:08 +00:00
Pierangelo Masarati
2be301db66
improve URI DN containment check
2007-08-25 10:13:51 +00:00
Pierangelo Masarati
097420bfc4
fix typo
2007-08-25 09:37:59 +00:00
Howard Chu
528b3bc601
Fix aux/structural comment
2007-08-25 00:42:37 +00:00
Pierangelo Masarati
8f95ff260c
consistently use "tag=" instead of "op=" in debug messages
2007-08-25 00:10:52 +00:00
Howard Chu
da5c3285d2
Fix config delete
2007-08-24 23:56:55 +00:00
Howard Chu
ecf59634e9
Fix prev commit
2007-08-24 23:28:43 +00:00
Pierangelo Masarati
6f9519543e
- fix logging of controls;
...
- add support for Control syntax;
- use Control syntax and objectIdentifierFirstComponentMatch
with reqControls/reqRespControls
2007-08-24 23:13:41 +00:00
Pierangelo Masarati
72f009ac52
behave when a value of an ordered attr starts with '{' and either contains or not '}', but the prefix '{X}' does not contain a numericString
2007-08-24 23:05:10 +00:00
Howard Chu
7aaddee5bf
test_filter() should use ordered_value_match()
2007-08-24 22:34:04 +00:00
Pierangelo Masarati
30fbf95de1
allow to register further syntax/mr compatibility
2007-08-24 20:05:30 +00:00
Ralf Haferkamp
a57a24dab8
tcpd.h is already include in slap.h
2007-08-24 16:09:50 +00:00
Pierangelo Masarati
511a71067f
add logging of request/response controls
2007-08-24 12:50:01 +00:00
Pierangelo Masarati
ee8431b22d
add memberOf overlay
2007-08-24 02:46:55 +00:00
Howard Chu
2d4f198662
Add dgIdentity support
2007-08-23 23:33:37 +00:00
Howard Chu
ece1c226a1
Add dgIdentity from draft-haripriya-dynamicgroup-02
2007-08-23 02:09:17 +00:00
Howard Chu
7ef61c0ec0
Register dyngroup OID
2007-08-23 01:52:04 +00:00
Howard Chu
43463852f6
Add cn=config support
2007-08-23 01:40:09 +00:00
Pierangelo Masarati
25d46e7578
rework controls API
2007-08-22 22:35:14 +00:00
Pierangelo Masarati
7c9f63a60d
fix subtree rename integrity; curiously enough, tes023 only failed on 64 bit arch; probably because we'd need to double the stack of the slab on 64 bit archs...
2007-08-22 17:46:55 +00:00
Pierangelo Masarati
9a00bbb35f
add support for session tracking (draft-wahl-ldap-sessio) to proxy backends requests
2007-08-22 15:49:35 +00:00
Pierangelo Masarati
63b6bfd1a4
don't Statslog before getting controls
2007-08-22 14:41:42 +00:00
Pierangelo Masarati
99c92b74c9
handle response controls in exops
2007-08-22 12:07:27 +00:00
Pierangelo Masarati
05b9123a03
consistently use o_log_prefix
2007-08-22 09:17:09 +00:00
Pierangelo Masarati
8ef19246dc
fix previous commit (need to finish breakfast before committing...)
2007-08-22 08:57:23 +00:00
Pierangelo Masarati
00368b128a
log formatOID, possibly mapped to friendly name if known
2007-08-22 08:44:21 +00:00
Pierangelo Masarati
83eec9f96b
add session tracking support to essential exops
2007-08-22 00:41:47 +00:00
Pierangelo Masarati
1bdc186ea2
fix API change
2007-08-22 00:08:38 +00:00
Pierangelo Masarati
1a59d091bc
minimal implementation of draft-wahl-ldap-session-03
2007-08-21 22:47:54 +00:00
Pierangelo Masarati
6270bd9e82
cleanup experimental controls: rename macros, ifdef code
2007-08-21 21:42:09 +00:00
Pierangelo Masarati
70ed7d58a6
re-fix previous commit
2007-08-21 15:36:21 +00:00
Pierangelo Masarati
7bea240767
fix tree delete error handling
2007-08-21 15:19:01 +00:00
Pierangelo Masarati
9066d14290
add support for tree delete along with minor fixes (portions ITS#3497)
2007-08-21 14:52:43 +00:00
Pierangelo Masarati
cb05b0e935
fix control value presence
2007-08-21 14:50:32 +00:00
Pierangelo Masarati
b25eab8a7b
set authorizing backend
2007-08-21 11:37:33 +00:00
Pierangelo Masarati
145e6fc1f8
fix or comment Calysto findings
2007-08-21 10:52:16 +00:00
Pierangelo Masarati
f95fe8c756
fix yet another potential dereference of NULL op (caught by Coverity)
2007-08-20 22:09:19 +00:00
Howard Chu
df2dcbcbe6
More for ITS#5077
2007-08-20 20:00:15 +00:00
Pierangelo Masarati
2c13f86cec
support subtree rename (ITS#5097)
2007-08-20 19:06:18 +00:00
Pierangelo Masarati
af92ee5e65
check for SOFTADD as well
2007-08-20 19:05:07 +00:00
Pierangelo Masarati
4242ce20d6
rework connections so that they get cached on a per-thread basis (ITS#5095)
2007-08-20 00:27:47 +00:00
Howard Chu
4c7d288eb7
More for BDB 4.6 compatibility
2007-08-17 20:33:46 +00:00
Pierangelo Masarati
8e66538dc1
cleanup previous commit; make sure what's queryid and what's entryUUID
2007-08-17 16:37:29 +00:00
Pierangelo Masarati
970471d49c
fix queryDelete by queryID
2007-08-17 16:24:27 +00:00
Pierangelo Masarati
8be1b48263
set the number of cached entries after reload...
2007-08-17 15:46:44 +00:00
Pierangelo Masarati
ca1aed557b
make lutil_uuidstr_from_normalized() return the length of the string
2007-08-17 15:08:47 +00:00
Pierangelo Masarati
0c90b9ece2
revert previous commit: let queryId be an octet string, and modify queryDelete parsing accordingly
2007-08-17 15:04:28 +00:00
Pierangelo Masarati
86c67bd491
use UUID syntax for queryId
2007-08-17 14:43:50 +00:00
Pierangelo Masarati
1b0c4f5af5
fix UUID parsing (it's in normalized form)
2007-08-17 12:43:16 +00:00
Pierangelo Masarati
403704b7bc
move uuid normalized to string to liblutil
2007-08-17 12:42:52 +00:00
Pierangelo Masarati
553d83c3c1
fix previous commit
2007-08-17 12:38:50 +00:00
Pierangelo Masarati
2245aff52c
further fix specification
2007-08-17 11:36:34 +00:00
Pierangelo Masarati
a2badc7c3c
cleanup error messages; complete privateDB control and queryDelete exop specifications
2007-08-17 11:25:35 +00:00
Pierangelo Masarati
7c0a7571fb
add:
...
- support for the privateDB control, which allows regular LDAP operations
to address the private database instead of the proxied one.
This is essentially intended for cache monitoring and maintenance
- support for the queryDelete extended operation, which allows to delete
from the cache database either a cached query, specified by queryId,
or all queries related to a specific cached entry, specified by entryDN
2007-08-17 10:26:56 +00:00
Pierangelo Masarati
68ab6c87bd
rework previous commit: consistently remove queries, better memory handling and more
2007-08-17 09:57:46 +00:00
Pierangelo Masarati
995359548b
more consistent parsing checks
2007-08-17 09:53:47 +00:00
Pierangelo Masarati
ce6b685caf
rework previous commit
2007-08-17 09:52:31 +00:00
Pierangelo Masarati
36111934a3
allow "traditional" behavior (more for ITS#4962; please debate)
2007-08-17 09:51:29 +00:00
Pierangelo Masarati
ba9baf154e
give the db a chance if rootpw is unset (more for ITS#4962)
2007-08-17 09:50:20 +00:00
Pierangelo Masarati
5acbf5997c
re-sort funcs (and enums) in "logical" order
2007-08-17 09:49:17 +00:00
Howard Chu
a16eea9d8e
Paranoia for prev commit
2007-08-16 20:03:27 +00:00
Howard Chu
8133e7005e
Fix double-free closing multiple ppolicy overlay instances
2007-08-16 19:59:02 +00:00
Hallvard Furuseth
f5d1a15fec
Remove lint
2007-08-16 14:41:48 +00:00
Hallvard Furuseth
6a02dd9d92
Fix typo in previous commit: spurious space in UUID syntax OID.
...
Also make remove_query_and_data() return void (it returned nothing) and
remove an unused variable.
2007-08-16 13:44:15 +00:00
Pierangelo Masarati
51152d83a3
consistently use SLAP_* malloc macros; alloc sizeof(Syntax *) instead of sizeof(Syntax) for areray of superiors; free resources also in case of failure of syn_insert()
2007-08-16 12:08:47 +00:00
Pierangelo Masarati
3771d2ed49
fox to ITS#5070 fix: error out if serialNumber requires size > sizeof(long long) (detected by Coverity)
2007-08-16 11:57:34 +00:00
Pierangelo Masarati
9c4d147747
fix error checking when parsing UUID (detected by Coverity); added check/prettification of UUID, just in case...
2007-08-16 11:52:10 +00:00
Pierangelo Masarati
9029c0902f
don't trick coverity...
2007-08-16 11:32:10 +00:00
Pierangelo Masarati
f7a6c4360c
defer thread key retrieve as it might not be needed
2007-08-16 10:05:21 +00:00
Pierangelo Masarati
2f5bfba296
let req_modify_s and req_modrdn_s have a common portion to interoperate within slap_mods_opattrs() (ITS#5093)
2007-08-16 09:48:53 +00:00
Pierangelo Masarati
27428ac00e
uniformly exploit rootdn bind; add support for rootdn bind to backends that didn't have it (ITS#4962)
2007-08-16 09:38:15 +00:00
Pierangelo Masarati
15545731bc
fix previous commit
2007-08-16 09:32:04 +00:00
Pierangelo Masarati
f4844889fd
s/orb_tmp_mech/orb_mech/
2007-08-16 09:29:45 +00:00
Pierangelo Masarati
87f918ebc0
don't dereference save_errnop if NULL; create temporary file in right dir; revert to strtol(3) (ITS#4627)
2007-08-16 09:23:48 +00:00
Howard Chu
c727d5caf7
ITS#4627 fix tool_entry_next
2007-08-15 20:09:06 +00:00
Hallvard Furuseth
8e30e008c6
Fix rev 1.68 spew_entry() for ITS#4627: Do not dereference NULL save_errnop.
...
Add missing unlink(). Update debug messages, move one from spew_file().
Also check the close() return code.
2007-08-15 19:43:13 +00:00
Howard Chu
b45c15fdc9
TS#4627 fix tool_entry_first()
2007-08-14 18:54:28 +00:00
Pierangelo Masarati
d8f964fb7a
fix most of the issues of ITS#4627
2007-08-14 15:54:56 +00:00
Pierangelo Masarati
9a55fe709c
add '-Q' switch (used by slaptest only; ITS#4930)
2007-08-14 13:42:40 +00:00
Pierangelo Masarati
5ec09e2f0a
merge attributes as required after mapping; avoid objectClass duplicates (ITS#5091)
2007-08-14 11:46:29 +00:00
Pierangelo Masarati
1f3d88f32b
recent check for syncrepl searchbase broke test048; fixing...
2007-08-13 20:51:42 +00:00
Pierangelo Masarati
a73826b834
don't allow NULL values (because of parsing errors; ITS#5090)
2007-08-13 19:33:01 +00:00
Pierangelo Masarati
c114cb8eb7
provide an interface to remove a set of entries from the cache
2007-08-13 16:50:18 +00:00
Pierangelo Masarati
4a249bbe0d
plug leak
2007-08-13 16:29:04 +00:00
Pierangelo Masarati
ccff813df0
stop pcache task at close
2007-08-13 16:28:33 +00:00
Pierangelo Masarati
32c2dee3f8
fix hot startup commit (read of uninitialized memory; ITS#5081)
2007-08-13 16:27:56 +00:00
Howard Chu
8b27523e4c
Add config keyword for DN cache size (aka EntryInfoSize)
...
default is 2x entry cache size
2007-08-11 19:29:14 +00:00
Pierangelo Masarati
5eef8c7f40
fix objectClass inheritance (ITS#5088)
2007-08-11 09:37:55 +00:00
Pierangelo Masarati
147f1c157f
use RFC4523 objectClasses
2007-08-11 09:32:24 +00:00
Pierangelo Masarati
3119bba337
more on ITS#4868
2007-08-11 09:31:48 +00:00
Pierangelo Masarati
d8636d8e60
fix previous commit: op is not a bind if error
2007-08-11 09:30:52 +00:00
Pierangelo Masarati
d354844cf9
fix previous commit (crash if no rewrite but just mapping is present)
2007-08-11 09:28:33 +00:00
Howard Chu
a87b4592a4
Remove tool_id2entry_get
2007-08-11 04:19:53 +00:00
Howard Chu
ed4b5d1bd7
ITS#5087 fix tool_id2entry_get for hdb
...
TODO: rip this all out and just use tool_entry_get
2007-08-11 02:11:27 +00:00
Howard Chu
a49ff7878e
Fix prev commit
2007-08-10 23:26:25 +00:00
Howard Chu
cd47824bbb
ITS#5077 fix attr_cmp loop termination
2007-08-10 23:10:59 +00:00
Howard Chu
856bf9bd48
ITS#5065 don't crash if old cookieCSN is sent
2007-08-10 22:52:04 +00:00
Howard Chu
e4a7d8ad77
ITS#5082 must remove olcPasswordHash from global config...
2007-08-10 22:32:03 +00:00
Howard Chu
faf9339cc8
ITS#5082 allow olcPassdwordHash in frontendDB config
2007-08-10 22:28:24 +00:00
Gavin Henry
60cde2f3c3
ITS#5085
2007-08-10 16:55:50 +00:00
Pierangelo Masarati
ae9776a580
fixed few leaks in previous commit (ITS#5081)
2007-08-09 16:33:50 +00:00
Pierangelo Masarati
da44ccbf18
experimental code for hot restart of proxy cache (ITS#5081)
2007-08-09 16:15:57 +00:00
Pierangelo Masarati
caf89557ab
syncrepl searchbase must be within the database naming context (ITS#5073)
2007-08-08 18:23:22 +00:00
Pierangelo Masarati
97d2c51980
improve previous commit: now each missing index has a specific counter
2007-08-08 18:22:19 +00:00
Pierangelo Masarati
b713eb5102
add monitor support for unindexed attributes (need to manually #define BDB_MONITOR_IDX)
2007-08-07 22:36:04 +00:00
Pierangelo Masarati
61787df79b
add back-config support to back-relay
2007-08-06 23:22:19 +00:00
Pierangelo Masarati
a8ecd63a6d
fix typo
2007-08-06 14:51:47 +00:00
Pierangelo Masarati
89c84fe8a9
rework ITS#4322 check
2007-08-06 14:46:51 +00:00
Pierangelo Masarati
dbad13ead2
workaround open() being a macro in glibc 2.6 (ITS#5075)
2007-08-06 12:57:24 +00:00
Pierangelo Masarati
5f386d3e31
fix previous commit
2007-08-06 12:48:35 +00:00
Pierangelo Masarati
add25c2f45
honor 1.1, * and + (ITS#5074 and more)
2007-08-06 12:31:30 +00:00
Pierangelo Masarati
f4e12e11d6
trim unused vars
2007-08-03 20:26:48 +00:00
Pierangelo Masarati
d334ec71a0
cleanup
2007-08-03 19:21:07 +00:00
Pierangelo Masarati
32a9d5c7ed
require ';binary' when appropriate (ITS#5071)
2007-08-03 19:19:36 +00:00
Pierangelo Masarati
d0baca7a62
add certificateListValidate (#ifdef LDAP_DEVEL)
2007-08-03 13:12:36 +00:00
Ralf Haferkamp
3a9310431e
Reworked recent backend API changes, now using a separate struct,
...
(ConfigReply) for the error messages.
2007-08-03 12:02:07 +00:00
Pierangelo Masarati
34921e07ad
allow parsing of long long serials when long long is defined (ITS#5070)
2007-08-03 10:50:18 +00:00
Ralf Haferkamp
92d9771503
removed bogus cast
2007-08-01 15:42:18 +00:00
Ralf Haferkamp
bc1aa3afa7
initialize msg[] Array, fixed typo
2007-07-31 15:49:16 +00:00
Pierangelo Masarati
55bd34079c
return entry controls (partially fixes ITS#4591)
2007-07-30 16:32:59 +00:00
Howard Chu
4961b95508
Revert 1.101, not appropriate
2007-07-27 09:17:56 +00:00
Ralf Haferkamp
5ae46c195e
Added a new parameter (ConfigArgs*) to the _db_init, _db_open, _db_close and
...
_db_destroy functions.
2007-07-25 17:21:05 +00:00
Pierangelo Masarati
6a4dd27158
allow validation/normalization of x509 v1 (default) certs
2007-07-25 00:56:51 +00:00
Howard Chu
b514b25795
Quick and dirty BDB 4.6.18 support. Expect this to change again soon.
2007-07-24 14:02:37 +00:00
Hallvard Furuseth
767293dd3a
Cosmetic change: spaces->tab in last patch. Thus readable with tab-width=4.
2007-07-23 21:50:26 +00:00
Hallvard Furuseth
259c1baf23
Revert integer type change from rev 1.281 (ITS#5035) for now. It just
...
replaced one inttype bug with another, the proper fix is to change the API.
2007-07-23 20:18:30 +00:00
Hallvard Furuseth
0de176e874
Add bi->bi_entry_get_rw.
2007-07-23 20:13:36 +00:00
Howard Chu
b236aba403
More for #5057 - reject duplicate AVAs
2007-07-23 05:49:49 +00:00
Howard Chu
c6b1e35598
ITS#5057 replace AVA_Sort with insertion sort
2007-07-23 05:23:31 +00:00
Howard Chu
69be5fd675
ITS#5057 fix AVA_Sort
2007-07-23 04:22:39 +00:00
Howard Chu
d918bc9983
ITS#4375 rework statslog, debug log info
2007-07-23 03:51:42 +00:00
Howard Chu
b06a5b8498
ITS#4937, consolidate statslog
2007-07-23 00:47:31 +00:00
Howard Chu
3b837d4fca
More for ITS#5050
2007-07-23 00:33:21 +00:00
Howard Chu
1e8350ad3f
Silence warnings in prev commit
2007-07-23 00:02:31 +00:00
Howard Chu
da9f66ede7
ITS#5050 use correct (Bind) timeout in dobind_int
2007-07-22 17:48:04 +00:00