Commit Graph

10489 Commits

Author SHA1 Message Date
Howard Chu
e841247c90 Fix corrupted CSN issue 2009-02-16 00:12:38 +00:00
Howard Chu
99e47ef47a (Temporarily) define CHECK_CSN for all LDAP_DEVEL builds 2009-02-15 23:21:28 +00:00
Howard Chu
55cc203b52 More CHECK_CSN tests 2009-02-15 23:17:45 +00:00
Howard Chu
450f352ec1 Fix compare op 2009-02-15 23:14:25 +00:00
Pierangelo Masarati
d36099aa62 cleanup (related to ITS#5760) 2009-02-15 22:16:21 +00:00
Pierangelo Masarati
8fa2f07531 do not let entryDN,subschemaSubentry slip into results when mapped out (ITS#5760) 2009-02-14 14:13:46 +00:00
Pierangelo Masarati
203eaa6204 consistently map operational attrs as well (ITS#5760) 2009-02-14 13:58:09 +00:00
Pierangelo Masarati
37e8e5a237 consistently map operational attrs as well (ITS#5760); silence warning 2009-02-14 11:11:24 +00:00
Pierangelo Masarati
8f96e64605 let special attrnames slip through (ITS#5760) 2009-02-14 10:39:45 +00:00
Pierangelo Masarati
f83b4345dd more about ITS#5940 2009-02-13 01:12:56 +00:00
Pierangelo Masarati
a83d10e4ac more about ITS#5940 2009-02-13 00:02:11 +00:00
Pierangelo Masarati
d1b415e6be rewrite info should always be set (ITS#5940) 2009-02-12 23:00:47 +00:00
Pierangelo Masarati
e06771c10a fix recursion detection (ITS#5943) 2009-02-12 22:29:13 +00:00
Howard Chu
2a3076e597 Fix typo in prev commit 2009-02-12 17:07:21 +00:00
Howard Chu
b37c553c71 Ignore hangups on removed sockets 2009-02-12 17:05:00 +00:00
Howard Chu
686ceac31f Add some asserts on CSN validity 2009-02-11 22:00:00 +00:00
Howard Chu
3bcb88e363 Silence warning in prev commit 2009-02-11 01:48:09 +00:00
Howard Chu
868ea3568c ITS#5939 plug descriptor leak 2009-02-10 20:07:24 +00:00
Howard Chu
cca8c1953e ITS#5935 fix prev commit 2009-02-10 15:13:31 +00:00
Pierangelo Masarati
a5924e3092 more on ITS#5931: handle intermediate responses and support syncrepl also in back-ldap 2009-02-10 14:27:28 +00:00
Pierangelo Masarati
5d78ca3c6a fix previous commit (and ITS#5931: now back-meta allows to proxy syncrepl) 2009-02-10 14:08:16 +00:00
Pierangelo Masarati
899398b937 partially addresses an issue with ITS#5931: intermediate responses seem to be handled, as well as entries with controls; syncrepl does not work yet 2009-02-10 13:58:09 +00:00
Howard Chu
6a838df274 ITS#5392 use lutil_debug for Statslog if HAVE_DEBUG && !HAVE_SYSLOG 2009-02-10 11:16:31 +00:00
Howard Chu
a86653c3d9 ITS#5613 compare listener URLs verbatim with serverID URLs 2009-02-10 11:09:50 +00:00
Howard Chu
ab123880df ITS#5925 fix prev commit 2009-02-10 04:32:15 +00:00
Howard Chu
0f263632a1 ITS#5935 better check for active syncrepl sessions, avoid double-free 2009-02-10 00:34:47 +00:00
Pierangelo Masarati
911b5fd42e do not assert when receiving intermediate response (partial fix to ITS#5931) 2009-02-09 14:55:56 +00:00
Howard Chu
2ee43073e9 ITS#5927 MicrosoftAD compatibility hack (YUCK) - treat '=' as '-'
if defined in an attributeoption
2009-02-09 05:38:30 +00:00
Pierangelo Masarati
bdb121c967 discard attribute values if attribute name cannot be parsed (ITS#5927) 2009-02-07 15:09:18 +00:00
Pierangelo Masarati
1bab6404f5 consistently allow explicit add/delete of superior objectClasses (ITS#5517) 2009-02-07 11:54:53 +00:00
Howard Chu
044b646445 Fix prev commit, no recursion allowed in glue_sub_attach 2009-02-05 22:59:02 +00:00
Howard Chu
84374348e5 #5925, set LINKED flag so it's possible to detect non-linked subs.
(But we don't check for this flag yet. Not sure what to really do
about improper configs after they've gotten this far...)
2009-02-05 21:54:11 +00:00
Howard Chu
1861632db1 ITS#5925, allow online glue_sub_attach to be deferred 2009-02-05 21:44:21 +00:00
Pierangelo Masarati
e96230ee97 more about ITS#5792 2009-02-05 21:11:05 +00:00
Howard Chu
f719c364c5 ITS#5922 - disable meter for non-default debug settings 2009-02-05 20:57:17 +00:00
Pierangelo Masarati
8227ed9f71 fix use of dangling pointers (ITS#5924) 2009-02-05 19:54:51 +00:00
Pierangelo Masarati
0374a8341a initialize ndn (ITS#5923) 2009-02-05 18:46:03 +00:00
Pierangelo Masarati
7cd382d931 build entry's pretty DN from parent's (ITS#5326) 2009-02-05 18:44:52 +00:00
Howard Chu
72145a7183 More for prev commit, note when closing DB 2009-02-05 10:39:47 +00:00
Howard Chu
d0515c4017 ITS#5922 with namespace changes 2009-02-05 09:38:07 +00:00
Pierangelo Masarati
260fd357df fix structuralObjectClass modification (glue, ITS#5921; w/ relax, ITS#5792) 2009-02-04 22:36:49 +00:00
Pierangelo Masarati
92576d2bc0 olcDatabase needs X-SORTED 'SIBLINGS' index 2009-02-04 20:06:28 +00:00
Howard Chu
a5ed986694 Remove redundant isGrouporMember calls 2009-02-03 02:14:53 +00:00
Howard Chu
cd0f8dec94 Fix prev commit for modify/delete 2009-02-03 01:58:57 +00:00
Howard Chu
2b08e96b53 ITS#5916 - externally callable functions are ldap_pvt, not ldap_int. 2009-02-02 21:14:34 +00:00
Pierangelo Masarati
0ded1f16d5 Allow alias dereferencing in search C API; use new API in proxy backends (ITS#5916) 2009-01-31 10:27:07 +00:00
Pierangelo Masarati
97bd3479c4 muck with flags only when needed (ITS#5898) 2009-01-30 01:29:32 +00:00
Howard Chu
5f809c45eb check mutex in connection_write() 2009-01-29 22:43:18 +00:00
Pierangelo Masarati
4572e7d721 proxy RFC4525 increment; bail out in case of unsupported extension (ITS#5912) 2009-01-29 20:30:19 +00:00
Howard Chu
e80731bc19 revert epoll edge-triggered listening, just use it to silence hangup events 2009-01-29 15:15:16 +00:00
Howard Chu
ca2aa02f09 More for prev commit: Delete obsolete functions 2009-01-28 03:33:52 +00:00
Howard Chu
461ffd51f6 Reverse lock order when detaching op 2009-01-28 02:03:07 +00:00
Howard Chu
8c464dbedb ITS#5857 always combine frontend and backend: restrict, requires, ssf 2009-01-28 01:45:40 +00:00
Howard Chu
9b56116d0d ITS#5903 restructure callbacks 2009-01-28 00:29:34 +00:00
Rein Tollevik
e8ef7e631d ITS#5907 use overlay BackendInfo to read old entry. 2009-01-27 19:18:13 +00:00
Howard Chu
d3f1921cc9 Mostly revert prev commit 2009-01-27 18:18:39 +00:00
Howard Chu
1a1d226dad Revert prev commit, unnecessary 2009-01-27 18:16:28 +00:00
Howard Chu
fb6dfb852d ITS#5540 sean-burford-monitor-normalize-unified-080706.patch 2009-01-27 10:05:55 +00:00
Howard Chu
05ec9552a7 Use epoll in edge-triggered mode 2009-01-27 08:00:50 +00:00
Howard Chu
c0586f0f45 ITS#4359,#2615 add slapi_pw_find() 2009-01-26 22:36:36 +00:00
Howard Chu
a96538f36c ITS#5860 don't free entryinfo of entries that are validly in the cache 2009-01-26 20:59:10 +00:00
Howard Chu
09a369c4ea More for ITS#5860 2009-01-26 20:36:17 +00:00
Howard Chu
aa569ea04e ITS#5756 sort filters more completely 2009-01-26 11:07:45 +00:00
Howard Chu
64d0cb9cf6 ITS#5859 fix IDL cache for hdb DB with empty suffix 2009-01-26 10:20:51 +00:00
Howard Chu
a59bdb2d5d ITS#5860 more for prev commit 2009-01-25 22:43:31 +00:00
Howard Chu
673405bc2e More for prev commit 2009-01-25 22:06:24 +00:00
Howard Chu
01cf75383e Fix prev commit 2009-01-25 21:15:45 +00:00
Howard Chu
9c34d6c8c7 Dynamically added databases did not have controls init'd 2009-01-25 04:07:58 +00:00
Howard Chu
ef846c9105 More for prev commit 2009-01-25 03:04:43 +00:00
Howard Chu
b8db865c0a Cleanup, treat modifyTimestamp specially too 2009-01-25 02:18:41 +00:00
Howard Chu
b69b2d2f69 More for prev commit 2009-01-25 01:53:32 +00:00
Howard Chu
aedaaf6658 Blind fix to runqueue_remove assert. unable to reproduce the problem... 2009-01-24 21:56:15 +00:00
Pierangelo Masarati
bf261acda7 fix back-config handling of slapo-rwm 2009-01-24 15:41:48 +00:00
Howard Chu
532347bb3c ITS#5881 consumer must use ManageDSAiT control to retrieve referrals
as entries. provider must preserve incoming ManageDSAiT status.
2009-01-24 07:04:42 +00:00
Howard Chu
35d8e5d5a6 FIx prev commit, OID clash 2009-01-24 05:49:14 +00:00
Howard Chu
fe70cdf2ea ITS#5864 - require BDB >= 4.6 for trickle task 2009-01-24 03:43:08 +00:00
Howard Chu
cf1558659b ITS#5655 TLS_PROTOCOL_MIN from Philip Guenther 2009-01-24 03:34:49 +00:00
Howard Chu
ac037d3a13 ITS#5843, fallout from #5470. Just test against our newest CSN. 2009-01-24 03:23:31 +00:00
Howard Chu
417d105c29 ITS#5860 more ID_NOCACHE fallout 2009-01-24 00:55:44 +00:00
Kurt Zeilenga
4af9eb9715 Update copyright notices 2009-01-22 00:40:04 +00:00
Pierangelo Masarati
549455c6c6 fix alias deref in case of retry (ITS#5889) 2009-01-21 08:55:48 +00:00
Howard Chu
d495c16861 ITS#5897 fix bval length of serverID w/URL 2009-01-20 23:31:33 +00:00
Howard Chu
863754cb82 Fix prev commit, was hanging up on write events 2009-01-16 22:32:21 +00:00
Howard Chu
9b8dd2033f Revert prev commit, better fix - make sure client conns are closed
as expected
2009-01-16 21:49:00 +00:00
Howard Chu
a4167862c3 Client connection might get closed implicitly 2009-01-16 21:28:46 +00:00
Howard Chu
13ddc561d8 Fix prev commit - check for c_state == CLOSING first 2009-01-15 21:31:58 +00:00
Howard Chu
dd15627a5e Fix prev commit, c_writers check should be mutex'd 2009-01-15 21:22:35 +00:00
Howard Chu
1a171b07d3 ITS#5835 fix connection teradown when there are waiting writers 2009-01-15 20:41:40 +00:00
Howard Chu
96192064f3 ITS#5886 fix epoll hangup handling 2009-01-14 04:28:24 +00:00
Howard Chu
f54bb377df Revert prev commit 2009-01-13 00:08:36 +00:00
Howard Chu
43c1f42461 ITS#5835 tentative fix - remove bogus call to connection_close().
Note that with this change, all calls to connection_closing() and
connection_close() always occur in pairs - probably the two
functions should be collapsed into one.
2009-01-13 00:03:23 +00:00
Howard Chu
c6b18cd7c5 ITS#5855 fix Windows wake_sds close 2009-01-05 22:09:10 +00:00
Howard Chu
0b60ddd7ca Fix prev commit 2008-12-29 15:38:56 +00:00
Howard Chu
6d73c12403 ITS#5866 skip CSN check for glue entries 2008-12-24 12:21:36 +00:00
Pierangelo Masarati
3cafd7b1eb honor RFC4528 assertion control for LDAP add operations (ITS#5861; blind fix) 2008-12-20 22:56:03 +00:00
Pierangelo Masarati
e0ad0fbd8d honor RFC4528 assertion control for LDAP add operations (ITS#5861) 2008-12-20 22:49:53 +00:00
Pierangelo Masarati
b334844a70 return error codes (ITS#5867) 2008-12-20 22:45:02 +00:00
Pierangelo Masarati
fb9128cdc8 check validity of idassert-bind line (ITS#5863) 2008-12-20 22:34:00 +00:00
Pierangelo Masarati
0631c47576 do not allow slapo-ppolicy to be global by now (ITS#5858) 2008-12-20 22:02:06 +00:00
Pierangelo Masarati
5a50733e39 don't send error when going to retry (alternative fix to ITS#5854) 2008-12-12 09:29:51 +00:00
Pierangelo Masarati
7681642bcf fix LDAP deref control response; fix tool response handling; add lutil_memcopy() for API uniformity (more about ITS#5768) 2008-12-11 23:17:08 +00:00
Pierangelo Masarati
ed33fa5cc6 add shadow mask 2008-12-06 17:20:43 +00:00
Pierangelo Masarati
d8e4b48cee don't muck with shadow flags if database is already shadow (ITS#5850) 2008-12-06 17:16:03 +00:00
Pierangelo Masarati
bd49d6dc11 make sure the right control is being used (a little bit paranoid...) 2008-12-06 14:41:12 +00:00
Howard Chu
65530005ee More for prev commit - if doing both modrdn and modify at once, only
set the CSN on the modify op.
2008-12-03 04:49:53 +00:00
Howard Chu
89e13bff5f Refine prev commit 2008-11-29 11:06:28 +00:00
Howard Chu
2705cbd749 ITS#5809 - fixed again, based on 1.423 (reverted 1.424-1.425) 2008-11-29 03:41:33 +00:00
Howard Chu
b25c74777a Let the idletimeout check kill hung writers 2008-11-28 23:45:56 +00:00
Pierangelo Masarati
a7b4be5b33 fix ACI as a consequence of ITS#5804 (this is a hack; would need an API change) 2008-11-28 23:15:03 +00:00
Pierangelo Masarati
74636cfb51 more about ITS#5804 2008-11-28 22:50:18 +00:00
Howard Chu
e2ee5844e0 ITS#5835 change some DEBUG_TRACE messages to DEBUG_CONNS for easier debug 2008-11-28 21:09:34 +00:00
Pierangelo Masarati
1d9ff10ed7 add newRDN rewriting; fix rewriteContext names (ITS#5834) 2008-11-28 20:34:02 +00:00
Pierangelo Masarati
7c3e478f40 fix previous commit (related to ITS#5804) 2008-11-28 19:34:02 +00:00
Ralf Haferkamp
760660a4a2 Remove unneeded locking. Don't wait for memp_trickle to complete,
loosing an signal doesn't hurt in this case.
2008-11-28 16:09:40 +00:00
Pierangelo Masarati
4bbb033c6b retry every hour, but don't save it; on the contrary, complain every time syncrepl is configured without retry (ITS#5825) 2008-11-24 18:15:52 +00:00
Howard Chu
c71e7b399a ITS#5827, release syncop after mod op completes 2008-11-23 20:43:39 +00:00
Howard Chu
f6ae9c9c9f Fix typo in prev commit 2008-11-22 22:41:11 +00:00
Howard Chu
1d746e552a Initialize bli_flag 2008-11-22 21:08:38 +00:00
Pierangelo Masarati
970a60002f don't leak generated filters (ITS#5826) 2008-11-22 18:38:37 +00:00
Pierangelo Masarati
15236be495 fix previous commit 2008-11-22 18:35:19 +00:00
Pierangelo Masarati
ce045e153f make messages more esplicative; fix style 2008-11-22 17:53:14 +00:00
Pierangelo Masarati
31c61ad855 minimal fix for ITS#5825, pending discussion 2008-11-22 16:00:41 +00:00
Pierangelo Masarati
f0af51d639 don't alloc on slab (ITS#5820) 2008-11-20 17:22:33 +00:00
Pierangelo Masarati
55010d5e4e fix previous commit (ITS#5819) 2008-11-19 17:08:48 +00:00
Pierangelo Masarati
6f20049610 clear rc if value must be added (ITS#5819) 2008-11-19 16:02:22 +00:00
Pierangelo Masarati
2f32c29e4a don't bailout in case of insufficientAccess (ITS#5816) 2008-11-18 01:29:34 +00:00
Pierangelo Masarati
5cf95c5b30 fix length 2008-11-18 00:12:22 +00:00
Quanah Gibson-Mount
911376e543 Fix prev commit 2008-11-17 23:45:20 +00:00
Pierangelo Masarati
e5867e2f30 improve previous commit (ITS#5814) 2008-11-16 23:58:46 +00:00
Pierangelo Masarati
bbcc89ecd3 s/not|got/(non)present/ (more readable, isn't it?) 2008-11-16 20:33:03 +00:00
Pierangelo Masarati
b52c62e69f don't assert on unprotected data (ITS#5814) 2008-11-16 20:29:26 +00:00
Hallvard Furuseth
85e8b309d5 Silence gcc -Wformat: Put rev 1.343's debugmsg in Debug() so -Wformat can check 2008-11-16 03:22:27 +00:00
Hallvard Furuseth
753a6d0008 C89 rejects ITS#5784 non-constant array init (backend.c 1.402,-controls.c 1.201) 2008-11-16 03:10:15 +00:00
Howard Chu
011d14c136 cleanup prev commit, delete unused vars 2008-11-16 01:24:09 +00:00
Howard Chu
329741ff0b ITS#5809 fix prev commit - always turn modrdn into modrdn+modify, and
only propagate the Modify op.
2008-11-16 01:21:31 +00:00
Howard Chu
b7e8411dca ITS#5809 fix 1.421, avoid modrdn falling thru to modify unnecessarily 2008-11-15 23:54:23 +00:00
Pierangelo Masarati
03b0a71014 silence warnings 2008-11-15 15:08:00 +00:00
Emmanuel Dreyfus
3ac5b91a2f Fix warnings an a real bug hidden by the lack of warning... 2008-11-15 11:09:03 +00:00
Pierangelo Masarati
a86fae235b fix previous commit (related to ITS#5804) 2008-11-15 10:42:18 +00:00
Howard Chu
60450c7045 ITS#5709 make sure CSNs are generated and queued atomically 2008-11-15 08:49:44 +00:00
Emmanuel Dreyfus
4c60645bfb Add ACL <who> regex-substitution from attribute value submatches. Cf ITS#5804 2008-11-15 07:18:39 +00:00
Howard Chu
d1221975d6 ITS#5809 fewer false detections of renames 2008-11-14 23:48:38 +00:00
Hallvard Furuseth
587d928552 reformat 2008-11-14 18:19:19 +00:00
Hallvard Furuseth
355c94ddb7 ITS#5329: back-ldif deadlock with access controls 2008-11-14 18:15:35 +00:00
Howard Chu
51c87bb9c7 ITS#5809 renames are not exclusive from modifies 2008-11-13 22:46:49 +00:00
Hallvard Furuseth
d756699af6 ITS#5319 - support rename to same DN. 2008-11-12 00:20:48 +00:00
Hallvard Furuseth
9f55af00ce ITS#5408 part 11 - notice Abandon. 2008-11-12 00:11:53 +00:00
Hallvard Furuseth
2d1af3f2f7 ITS#5408 part 10 - errors from search and slapcat.
- Tweak error code/message for absent directory, including database directory.
- Catch closedir() error.
- ldif_tool_entry_close(): Free entries and reset entry list.
- Propagate any error to slapcat & co.
2008-11-12 00:10:01 +00:00
Hallvard Furuseth
c765070bf0 ITS#5408 part 9 - Sorted RDNs.
- Parse sorted attrs more carefully:
  Accept only attr={num}val.ldif and attr=val{num}.ldif and only base 10.
  Sort "attr=foo" before "attr=foo{n}".  Truncate at ".ldif" while sorting.
- Make the sort order independent of the LDIF files' order in the directory.
2008-11-12 00:03:55 +00:00
Hallvard Furuseth
32bc29d1af ITS#5408 part 8 - Rewrite search API, structs bvlist/enumCookie/ldif_tool.
r_enum_search() -> ldif_send_entry() + ldif_readdir() + ldif_search_entry().
enum_tree() -> search_tree().  fullpath() -> fullpath_alloc() + FILL_PATH().
No functionality change except catching malloc and opendir() errors.
2008-11-11 23:59:43 +00:00