Commit Graph

9617 Commits

Author SHA1 Message Date
Howard Chu
d7535d4ddc ITS#5189 revert index.c 1.67, just catch LDAP_OTHER 2007-10-23 00:25:51 +00:00
Howard Chu
bb1d8dfcd7 Fix prev commit, include errno.h 2007-10-23 00:05:03 +00:00
Howard Chu
9965fc5f60 ITS#5189 recognize ENOMEM 2007-10-23 00:03:56 +00:00
Howard Chu
7404384766 Fix typo 2007-10-22 09:14:56 +00:00
Howard Chu
38953e2f2c Fix depend dependency for parallel make 2007-10-20 04:29:11 +00:00
Howard Chu
874ddbebe9 Fix depend/.links dependency for parallel make 2007-10-20 04:24:15 +00:00
Howard Chu
539109e4f0 Fix prev commit, only defer open for online Add 2007-10-16 16:25:56 +00:00
Howard Chu
43359bb02f Don't leak logfiles 2007-10-16 00:59:39 +00:00
Howard Chu
e63ac9ac9e Fix error message propagation 2007-10-15 10:22:51 +00:00
Howard Chu
a8ba9e2131 Check DB directory validity at config time 2007-10-15 10:17:04 +00:00
Howard Chu
e9749fcd7b Revert prev commit, bogus 2007-10-15 10:16:36 +00:00
Howard Chu
d796273e8f Save return code from cleanup handler 2007-10-15 09:56:03 +00:00
Howard Chu
f74d9f6099 Partial revert from 1.246, not sure what's the point 2007-10-15 09:38:25 +00:00
Pierangelo Masarati
e25169ccce set BINDING appropriately (ITS#5185) 2007-10-13 10:13:38 +00:00
Pierangelo Masarati
b6508a1066 fix dirsep's in DN (ITS#5172) 2007-10-10 18:50:20 +00:00
Howard Chu
a79bc9195d ITS#5177 pass new entries in search_response for Persist mode 2007-10-08 18:13:29 +00:00
Howard Chu
8bb39495c7 Fix unprotected checks for psearches 2007-10-08 13:59:33 +00:00
Howard Chu
d2f75ebaa5 Plug leak 2007-10-08 13:28:25 +00:00
Howard Chu
883ac70a36 Tweak ACL cache messages 2007-10-08 12:52:26 +00:00
Pierangelo Masarati
6706ed5d06 fix ordering of items on objectClass definition (ITS#5174) 2007-10-08 10:38:11 +00:00
Howard Chu
ade1fcff20 ITS#5173 simplify defer open behavior 2007-10-08 07:37:53 +00:00
Howard Chu
2659caf322 ITS#5173 fix for dynamic add in cn=config 2007-10-08 07:13:58 +00:00
Howard Chu
dbcf98b4d9 Refuse to operate on cacheDB if it hasn't been started yet 2007-10-08 06:34:57 +00:00
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