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
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
Pierangelo Masarati
d92e8ad1f7
add helper for internal searchs for objectClass=*
2007-09-15 17:38:53 +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
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
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
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
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
f89f552d2a
fix previous commit
2007-09-01 15:47:23 +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
Ralf Haferkamp
cd103f9010
Additional fix for ITS#4991. _cleanup callback was always executed when
...
needed.
2007-08-29 14:29:37 +00:00
Pierangelo Masarati
7ceaad7eb2
plug yet another leak
2007-08-29 00:27:47 +00:00
Pierangelo Masarati
5ed5bc5803
first round of CSN normalization consequences
2007-08-28 18:38:27 +00:00
Howard Chu
4ccb430c8c
Convert collect to dynamic config. Even though it's only a demo...
2007-08-28 09:19:07 +00:00
Pierangelo Masarati
e33abd467c
needs work: memberOf should not be replicated
2007-08-25 16:02:43 +00:00
Howard Chu
da5c3285d2
Fix config delete
2007-08-24 23:56:55 +00:00
Howard Chu
ecf59634e9
Fix prev commit
2007-08-24 23:28:43 +00:00
Pierangelo Masarati
6f9519543e
- fix logging of controls;
...
- add support for Control syntax;
- use Control syntax and objectIdentifierFirstComponentMatch
with reqControls/reqRespControls
2007-08-24 23:13:41 +00:00
Pierangelo Masarati
511a71067f
add logging of request/response controls
2007-08-24 12:50:01 +00:00
Pierangelo Masarati
ee8431b22d
add memberOf overlay
2007-08-24 02:46:55 +00:00
Howard Chu
2d4f198662
Add dgIdentity support
2007-08-23 23:33:37 +00:00
Howard Chu
43463852f6
Add cn=config support
2007-08-23 01:40:09 +00:00
Pierangelo Masarati
7c9f63a60d
fix subtree rename integrity; curiously enough, tes023 only failed on 64 bit arch; probably because we'd need to double the stack of the slab on 64 bit archs...
2007-08-22 17:46:55 +00:00
Pierangelo Masarati
b25eab8a7b
set authorizing backend
2007-08-21 11:37:33 +00:00
Pierangelo Masarati
2c13f86cec
support subtree rename (ITS#5097)
2007-08-20 19:06:18 +00:00
Pierangelo Masarati
8e66538dc1
cleanup previous commit; make sure what's queryid and what's entryUUID
2007-08-17 16:37:29 +00:00
Pierangelo Masarati
970471d49c
fix queryDelete by queryID
2007-08-17 16:24:27 +00:00
Pierangelo Masarati
8be1b48263
set the number of cached entries after reload...
2007-08-17 15:46:44 +00:00
Pierangelo Masarati
ca1aed557b
make lutil_uuidstr_from_normalized() return the length of the string
2007-08-17 15:08:47 +00:00
Pierangelo Masarati
0c90b9ece2
revert previous commit: let queryId be an octet string, and modify queryDelete parsing accordingly
2007-08-17 15:04:28 +00:00
Pierangelo Masarati
86c67bd491
use UUID syntax for queryId
2007-08-17 14:43:50 +00:00
Pierangelo Masarati
1b0c4f5af5
fix UUID parsing (it's in normalized form)
2007-08-17 12:43:16 +00:00
Pierangelo Masarati
2245aff52c
further fix specification
2007-08-17 11:36:34 +00:00
Pierangelo Masarati
a2badc7c3c
cleanup error messages; complete privateDB control and queryDelete exop specifications
2007-08-17 11:25:35 +00:00
Pierangelo Masarati
7c0a7571fb
add:
...
- support for the privateDB control, which allows regular LDAP operations
to address the private database instead of the proxied one.
This is essentially intended for cache monitoring and maintenance
- support for the queryDelete extended operation, which allows to delete
from the cache database either a cached query, specified by queryId,
or all queries related to a specific cached entry, specified by entryDN
2007-08-17 10:26:56 +00:00
Pierangelo Masarati
68ab6c87bd
rework previous commit: consistently remove queries, better memory handling and more
2007-08-17 09:57:46 +00:00
Pierangelo Masarati
995359548b
more consistent parsing checks
2007-08-17 09:53:47 +00:00
Howard Chu
a16eea9d8e
Paranoia for prev commit
2007-08-16 20:03:27 +00:00
Howard Chu
8133e7005e
Fix double-free closing multiple ppolicy overlay instances
2007-08-16 19:59:02 +00:00
Hallvard Furuseth
6a02dd9d92
Fix typo in previous commit: spurious space in UUID syntax OID.
...
Also make remove_query_and_data() return void (it returned nothing) and
remove an unused variable.
2007-08-16 13:44:15 +00:00
Pierangelo Masarati
9c4d147747
fix error checking when parsing UUID (detected by Coverity); added check/prettification of UUID, just in case...
2007-08-16 11:52:10 +00:00
Pierangelo Masarati
2f5bfba296
let req_modify_s and req_modrdn_s have a common portion to interoperate within slap_mods_opattrs() (ITS#5093)
2007-08-16 09:48:53 +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
f4844889fd
s/orb_tmp_mech/orb_mech/
2007-08-16 09:29:45 +00:00
Pierangelo Masarati
5ec09e2f0a
merge attributes as required after mapping; avoid objectClass duplicates (ITS#5091)
2007-08-14 11:46:29 +00:00
Pierangelo Masarati
c114cb8eb7
provide an interface to remove a set of entries from the cache
2007-08-13 16:50:18 +00:00
Pierangelo Masarati
4a249bbe0d
plug leak
2007-08-13 16:29:04 +00:00
Pierangelo Masarati
ccff813df0
stop pcache task at close
2007-08-13 16:28:33 +00:00
Pierangelo Masarati
32c2dee3f8
fix hot startup commit (read of uninitialized memory; ITS#5081)
2007-08-13 16:27:56 +00:00
Pierangelo Masarati
d354844cf9
fix previous commit (crash if no rewrite but just mapping is present)
2007-08-11 09:28:33 +00:00
Gavin Henry
60cde2f3c3
ITS#5085
2007-08-10 16:55:50 +00:00
Pierangelo Masarati
ae9776a580
fixed few leaks in previous commit (ITS#5081)
2007-08-09 16:33:50 +00:00
Pierangelo Masarati
da44ccbf18
experimental code for hot restart of proxy cache (ITS#5081)
2007-08-09 16:15:57 +00:00
Pierangelo Masarati
5f386d3e31
fix previous commit
2007-08-06 12:48:35 +00:00
Pierangelo Masarati
add25c2f45
honor 1.1, * and + (ITS#5074 and more)
2007-08-06 12:31:30 +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
Howard Chu
4961b95508
Revert 1.101, not appropriate
2007-07-27 09:17:56 +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
Hallvard Furuseth
767293dd3a
Cosmetic change: spaces->tab in last patch. Thus readable with tab-width=4.
2007-07-23 21:50:26 +00:00
Howard Chu
b0113c38cd
ITS#5040 don't touch modifyTimestamp and other opattrs when updating
...
ppolicy opattrs
2007-07-22 16:42:01 +00:00
Ralf Haferkamp
5b897eef52
Fixed return value of _cleanup function
2007-07-20 17:13:22 +00:00
Howard Chu
b7d38c15ff
ITS#5048 fully initialize fc_limits
2007-07-20 15:16:36 +00:00
Hallvard Furuseth
9bd4a298ef
ITS#5049: Initialize conn in syncprov_db_close() before connection_fake_init().
2007-07-18 21:02:14 +00:00
Pierangelo Masarati
3aefa9434d
major improvement: baseline support for back-config; minor improvement: trim code to handle absence of librewrite (enable forced when slapo-rwm is configured...)
2007-07-14 16:18:44 +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
ca7ad7f2e3
fix searchFilter double free (ITS#5043)
2007-07-12 22:22:31 +00:00
Ralf Haferkamp
19b4aba5a1
added config option "normalize-mapped-attrs" to enable normalization of
...
undefined mapped attribute types.
2007-07-09 16:22:54 +00:00
Howard Chu
087a662f9e
Better fix for rev 1.97
2007-06-14 14:51:15 +00:00
Howard Chu
8cafa0b117
ITS#4970 ignore pwdMinAge if pwdReset is TRUE
2007-06-08 09:23:49 +00:00
Howard Chu
9227293e8d
ITS#4977 check for cookie parse failure
2007-06-08 09:05:35 +00:00
Pierangelo Masarati
4148c4e3f9
make searches expand all matching sets of group/url[/member] configurations; relax configuration test as per ITS#4989
2007-06-02 11:27:43 +00:00
Ralf Haferkamp
11e8c186bf
ITS#4991 restore save_attrs when a request is finished to let do_search()
...
cleanup correctly
2007-05-31 15:49:45 +00:00
Ralf Haferkamp
7203276785
ITS#4991 restore mapped AttributeNames before processing a response
2007-05-31 15:46:46 +00:00
Howard Chu
6186117f97
ITS#4966 valsort_modify: ignore Delete modops with no values
2007-05-25 00:58:59 +00:00
Pierangelo Masarati
74ca4680db
more ITS#4973 initialization
2007-05-19 14:12:24 +00:00
Hallvard Furuseth
93fbb87545
Give OperationBuffer normal struct members instead of using
...
LBER_ALIGNED_BUFFER(OPERATION_BUFFER_SIZE), as discussed in ITS#4078.
Add a corresponding SyncOperationBuffer in overlays/syncprov.c.
2007-05-18 23:54:26 +00:00
Howard Chu
093f52e44d
ITS#4961 disable schema checking on contextCSN update
2007-05-14 21:25:48 +00:00
Hallvard Furuseth
7720844624
Reapply part of rev 1.2 warning cleanup, it was lost in next revision
2007-05-13 22:32:33 +00:00
Hallvard Furuseth
5a6362c453
assert(pointer) -> assert(pointer != NULL)
2007-05-09 19:10:36 +00:00
Hallvard Furuseth
bbc719ca56
ITS#4948: '#if <undefined macro>' -> '#ifdef' warning cleanup
2007-05-09 18:17:10 +00:00
Ralf Haferkamp
f8c94e3155
fix comparison with string literal
2007-05-07 14:55:45 +00:00
Kurt Zeilenga
f810e6ed41
Distinguish absent control value from empty control value.
2007-04-20 22:32:58 +00:00
Howard Chu
bfa0d15834
Fix prev commit, filter construction with URI filters
2007-04-10 02:38:54 +00:00
Howard Chu
a2405e0a7e
Axe slurpd / replog support
2007-04-06 00:21:02 +00:00
Hallvard Furuseth
4667f18253
Do not end a potentially last line of a Makefile statement with '\'.
2007-03-26 22:16:45 +00:00
Pierangelo Masarati
18fc3548cd
fix test in case of bailout (ITS#4891)
2007-03-22 22:30:53 +00:00
Howard Chu
d9958cbdbe
Enhanced unique configuration
2007-03-22 08:22:53 +00:00
Pierangelo Masarati
639d678592
cleanup struct declarations
2007-03-20 01:07:10 +00:00
Pierangelo Masarati
93f338eb79
cleanup
2007-03-19 15:50:51 +00:00
Pierangelo Masarati
98fe6a81a0
handle r_dn == r_ndn
2007-03-19 15:44:58 +00:00
Pierangelo Masarati
5d00861860
Solaris doesn't like NULL pointers in printf, which now can occur since IA5string allows the empty string
2007-02-26 23:57:34 +00:00
Pierangelo Masarati
34fde82589
fix in-directory retcode lookup
2007-02-21 14:17:25 +00:00
Howard Chu
06212e9de9
Plug leaks
2007-02-16 02:22:24 +00:00
Howard Chu
e28627f1e2
Added "slapd" rewrite map handler, connection_fake_init2 to use existing
...
tmpmemctx without reinitializing
2007-02-14 08:51:47 +00:00
Howard Chu
f649d8a29c
Cleanup si_ctxcsn and si_sids in db_destroy
2007-02-13 13:40:56 +00:00
Howard Chu
52aabd2d21
Coverity deadcode
2007-02-13 11:21:27 +00:00
Howard Chu
3eb81978f3
Coverity leak
2007-02-13 11:10:36 +00:00
Pierangelo Masarati
a904cc015c
fix crash related to ITS#4839; other issues seem to presist
2007-02-10 10:55:05 +00:00
Howard Chu
9d86bf253f
Improve prev commit
2007-02-07 02:49:40 +00:00
Howard Chu
3fbcfa797e
Re-fix ITS#4720, use rwlock
2007-02-07 01:08:54 +00:00
Howard Chu
3f20aa245f
Partially revert prev commit, delete unused parameter, fix psearch response
2007-02-06 05:58:01 +00:00
Howard Chu
9467269cef
ITS#4623, entry_get has to pass thru glue layer too
2007-02-06 04:19:56 +00:00
Howard Chu
448f584fe5
Fix typo
2007-02-06 01:18:17 +00:00
Howard Chu
21e4eb3dcc
Fix prev commit - cannot shortcut initial sync
2007-02-05 23:54:07 +00:00
Howard Chu
250cbd286a
Optimization: send sid in cookie to avoid getting our changes sent
...
back to us.
2007-02-05 23:10:22 +00:00
Howard Chu
55b29bedf8
Fix prev commit, don't generate a new ctxcsn if we're a consumer with
...
an empty DB
2007-02-05 09:19:46 +00:00
Howard Chu
fffaea79eb
Preliminary multi-context support for syncrepl. Passes all single-master
...
tests, needs multi-master testing.
2007-02-05 04:50:07 +00:00
Pierangelo Masarati
60f48c1932
fix NULL attr value in accesslog (second bit of ITS#4821; might be made cleaner...)
2007-01-27 18:03:30 +00:00
Howard Chu
8d03970944
Fix debug args
2007-01-25 11:56:49 +00:00
Howard Chu
35e0956c26
Log the error code too
2007-01-25 04:10:57 +00:00
Howard Chu
7eeeaaf06d
ITS#4810 log a message if be_entry_get doesn't return the entry we want
2007-01-25 04:10:18 +00:00
Howard Chu
1ce42136fb
ITS#4813 don't limit the presence list to the current snapshot. add
...
some debug msgs for the sessionlog list.
2007-01-25 02:06:33 +00:00
Howard Chu
d84d5e98fb
ITS#4809 add reqMod attribute to modrdn records so that operational
...
attributes may be propagated. use them in delta-sync.
2007-01-24 09:10:37 +00:00
Howard Chu
67b08ebe77
Don't use ldap_pvt_thread_pool_context_reset(), it interferes with
...
dynamic adds.
2007-01-21 13:02:05 +00:00
Pierangelo Masarati
7701c82b68
fix ITS#4802
2007-01-17 22:22:00 +00:00
Pierangelo Masarati
4b9f4c688a
allow to specify the required access privileges in internal operations (ITS#4806)
2007-01-16 22:13:44 +00:00
Pierangelo Masarati
270dfe4db8
free entry in a cleaner manner (ITS#4801?)
2007-01-11 22:13:54 +00:00
Pierangelo Masarati
aba0eacaee
don't list (other) structural classes
2007-01-11 20:57:43 +00:00
Hallvard Furuseth
d16754c81b
Delete unused variables.
2007-01-11 12:04:22 +00:00
Hallvard Furuseth
a8eacbb355
assert expects int. (int)<nonnull ptr> can be 0. Use assert(arg!=NULL).
2007-01-11 12:03:20 +00:00
Pierangelo Masarati
b0f06da400
improve disconnect handling
2007-01-05 16:18:42 +00:00
Pierangelo Masarati
c56564e2b5
disconnect without notice
2007-01-04 20:17:53 +00:00
Pierangelo Masarati
963eaf63b6
return unsolicited responses
2007-01-04 19:58:29 +00:00
Pierangelo Masarati
bce4063a17
shortcut schema mapping if not configured
2007-01-03 21:35:18 +00:00
Howard Chu
f206f3ddc0
Just return API errors to the frontend, don't attempt to send them.
2007-01-03 20:21:07 +00:00
Kurt Zeilenga
da6d9eb046
happy new year
2007-01-02 20:00:42 +00:00
Pierangelo Masarati
0544badf19
move slapo-denyop to contrib/slapd-modules/debyop/
2006-12-28 16:30:53 +00:00
Pierangelo Masarati
26c2c98196
move slapo-lastmod to contrib/slapd-modules/lastlog/ (ITS#4701)
2006-12-28 16:23:57 +00:00
Howard Chu
90b2976413
ITS#3707 changed SLAPD_FILTER_COMPUTED
2006-12-26 00:00:48 +00:00
Howard Chu
79885438e7
Revert prev commit, need a different solution
2006-12-24 06:26:01 +00:00
Howard Chu
6020a6d81d
ITS#4337 implement modrdn for back-config
2006-12-24 00:56:37 +00:00
Howard Chu
b6d860f556
ITS#4788 don't return auditContext attr on syncrepl searches
2006-12-23 22:10:34 +00:00
Howard Chu
7d9361e498
Fix: don't modify original filter in filter_map_rewrite
2006-12-19 19:47:01 +00:00
Howard Chu
8c90df8314
Fix cleanup for extended ops
2006-12-19 01:14:35 +00:00