Commit Graph

8560 Commits

Author SHA1 Message Date
Pierangelo Masarati
439cd9be74 clean orm_modlist before each mod 2006-06-12 22:56:30 +00:00
Pierangelo Masarati
ea6c83481b add return-error support to searches 2006-06-12 22:27:52 +00:00
Pierangelo Masarati
0f8f25cf1a add support for recursive referrals (with simple loop detection) to slapo-chain (ITS#4070); add simple support for returning the error code instead of the original referral (ITS#4570) 2006-06-12 22:09:43 +00:00
Pierangelo Masarati
7e275fdc2c address ITS#4586 2006-06-12 15:52:23 +00:00
Howard Chu
1a86d4f663 Use separate task for refint operations - avoids re-entrancy issue,
prevents delay of client, removes dependency on slap_replog knowledge
2006-06-12 14:06:00 +00:00
Luke Howard
88b499b93d s/ber_tag_t/int where appropriate
Note about possible ITS#4158 breakage for SLAPI_CONN_DN
2006-06-12 08:40:39 +00:00
Luke Howard
e752b0b9af Don't call search rewriter plugins for internal operations 2006-06-11 10:10:32 +00:00
Luke Howard
0e5ff3dbd0 Add internal bind/unbind/search/compare/abandon plugin types 2006-06-11 09:54:15 +00:00
Luke Howard
60b25fb095 Add internal bind/unbind/search/compare/abandon plugin types 2006-06-11 09:47:54 +00:00
Luke Howard
7ca0a72a3a fix previous commit 2006-06-11 08:29:07 +00:00
Luke Howard
71827d002d Add SLAPI_X_OPERATION_NO_SUBORDINATE_GLUE for exposing o_no_subordinate_glue 2006-06-11 06:50:53 +00:00
Luke Howard
1ebfd26ca3 Fix broken referral handling in slapi_send_ldap_result() 2006-06-11 06:49:58 +00:00
Pierangelo Masarati
20542a045f fix previous commit 2006-06-10 19:47:31 +00:00
Pierangelo Masarati
33d79d1541 fix error mapping 2006-06-10 18:11:52 +00:00
Pierangelo Masarati
bed74c02cc improve logging 2006-06-10 17:41:55 +00:00
Pierangelo Masarati
ca0184c309 centralize and cleanup bind response handling 2006-06-10 16:33:55 +00:00
Pierangelo Masarati
31a004840d cleanup identity assertion; ready for porting to back-meta 2006-06-10 16:33:26 +00:00
Pierangelo Masarati
6bd9aa3755 remove unnecessary locks and resource cleanup 2006-06-10 15:30:24 +00:00
Luke Howard
a75a4f4eff Honour o_no_subordinate_glue
Don't pollute o_req_ndn after resetting (hyc please review)
2006-06-10 12:31:22 +00:00
Luke Howard
7c9c559019 add o_no_subordinate_glue member to operation 2006-06-10 12:30:00 +00:00
Luke Howard
dfe20afd84 Fix glue_back_select() behaviour so that it actually does select the most
specific backend for the DN (this was broken in the case that subordinate
and subsubordinate backends were glued)
2006-06-10 10:31:17 +00:00
Luke Howard
60b9c90fad Fix typo when comparing local sock name 2006-06-10 07:37:06 +00:00
Pierangelo Masarati
50c6a95a62 make sure heavy concurrency doesn't cause quarantine loops 2006-06-10 01:08:45 +00:00
Howard Chu
25e12b07b3 fix leak in prev commit 2006-06-09 20:26:36 +00:00
Luke Howard
2941bd8a9e Handle unknown attributes in SLAPI_SEARCH_ATTRS 2006-06-09 15:54:59 +00:00
Luke Howard
ea45b5b322 fix previous commit 2006-06-09 15:52:44 +00:00
Luke Howard
f4c5bddd9c Ignore unknown attributes in slapi_send_ldap_search_entry()
(mirrors code in slapi_pblock.c)
2006-06-09 15:42:33 +00:00
Pierangelo Masarati
942ca17669 cleanup resource release 2006-06-08 23:41:02 +00:00
Howard Chu
5934d696eb ITS#4582 complain if no rootDN was set when configuring syncrepl 2006-06-08 11:54:10 +00:00
Howard Chu
f15e31b9a9 ITS#4580 make sure port number is preserved in replica info 2006-06-08 11:37:14 +00:00
Pierangelo Masarati
5466628e81 more about previous commit 2006-06-07 23:36:38 +00:00
Pierangelo Masarati
740f196548 rework quarantine locking and so 2006-06-07 23:25:38 +00:00
Pierangelo Masarati
53175f7ba6 more concurrency cleanup 2006-06-07 21:54:37 +00:00
Pierangelo Masarati
9aecc6c7e0 cleanup 2006-06-07 14:48:10 +00:00
Howard Chu
0657ee85f5 Fix db_init 2006-06-05 22:31:17 +00:00
Howard Chu
16448bf347 Fix prev commit 2006-06-05 21:26:23 +00:00
Howard Chu
e1b17653d6 Fix ITS#4576 reset restrict after successful pw mod 2006-06-05 20:13:40 +00:00
Pierangelo Masarati
63d5a939b3 refine (and fix) back-meta handling of search initialization (ITS#4519) 2006-06-02 17:30:15 +00:00
Pierangelo Masarati
a2b7fd279f cleanup 2006-06-02 15:43:47 +00:00
Howard Chu
70512edd5a ITS#4572 don't unlock non-existent locks 2006-06-01 02:03:10 +00:00
Pierangelo Masarati
9b7dc0aa36 trap an issue that occurred in odd conditions 2006-05-31 14:37:05 +00:00
Pierangelo Masarati
759638db20 misc cleanup 2006-05-31 14:11:07 +00:00
Howard Chu
35f6ef6fd6 Cleanup prev commit 2006-05-31 01:52:32 +00:00
Howard Chu
54231dd13f Only log realdn if it's non-empty 2006-05-31 01:45:39 +00:00
Howard Chu
f4a188bf38 Cleanup config cruft 2006-05-30 12:16:34 +00:00
Howard Chu
bec0b4ef89 Add dynamic config support for auditlog and ppolicy 2006-05-30 11:49:16 +00:00
Howard Chu
1fb33c0e9f Fix ARG_OFFSET to work with overlays 2006-05-30 11:34:36 +00:00
Pierangelo Masarati
186813daed rearrange quarantine handling during proxyAuthz bind; bind anonymously if no bindmethod is defined 2006-05-30 01:20:32 +00:00
Pierangelo Masarati
85c9a7b4c5 further cleanop of previous commits 2006-05-30 00:40:39 +00:00
Pierangelo Masarati
f5fcd2c169 cleanup previous commit 2006-05-30 00:12:23 +00:00
Pierangelo Masarati
5854464be2 allow pretty time form in quarantine string 2006-05-29 23:36:12 +00:00
Pierangelo Masarati
a6406de871 make room for plugins that deal with quarantine end 2006-05-29 21:43:20 +00:00
Howard Chu
78809a70c5 Fix modrdn with back-ldap 2006-05-29 07:24:21 +00:00
Howard Chu
d2b27b156e Add "hidden" database config, allow hidden DBs with redundant suffixes 2006-05-29 06:03:43 +00:00
Howard Chu
59ca2d198f ITS#4555 add "-j" option to jump to line of LDIF file before processing.
Fixed line number in error messages to give the line number of the beginning
of the offending entry.
2006-05-29 02:41:06 +00:00
Pierangelo Masarati
795841b5a4 implement proxy quarantine (ITS#4569) 2006-05-27 19:54:27 +00:00
Pierangelo Masarati
1d24564f9d fix DN-valued (and likely others not handled in the switch) attrs duplication (occcurred with olcDbSuffix during attrs_dup(); please check) 2006-05-27 19:14:39 +00:00
Howard Chu
62437022ab ITS#4567 use unique timestamps for ops for cascading delta-sync 2006-05-27 10:26:15 +00:00
Howard Chu
e3bea86205 ITS#4562 - don't assume syncprov_op_response only runs in overlay context;
under a glue setup it may be get a real DB, don't corrupt the DB struct.
2006-05-26 12:08:15 +00:00
Pierangelo Masarati
1efd2ef101 (almost blind) fix potential strchr() read-past-end of berval 2006-05-26 00:07:55 +00:00
Pierangelo Masarati
5f58c733cc enable NOOP (ITS#4563; seems to work now) 2006-05-25 22:45:45 +00:00
Pierangelo Masarati
d1824b14ae fix NOOP return code (ITS#4563; I'll check and confirm it later; NOOP support might be broken) 2006-05-25 16:58:41 +00:00
Hallvard Furuseth
ce44bdbc37 Constify slapd_slp_attrs (assigned a const char* in main.c:slapd_opt_slp()) 2006-05-25 16:32:43 +00:00
Hallvard Furuseth
f9f0b243d6 warning cleanup 2006-05-25 16:15:49 +00:00
Hallvard Furuseth
8c1210cb78 Format fixes: %p takes void*, not struct* whose representation may differ.
Warning cleanup.
2006-05-25 16:14:41 +00:00
Hallvard Furuseth
453d3c0710 Format fixes: Debug() arg#2 must be format.
Warning cleanup: Move format strings, let gcc recognize them. Unused var.
2006-05-25 16:11:24 +00:00
Hallvard Furuseth
2c3a06321a 2006-05-25 15:59:21 +00:00
Howard Chu
6f08468e2f Fix concurrency issues 2006-05-25 05:08:04 +00:00
Howard Chu
1ed9fff84c Fix uninit'd var 2006-05-25 01:05:29 +00:00
Pierangelo Masarati
cff53d4867 allow tools to syslog 2006-05-24 17:57:13 +00:00
Pierangelo Masarati
810a8f0d06 sigh, the test was renamed ages ago 2006-05-24 01:50:57 +00:00
Howard Chu
5e50d2e2e4 Fix prev commit, LE/GE searches advanced in wrong direction.
Terminate EQ/SUBSTR query searches sooner.
2006-05-23 02:53:54 +00:00
Pierangelo Masarati
f26bef66c6 cleanup 2006-05-20 15:49:18 +00:00
Pierangelo Masarati
e5c173691d add cancel strategies (ITS#4560) 2006-05-20 14:29:01 +00:00
Howard Chu
fa2425005a More cleanup 2006-05-20 05:05:13 +00:00
Howard Chu
b83ef38c51 cleanup debug msg 2006-05-20 05:03:35 +00:00
Pierangelo Masarati
80dfb95241 fix previous commit 2006-05-19 23:33:15 +00:00
Howard Chu
9de3d9c277 Fix idletimeout deadlock 2006-05-19 22:47:33 +00:00
Pierangelo Masarati
16661063d0 silence warnings 2006-05-19 22:37:52 +00:00
Pierangelo Masarati
29af5f93ee fix limits unparse 2006-05-19 22:34:04 +00:00
Howard Chu
fde6482629 Cleanup (revert ITS#4472, etc.) 2006-05-19 15:51:09 +00:00
Howard Chu
e6475734fa ITS#4549, rewritten query_containment etc... 2006-05-19 15:25:33 +00:00
Howard Chu
4cc18ee8d4 ITS#4549 kludge, get tavl_ routines referenced 2006-05-19 15:24:56 +00:00
Howard Chu
f0adb769ad Cleanup query attrs 2006-05-19 09:15:42 +00:00
Howard Chu
8eace69ddb Cleanup template searching 2006-05-19 08:07:59 +00:00
Pierangelo Masarati
fcbc1f484d fix referrals return for ops other than search (ITS#4557); use slab memory for temporaries in returning referrals 2006-05-18 22:28:22 +00:00
Howard Chu
9e50b2d0a1 ITS#4552 just rely on ACLs when adding entries under the suffix. 2006-05-18 01:18:48 +00:00
Pierangelo Masarati
9b388e5328 fix cleanup concurrency 2006-05-17 01:34:46 +00:00
Howard Chu
58099cc045 coverity cleanup 2006-05-16 22:16:27 +00:00
Howard Chu
1135d19f16 ITS#4466 fix typo, uninit'd var 2006-05-16 22:16:13 +00:00
Howard Chu
bb11c81178 ITS#4550 don't overwrite remote server's err msg 2006-05-16 21:45:31 +00:00
Howard Chu
5f3bc1f7ec Fix ITS#4450, don't overwrite remote server's rs->sr_text 2006-05-16 21:30:10 +00:00
Pierangelo Masarati
073f14ceac lc_bound_ndn is occasionally saved to keep track of who bound; don't use it to bind unless credentials are present as well 2006-05-16 02:56:59 +00:00
Howard Chu
33a3448964 Cleanup - no more SLAP_MULTI_CONN_ARRAY 2006-05-16 01:22:47 +00:00
Pierangelo Masarati
9c9b6f7353 idassert: setup rebind stuff when binding for proxyAuthz, so that referral chasing tries to rebind with the correct identity (partially address ITS#3526) 2006-05-16 01:10:51 +00:00
Pierangelo Masarati
b0c304f759 fix referral rewriting (ITS#4548) 2006-05-16 00:57:46 +00:00
Pierangelo Masarati
3b7084c170 reset the conn field in the cached connection if the bound DN is privileged (ITS#4547) 2006-05-15 01:42:05 +00:00
Pierangelo Masarati
1c16fa382a line up back-meta to ITS#4546 2006-05-14 18:10:23 +00:00
Pierangelo Masarati
26d1fc8c48 more cleanup of previous commits 2006-05-14 18:09:56 +00:00
Pierangelo Masarati
f87e6270d4 improve previous commit 2006-05-14 17:53:40 +00:00
Pierangelo Masarati
0c2c3ea7e1 typo in previous commit 2006-05-14 17:34:18 +00:00
Pierangelo Masarati
0c33c17bb5 "single-conn" forces flushing of existing conns during rebind on same conn (ITS#4546) 2006-05-14 17:32:15 +00:00
Pierangelo Masarati
6910b36df8 more checks 2006-05-14 16:29:49 +00:00
Pierangelo Masarati
3393b15594 cleanup resource release 2006-05-14 15:11:53 +00:00
Pierangelo Masarati
092aade428 cleanup 2006-05-14 15:11:23 +00:00
Howard Chu
813b95941e Fixed version of rev 1.361 2006-05-14 03:37:17 +00:00
Howard Chu
0b79eab474 Cleanup epoll read / error behavior 2006-05-14 00:26:33 +00:00
Howard Chu
1cf58aba1c Revert prev commit, spoke too soon, close race condition came back. 2006-05-13 12:35:12 +00:00
Howard Chu
d74a230229 Simplify connection mutexes 2006-05-13 11:50:00 +00:00
Pierangelo Masarati
93b88e0bbf make sure realloc'd memory is reset 2006-05-13 02:06:10 +00:00
Pierangelo Masarati
87ba3eb8b0 refine previous commits (don't leave bindings around) 2006-05-12 19:25:31 +00:00
Pierangelo Masarati
c1c8c05c1b first round at adding passwd exop support to slapo-rwm (ITS#4458) 2006-05-12 15:38:58 +00:00
Ralf Haferkamp
4d46b8b747 Additional fix for ITS#4522. The "dn=" ist not optional. 2006-05-12 11:48:57 +00:00
Howard Chu
d921fcb0c9 ITS#4531 temporarily go back to using quick sort instead of radix sort 2006-05-11 20:05:53 +00:00
Kurt Zeilenga
6651d19320 cleanup 2006-05-11 18:55:50 +00:00
Howard Chu
d8aabb008f ITS#4537 placate braindead compiler 2006-05-11 18:04:26 +00:00
Ralf Haferkamp
cf1304147d Add Pre- and Postread Control to the supported controls (ITS#4538) 2006-05-11 16:45:33 +00:00
Pierangelo Masarati
914bf9926f add "-n" to omit trailing newline 2006-05-11 14:36:20 +00:00
Howard Chu
a0ee28698c ITS#4516 clear restricted status if other Binds have succeeded 2006-05-11 13:39:44 +00:00
Howard Chu
837e9466b8 ITS#4534 propagate CSN for delete syncID sets 2006-05-11 10:46:44 +00:00
Howard Chu
6e751774c4 Fix for !LDAP_SYSLOG 2006-05-11 04:43:17 +00:00
Howard Chu
ad7d644437 Omit trailing newline from generated password, so it may be directed
to a file and used by commandline tools
2006-05-11 03:09:40 +00:00
Howard Chu
b8b8ca1814 Rearrange, ARGS_TYPES should not be bitmasks 2006-05-11 02:13:03 +00:00
Howard Chu
4bf6f8e348 ITS#4535 set default cn=config access to NONE 2006-05-11 00:40:34 +00:00
Pierangelo Masarati
7cc29d2547 allow slappasswd to generate cleartext secret 2006-05-11 00:12:54 +00:00
Pierangelo Masarati
fbbb8a5d93 fix ITS#4522; imply "+0" when no access is given 2006-05-10 22:25:06 +00:00
Pierangelo Masarati
d79fd46f33 don't allow "none" as access level 2006-05-10 22:23:24 +00:00
Howard Chu
f38bf4b362 plug leaks 2006-05-10 13:03:42 +00:00
Howard Chu
ed25c75d60 plug leak 2006-05-10 12:53:36 +00:00
Howard Chu
cc260ed6a0 coverity cleanup 2006-05-10 12:36:49 +00:00
Ralf Haferkamp
b8bf18f36b ITS#4532: check *pre/postread_ctrl before freeing 2006-05-10 09:07:37 +00:00
Pierangelo Masarati
42ab45aed2 fix warning message 2006-05-09 20:32:25 +00:00
Howard Chu
ab7e975159 check for NULLs from ber_mem funcs 2006-05-09 11:09:04 +00:00
Howard Chu
6b4de96679 plug leak 2006-05-09 10:52:22 +00:00
Howard Chu
0a43acc732 coverity cleanup 2006-05-09 10:41:05 +00:00
Howard Chu
912ff2798b Fix tlimit munging 2006-05-09 00:01:35 +00:00
Howard Chu
aed92f35c1 refine prev commit 2006-05-08 13:12:12 +00:00
Howard Chu
f7115e761c Fix strchrlen running past end of berval 2006-05-08 12:43:01 +00:00
Howard Chu
b41f2cad74 Fix dynacl tgrant/tdeny initialization 2006-05-08 09:06:37 +00:00
Luke Howard
87051a2a4a ITS#4525 2006-05-08 08:58:33 +00:00
Pierangelo Masarati
c2369771f8 cleanup 2006-05-06 17:22:59 +00:00
Pierangelo Masarati
373ded8d24 add URI list resorting feature (ITS#4524) 2006-05-06 16:15:25 +00:00
Pierangelo Masarati
af5b506e37 fix previous commit 2006-05-06 11:53:54 +00:00
Pierangelo Masarati
401b211d98 touch idle-timeout HAVE_TLS odds; silence warning #ifndef HAVE_TLS 2006-05-06 10:50:13 +00:00
Pierangelo Masarati
470fda7744 cleanup version parsing 2006-05-06 10:42:29 +00:00
Pierangelo Masarati
2110880be1 refine previous commit 2006-05-06 03:16:45 +00:00
Pierangelo Masarati
a9b7f3612b parallelize dobind/search (ITS#4519) 2006-05-06 02:25:53 +00:00
Pierangelo Masarati
b5eb214d79 fix "host=", broken by rev 1.446 of servers/slapd/config.c 2006-05-05 23:53:14 +00:00
Pierangelo Masarati
23c766bbfd make sure NULL pointers are not dereferenced 2006-05-04 22:07:35 +00:00
Pierangelo Masarati
9447b9fff4 gracefully handle server down while initiating a search (ITS#4518) 2006-05-04 08:37:31 +00:00