Commit Graph

7800 Commits

Author SHA1 Message Date
Pierangelo Masarati
ba8027b016 fix back-ldbm build 2005-10-13 22:20:52 +00:00
Howard Chu
7dcb68f6fa Move CSN invocations to backends 2005-10-13 11:58:44 +00:00
Kurt Zeilenga
4d0de8b3c5 cleanup 2005-10-13 04:33:01 +00:00
Kurt Zeilenga
5085d1f8ff cleanup 2005-10-13 02:08:14 +00:00
Kurt Zeilenga
6db7e605ee Align Operation buffers using LBER_ALIGNED_BUFFER 2005-10-12 23:17:28 +00:00
Howard Chu
e66b6188bb ITS#4078 fix buffer alignment 2005-10-12 17:34:06 +00:00
Kurt Zeilenga
2890a5d035 TLS is configured after listener creation 2005-10-12 16:58:22 +00:00
Howard Chu
1ea0c0dbda Remove obsolete csn variables 2005-10-12 07:59:51 +00:00
Howard Chu
f2930835ce ITS#4077. I wonder if we should have an ARG_OCTAL flag to preserve the
representation ... ?
2005-10-11 18:57:34 +00:00
Howard Chu
8b783dace6 Use ldap_unbind_ext, don't depend on ldap-int.h 2005-10-11 03:05:13 +00:00
Howard Chu
9aa064434c Fix writefds init on Windows 2005-10-11 02:56:56 +00:00
Howard Chu
44e9209629 Remove lint 2005-10-11 02:16:09 +00:00
Pierangelo Masarati
644d9000f9 fix ITS#4073 2005-10-10 14:54:14 +00:00
Howard Chu
4b75493252 Improve prev commit 2005-10-09 21:20:40 +00:00
Howard Chu
8204cbc212 ITS#4035 let underlying backend know about updated rootdn 2005-10-09 21:17:18 +00:00
Howard Chu
4f0c386c68 ITS#4072 prevent ldaps listeners when TLS is not configured 2005-10-09 20:04:49 +00:00
Howard Chu
f54bc26357 ITS#4072 ldap_pvt_tls_init_def_ctx() returns LDAP_NO_SUPPORT if not
sufficiently configured. Update slapd/slurpd to act appropriately.
2005-10-09 19:55:39 +00:00
Pierangelo Masarati
97614859be fix ITS#4071 2005-10-08 19:39:56 +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
a79ae8da3e Better fix for req_pwdexop_s 2005-10-06 20:34:30 +00:00
Howard Chu
d973acec0d Silence valgrind complaint 2005-10-06 20:06:53 +00:00
Howard Chu
ccc1cb5fb3 Fix req_pwdexop definition 2005-10-06 20:04:12 +00:00
Kurt Zeilenga
b78c9dfa00 Add back proper bv_len initialization
Need to find and fix test010 properly.
2005-10-06 19:27:53 +00:00
Howard Chu
82998790bb Cleanup 2005-10-06 19:11:13 +00:00
Howard Chu
8050701f56 Plug memleak 2005-10-06 19:04:39 +00:00
Howard Chu
f14f6472e7 Plug memleaks 2005-10-06 18:45:53 +00:00
Howard Chu
0a41d1db7b ITS#4017 add TLSDHParamDir for Diffie-Hellman key parameters 2005-10-05 20:07:32 +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
Pierangelo Masarati
0d76419984 add missing space (ITS#4061) 2005-10-04 10:02:54 +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
da1a1f9133 ITS#4027 select_backend should ignore manageDSAit when glue is in use. 2005-10-03 03:12:32 +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
62f7c85be4 Add slap_overinfo oi_origdb field to point to original BackendDB 2005-10-02 01:23:09 +00:00
Pierangelo Masarati
ada7954667 deal with the case a pseudorootn is not defined 2005-10-01 18:31:14 +00:00
Pierangelo Masarati
01bb0fa1ea plug selected leaks resulting from ITS#4056 & ITS#4057 implementation; may need further cleanup and reworking to streamline a bit 2005-10-01 18:07:00 +00:00
Howard Chu
d878abf48f ITS#4049,4051 - verify oldPassword when provided. 2005-10-01 15:12:39 +00:00
Kurt Zeilenga
d72f862fa7 Removed initialization of old.bv_len and new.bv_len cures
the recent test010 failure!  hmmmm.....
2005-09-30 16:14:50 +00:00
Howard Chu
024c4bb13f ITS#4050 compare normalized DNs when detecting modrdn 2005-09-30 06:39:37 +00:00
Kurt Zeilenga
9449c5709e ITS#4021: add new {CLEARTEXT} kludge as bv_len=0 kludge no
longer works well.
2005-09-29 20:30:09 +00:00
Kurt Zeilenga
63e843d200 Remove lint 2005-09-29 20:03:04 +00:00
Hallvard Furuseth
a5ac474f2f Remove unused variable 2005-09-29 09:32:25 +00:00
Kurt Zeilenga
741029dc87 cannot ignore old password when setting sasl password 2005-09-29 08:05:38 +00:00
Kurt Zeilenga
68ae7408dc ITS#4049: oldPassword cannot be ignored, error for now
Add tests to confirm proper behavior
2005-09-29 08:00:33 +00:00
Kurt Zeilenga
e1029524b6 Refuse empty old and/or new passwords 2005-09-29 07:49:15 +00:00
Kurt Zeilenga
55b8685688 cleanup 2005-09-28 18:03:35 +00:00
Howard Chu
1769485868 Fix prev commit, reset parent == slap_entry_root 2005-09-28 16:08:01 +00:00
Howard Chu
98a13edc39 ITS#4047 fix nested overlay configuration 2005-09-28 08:30:14 +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
12733ab92f ITS#3996 fix glue/syncprov interaction 2005-09-27 15:10:57 +00:00
Howard Chu
a0db9c1341 Fix dn2id_add/del parent cache updates 2005-09-27 14:11:10 +00:00
Kurt Zeilenga
d10832b0c8 entryUUID schema to use IANA (newly) assigned OIDs 2005-09-26 18:37:50 +00:00
Howard Chu
fc9bce707d Check log_ops before logging unbind and abandon 2005-09-26 09:49:03 +00:00
Howard Chu
052a4ae6c4 More hdb optimizing - cache subtree IDLs, not just onelevels 2005-09-26 07:30:36 +00:00
Hallvard Furuseth
05f5c7525b Fix snprintf() format 2005-09-26 04:39:51 +00:00
Howard Chu
86bd3651e1 ITS#4040 move initialization 2005-09-25 06:12:41 +00:00
Howard Chu
5697278574 ITS#4040 fix uniqueMemberMatch when value is zero-length 2005-09-25 06:11:35 +00:00
Howard Chu
9213019114 ITS#4039 2005-09-25 03:43:20 +00:00
Pierangelo Masarati
37f4e80929 hide unused member (will likely be removed) 2005-09-24 18:46:01 +00:00
Pierangelo Masarati
112be0118e cleanup states/timeout handling in back-ldap/meta; add connection pooling and defer of pseudoroot bind to back-meta 2005-09-24 18:39:26 +00:00
Pierangelo Masarati
e2c9c843e1 fix previous commit; cleanup few 64 bit issues 2005-09-24 17:09:19 +00:00
Howard Chu
bf7194aba9 ITS#3923 make perl_back_open symmetric with perl_back_close 2005-09-23 11:54:48 +00:00
Howard Chu
5fd0e53b15 ITS#4031 don't update syncCookie if it has invalid ctxcsn 2005-09-22 21:22:00 +00:00
Howard Chu
dd21d3a29f ITS#4030 fix alias deref for Finding, fix alias error code propagation. 2005-09-22 21:12:04 +00:00
Kurt Zeilenga
f3e13ec5f5 Don't use #ifdefs in the inside of a macro 2005-09-19 22:17:22 +00:00
Pierangelo Masarati
ae0b39e3cc use result of validation (ITS#4028) 2005-09-19 09:06:29 +00:00
Hallvard Furuseth
023d510766 Support POSIX 1003.1-2001 without XSI extensions (ITS #2667):
Do not use test -a/-o.  Use shell features like &&, || or case...esac.
Use grep instead of egrep (but not the not-yet-portable Posix variant grep -E).
Based on a patch from Paul Eggert.
2005-09-17 22:22:15 +00:00
Howard Chu
61d96fa17c Add dummy reference to librewrite to force it to link 2005-09-17 00:55:50 +00:00
Pierangelo Masarati
b79d4bdce5 issue additional useful warning messages; may eventually turn into errors? 2005-09-16 15:00:13 +00:00
Howard Chu
3a9814e725 Fix prev commit, BIG_ENDIAN was broken 2005-09-16 01:56:36 +00:00
Howard Chu
aa0cc7b835 More hdb tweaks, add radix sort code from mbackes@symas.com 2005-09-16 01:25:40 +00:00
Howard Chu
13154b25e3 Fix SWAP macro 2005-09-15 13:54:26 +00:00
Howard Chu
4a7f5e33bd More optimizing - try harder to avoid sorting 2005-09-15 08:29:58 +00:00
Howard Chu
20223a9ca5 Fix ISTACK space 2005-09-15 03:59:11 +00:00
Howard Chu
d269703322 Yet another idl_merge fix (test032 failure) 2005-09-15 03:49:52 +00:00
Howard Chu
6411c57028 Fix prev commit, use BDB_IDL_LAST() 2005-09-15 03:19:26 +00:00
Howard Chu
1c2e20527e Silence return val warnings in prev commit 2005-09-15 02:02:27 +00:00
Howard Chu
9b641006cb ITS#4029 Fix misplaced lines in prev commit 2005-09-15 01:22:22 +00:00
Howard Chu
37ad7614de Add syncdata keyword, to select different sync data formats. Defaults
to "default", can be set to "accesslog" or "changelog". changelog is
not fully implemented yet.
2005-09-14 15:27:20 +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
9b1d798ad2 Change slap_ad_undef_remove() to slap_ad_undef_promote().
AttributeDescriptions must never be freed in a running slapd.
2005-09-14 06:17:59 +00:00
Howard Chu
aa3297aa36 More back-hdb search optimization 2005-09-13 07:55:01 +00:00
Hallvard Furuseth
a2a587c6ca Add missing comma between Debug() args 2005-09-13 03:35:53 +00:00
Howard Chu
9df4ae7d6b Fix prev commit 2005-09-12 05:52:55 +00:00
Howard Chu
ab2b541988 Tweak stack size in prev commit 2005-09-12 03:56:21 +00:00
Howard Chu
2dd87ed9e6 Use quicksort instead of heapsort for hdb_idl_sort 2005-09-12 03:54:52 +00:00
Pierangelo Masarati
9129a2f7ee silence warnings 2005-09-10 18:59:35 +00:00
Pierangelo Masarati
ceb9c15bdd put logging under Debug(); silence warnings; s/warnings/errors/ #ifdef'd 2005-09-10 18:42:33 +00:00
Pierangelo Masarati
fb3fc81c7e improved authz_backend detection for internal databases (ITS#4018) 2005-09-10 09:56:29 +00:00
Howard Chu
214e13eecc Tweak newsuperior error codes 2005-09-10 01:51:34 +00:00
Howard Chu
fc784ad8fd ITS#2757 remove isroot checks, simplify 2005-09-10 01:49:46 +00:00
Howard Chu
262c44772d ITS#2757 remove be_isroot checks, simplify... 2005-09-10 01:16:55 +00:00
Howard Chu
f1e05336f1 ITS#3979 restore old (RE21, RE22) search order 2005-09-09 11:43:13 +00:00
Howard Chu
3673cceb6c ITS#3979 only support tool entry points if root DB has them 2005-09-09 11:37:00 +00:00
Howard Chu
beaa0f2250 ITS#3979 better check for duplicate bi_open functions 2005-09-09 07:40:54 +00:00
Howard Chu
c8f977e1b7 ITS#3981 ch_realloc( addr, 0 ) frees addr, return NULL 2005-09-09 07:06:58 +00:00
Howard Chu
ba39e3fe00 ITS#3989 more fixes 2005-09-09 04:53:56 +00:00
Pierangelo Masarati
866148810e release resources (ITS#4016) 2005-09-09 02:37:38 +00:00
Howard Chu
d4c3093996 Silence valgrind warnings 2005-09-09 01:44:42 +00:00
Howard Chu
9944c9c461 ITS#4015 silence pointer/integer size warnings 2005-09-08 23:47:19 +00:00
Kurt Zeilenga
bb19302db6 cast pointer to long instead of int to hopefully avoid
truncation.  Change does at least silence warning.
2005-09-08 21:38:20 +00:00
Pierangelo Masarati
366ef40ceb plug one-time leaks 2005-09-08 20:46:48 +00:00
Pierangelo Masarati
1c2aef6050 fix format and signedness issues 2005-09-08 20:18:43 +00:00
Howard Chu
aa897eae90 ITS#4010 fixes complaint, larger problem remains 2005-09-08 15:28:36 +00:00
Pierangelo Masarati
daa7b11ff5 don't bother about the port if none is given (ITS#4012) 2005-09-08 15:13:01 +00:00
Pierangelo Masarati
3093f97767 fix messages in previous commit 2005-09-08 14:32:09 +00:00
Pierangelo Masarati
5f20374de1 reject registrations when back-monitor is not configured 2005-09-08 14:23:35 +00:00
Howard Chu
a59c109109 Check errcode from dn2entry before using ei 2005-09-08 11:14:12 +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
2ba90833c7 Misc Windows linking fixes 2005-09-07 10:27:55 +00:00
Howard Chu
c7fe31b06d ITS#4009 set X-ORDERED extension on olcReplica 2005-09-07 03:30:59 +00:00
Pierangelo Masarati
07fd8431c2 allow "proxied" attributeDescriptions in DN as well (more about ITS#3959) 2005-09-06 17:21:24 +00:00
Pierangelo Masarati
a1ff59f436 pretty the DN as well 2005-09-06 17:19:36 +00:00
Pierangelo Masarati
4687de2062 fix typo (ITS#4005) 2005-09-06 15:17:07 +00:00
Pierangelo Masarati
82af0c95f7 cleanup dynacl usage() 2005-09-06 14:26:53 +00:00
Pierangelo Masarati
42ae82332f few more fixes 2005-09-06 14:26:06 +00:00
Pierangelo Masarati
85e56eb653 don't lookup rootdn if the password is incorrect (ITS#4004) 2005-09-06 12:35:37 +00:00
Howard Chu
9ec2e2c690 ITS#3807 use a different tokenizer for parsing LDIF values into words. 2005-09-06 09:04:26 +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
Howard Chu
d89cfddcde ITS#4003 frontend->be_replogfile can legitimately be set. 2005-09-05 02:42:24 +00:00
Kurt Zeilenga
69dc0282b1 really fix commit before last 2005-09-05 01:47:27 +00:00
Howard Chu
258b31ccad Moved from back-bdb 2005-09-05 01:32:44 +00:00
Kurt Zeilenga
59a23d7656 Fix typo in last commit 2005-09-05 01:11:45 +00:00
Kurt Zeilenga
b707e1e38c Move uidNumber and gidNumber into slapd(8)
to ensure they are available for ldapi://.
2005-09-05 01:08:40 +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
Pierangelo Masarati
35935f4178 silence warning 2005-09-04 20:07:17 +00:00
Pierangelo Masarati
596f21340e cleanup 2005-09-04 20:00:40 +00:00
Pierangelo Masarati
7fd7001fc2 fix old erroneous commit (ITS#4001) 2005-09-04 19:21:39 +00:00
Howard Chu
0eed18a0e8 Also compile for LDBM 2005-09-04 16:24:16 +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
f81ad346ff ITS#3978: Added alock calls; warns about inconsistency but continues
to start. Fails for concurrent access attempts, since ldbm does not
support any concurrency. (So slaptools are prevented from running when
slapd is already active.)
2005-09-04 15:48:44 +00:00
Howard Chu
464fc6b68a ITS#3978 move alock from back-bdb to slapd 2005-09-04 15:21:57 +00:00
Howard Chu
784554f1bb ITS#3802, #3999 skip wake_sds in epoll event loop 2005-09-04 15:04:09 +00:00
Hallvard Furuseth
00d898e7f3 Silence warnings 2005-09-03 17:03:36 +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