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
4572e7d721
proxy RFC4525 increment; bail out in case of unsupported extension (ITS#5912)
2009-01-29 20:30:19 +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
Pierangelo Masarati
5a50733e39
don't send error when going to retry (alternative fix to ITS#5854)
2008-12-12 09:29:51 +00:00
Hallvard Furuseth
e8afbb70fc
Warning cleanup: signed meets unsigned.
2008-10-13 08:29:21 +00:00
Hallvard Furuseth
3b90f84422
Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.)
...
Warning cleanup: Missing braces in initialization. signed meets unsigned.
2008-10-13 07:55:02 +00:00
Pierangelo Masarati
4aa9edf03e
cleanup round of memory handling (either check results or use ch_* calls; ITS#5691)
2008-09-09 19:58:47 +00:00
Pierangelo Masarati
dae38c56cd
let undefined objectClasses be used in proxy filters
2008-09-04 10:13:30 +00:00
Pierangelo Masarati
969a0aef0e
canonicalize undef objectClass names (much like attributes; ITS#5681)
2008-09-04 08:05:17 +00:00
Pierangelo Masarati
4d71b2f9c0
make sure objectClass is not filtered out by 'map attribute *' (ITS#5647)
2008-08-09 10:54:31 +00:00
Pierangelo Masarati
5c53e3ad72
improve previous commit (ITS#5614)
2008-07-14 22:44:01 +00:00
Pierangelo Masarati
30ffa33d7e
do not propagate undefined or otherwise broken search filters (ITS#5614)
2008-07-14 22:14:49 +00:00
Pierangelo Masarati
f48d99cb77
fix quarantine (ITS#5592)
2008-07-12 15:22:39 +00:00
Pierangelo Masarati
c6f12694fc
allow proxies to filter out search references (ITS#5593)
2008-07-07 21:25:59 +00:00
Pierangelo Masarati
292b96c4e1
extra needed by config (ITS#5355)
2008-06-30 10:01:41 +00:00
Howard Chu
010295e9e7
More symbols for ITS#5355
2008-06-29 21:13:03 +00:00
Pierangelo Masarati
ffffa52470
revert test logic
2008-05-22 17:43:12 +00:00
Pierangelo Masarati
a4d14fb2ef
missing numvals (ITS#5481)
2008-04-21 16:43:50 +00:00
Pierangelo Masarati
66b581643f
make pseudoroot-bind-defer TRUE by default (part of ITS#5440 fix)
2008-04-12 11:33:48 +00:00
Pierangelo Masarati
f3eeb81458
a connection cannot be privileged and be in the avl tree at the same time (related to ITS#5440?)
2008-03-29 18:17:21 +00:00
Pierangelo Masarati
71cabe40c3
print targets' status
2008-03-29 18:16:34 +00:00
Pierangelo Masarati
b23e4f15a9
make sure orr_newrdn is passed correctly to libldap (ITS#5397)
2008-02-28 16:22:23 +00:00
Pierangelo Masarati
2df4675ac3
don't set sm_nvalues unless required (ITS#5375)
2008-02-14 15:15:53 +00:00
Howard Chu
f481ffef9c
ITS#5355 use bi_extra instead of calling directly into back-ldap
2008-02-08 02:01:17 +00:00
Kurt Zeilenga
c890c96d13
Happy New Year (belated)
2008-01-08 00:19:56 +00:00
Pierangelo Masarati
30f401c628
rename ldap_pvt_thread_pool_setkey_x() to ldap_pvt_thread_pool_setkey() (as part of ITS#5309)
2008-01-07 21:35:03 +00:00
Pierangelo Masarati
7aeac21440
silence warnings
2007-11-23 12:47:53 +00:00
Pierangelo Masarati
e25169ccce
set BINDING appropriately (ITS#5185)
2007-10-13 10:13:38 +00:00
Pierangelo Masarati
617bd11452
de-normalize simple filter values consistently
2007-10-05 09:49:19 +00:00
Pierangelo Masarati
55a988831a
ITS#5168 also affects back-meta
2007-10-04 22:18:34 +00:00
Pierangelo Masarati
fedcbe9a41
better fix for ITS#5154
2007-09-29 11:45:37 +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
c4dbe1a274
Attribute/Modification value counters
2007-09-21 08:43:56 +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
5569180736
draft-wahl-ldap-session: append further instances of the control
2007-09-15 17:26:09 +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
Howard Chu
784daf01e5
Fix DEVEL dependency
2007-09-01 00:11:42 +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
9a00bbb35f
add support for session tracking (draft-wahl-ldap-sessio) to proxy backends requests
2007-08-22 15:49:35 +00:00
Pierangelo Masarati
145e6fc1f8
fix or comment Calysto findings
2007-08-21 10:52:16 +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
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
5ec09e2f0a
merge attributes as required after mapping; avoid objectClass duplicates (ITS#5091)
2007-08-14 11:46:29 +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
55bd34079c
return entry controls (partially fixes ITS#4591)
2007-07-30 16:32:59 +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
Howard Chu
88cbe052e0
Fallout from ITS#4986 - remove unused param of select_backend()
2007-07-13 03:18:20 +00:00
Pierangelo Masarati
639d678592
cleanup struct declarations
2007-03-20 01:07:10 +00:00
Pierangelo Masarati
a28eb7817a
fix cleanup
2007-03-14 01:05:42 +00:00
Pierangelo Masarati
fd1efa13d0
fix previous commit (ITS#4861)
2007-03-09 17:24:56 +00:00
Pierangelo Masarati
6a9c44849c
check consistency of referrals and result code (ITS#4861)
2007-03-08 17:57:49 +00:00
Pierangelo Masarati
18b1fd4e5f
Solaris doesn't like NULL pointers in printf, which now can occur since IA5string allows the empty string
2007-02-26 20:38:20 +00:00
Pierangelo Masarati
e5ebfe6662
improve async connect handling in case of errors
2007-02-21 22:22:14 +00:00
Pierangelo Masarati
ff9b674899
cleanup back-meta according to back-ldap
2007-01-28 00:53:11 +00:00
Pierangelo Masarati
196fd6308d
do not allow back-meta with no targets
2007-01-26 23:03:46 +00:00
Pierangelo Masarati
6155d91143
don't return adminLimitExceeded unless LDAPv3; use largest among candidates timeouts
2007-01-26 01:59:30 +00:00
Pierangelo Masarati
cf226fb029
implement search timeout when the remote server does not respond in the specified timeout
2007-01-26 01:39:05 +00:00
Pierangelo Masarati
814b8a1438
don't bail out if all targets are too lazy...
2007-01-18 01:13:39 +00:00
Pierangelo Masarati
02af23c4c1
allow modules to muck with connection tree and so
2007-01-18 00:02:29 +00:00
Pierangelo Masarati
dfff749f04
fix dumb overparanoid test
2007-01-16 11:30:24 +00:00
Pierangelo Masarati
ee2370bf42
one more round of cached connections fixes/improvements
2007-01-13 11:51:28 +00:00
Pierangelo Masarati
3042c57ac0
allow forcing abandon of search operations on a connection basis
2007-01-09 12:19:04 +00:00
Pierangelo Masarati
7bcca30623
better handling of critical conditions
2007-01-08 21:37:45 +00:00
Pierangelo Masarati
3c012a606b
fix response code mapping
2007-01-08 00:13:28 +00:00
Pierangelo Masarati
671330a051
better async connection and partial error handling
2007-01-07 22:06:13 +00:00
Pierangelo Masarati
3284f54ec0
silence warnings
2007-01-03 21:34:49 +00:00
Kurt Zeilenga
da6d9eb046
happy new year
2007-01-02 20:00:42 +00:00
Pierangelo Masarati
7e8242d50d
pool privileged connections (ITS#4791)
2006-12-24 18:23:36 +00:00
Pierangelo Masarati
4e11af075f
- add support for "use-temporary-conn" much like back-ldap
...
- fix various connection creation/setup concurrency issues
- use shared connection when always idasserting (similar to ITS#4781)
- reduce the impact of schema mapping when not used (tnx to gprof)
- fix temporary/tainted connection leak in abnormal conditions
2006-12-17 23:52:23 +00:00
Pierangelo Masarati
c89d0db64f
fix deadlock in case of bind error; propagate error as appropriate
2006-12-02 17:09:20 +00:00
Pierangelo Masarati
8326ac21b1
add "report" to "onerr" modes: continue a search in case one target returns an error, and only propagate the error at the end
2006-11-23 23:50:36 +00:00
Pierangelo Masarati
14e1feed1f
fix leak when 'rebind-as-user' is set (and client searches without prior bind)
2006-11-18 18:02:46 +00:00
Pierangelo Masarati
efb04832bd
rework compare
...
fix several minor issues with using dangling pointers and uninitialized data
fix caching of privileged connections
fix issues with unresponsive target failures during search
2006-11-05 12:05:47 +00:00
Pierangelo Masarati
71bcd4a4b6
s/ldap_int_discard/ldap_pvt_discard/
2006-10-28 18:13:12 +00:00
Pierangelo Masarati
07abb0eb3a
fix concurrency issue when binding before a search; rework and cleanup data structures (remove unused members)
2006-10-28 16:20:59 +00:00
Pierangelo Masarati
6416d83372
add ldap_int_discard(); use it in proxies (ITS#4717)
2006-10-22 20:31:41 +00:00
Pierangelo Masarati
0aebe8af08
rework timeout strategy a little bit
2006-10-21 18:57:27 +00:00
Pierangelo Masarati
f449ee6500
cleanup and streamline response handling
2006-10-14 17:12:05 +00:00
Pierangelo Masarati
968da1cb14
add LDAP_OPT_DIAGNOSTIC_MESSAGE; replace deprecated option names
2006-10-14 17:04:17 +00:00
Pierangelo Masarati
b1a2be99c6
don't mix return codes (ITS#4711)
2006-10-14 09:26:22 +00:00
Pierangelo Masarati
f8d1a61866
more on clarification of special proxy identities and resilience to connection failure
2006-10-07 18:07:56 +00:00
Pierangelo Masarati
b769f44619
fix ITS#4686 (retry with idassert)
2006-09-26 15:12:07 +00:00
Pierangelo Masarati
7fd11ad679
minor cleanup
2006-09-17 16:44:40 +00:00
Pierangelo Masarati
8eb455e7b2
add sb_version to slap_bindconf;
...
rework slap_client_connect() and slap_discover_feature() accordingly
2006-09-11 00:52:43 +00:00
Pierangelo Masarati
0e13519191
ld may legitimately be NULL if another operation freed it because of a failure while binding
2006-09-09 17:01:28 +00:00
Pierangelo Masarati
84d6a04c91
improve timeout support (ITS#4157, ITS#4663)
2006-09-04 08:26:09 +00:00
Pierangelo Masarati
8129f7e2f2
fix arg format; better trace logging...
2006-09-03 11:14:37 +00:00
Pierangelo Masarati
906ff0d51a
don't abandon binds in progress; rather unbind (ITS#4663).
...
Better logging for tracing
2006-09-03 11:04:27 +00:00
Howard Chu
78172aa0cf
Entry/Attribute struct caching, to minimize malloc fragmentation
...
Note: this breaks LDAP_COMP_MATCH and SLAP_ZONE_MALLOC. But they
were probably broken already anyway.
2006-08-29 01:43:23 +00:00
Pierangelo Masarati
828d55be4d
invalidate idle connection if a candidate target does not respond for the duration of time limit...
2006-08-26 15:24:49 +00:00
Kurt Zeilenga
d3e288dffe
s/managedit/relax/
...
#unifdef -DSLAP_RELAX
2006-08-22 23:31:46 +00:00
Pierangelo Masarati
9c52a2c4ff
give slapd a chance to play callback cleanup handlers when a search operation is abandoned (ITS#4645)
2006-08-17 19:47:25 +00:00
Kurt Zeilenga
4ba9bc1c2d
Use LDAP_OTHER to indicate internal error
2006-08-12 21:46:29 +00:00
Pierangelo Masarati
fb11017d64
refine previous commit
2006-07-08 15:04:50 +00:00