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
Howard Chu
01c38dd6ea
ITS#4458 re-encode passwd request
2006-12-18 22:30:47 +00:00
Howard Chu
23423cd086
Fix callback handling
2006-12-18 00:27:38 +00:00
Howard Chu
ccf7b0fb04
Remove redundant search cleanup
2006-12-18 00:02:00 +00:00
Howard Chu
28793246e6
ITS#4638 restore params for Compare and Modify
2006-12-17 23:49:42 +00:00
Howard Chu
1e849ec14d
ITS#4638 restore original parameters on op completion
...
(this is preliminary, more work remains)
2006-12-17 22:57:45 +00:00
Pierangelo Masarati
298d439d59
add support for auditContext (schema differs a bit from <draft-chu-ldap-logschema>, expired)
2006-12-16 14:55:47 +00:00
Howard Chu
69c4495bc2
ITS#4768 more be_add fallout
2006-12-12 21:00:12 +00:00
Howard Chu
871201e0d6
Fix prev commit
2006-12-12 20:04:44 +00:00
Howard Chu
499c9369e1
ITS#4777 fix modlist delete
2006-12-12 19:39:28 +00:00
Howard Chu
77ed3423b9
ITS#4767 fix bdb_add / translucent interaction
2006-12-04 22:06:58 +00:00
Pierangelo Masarati
19dabd2fa8
complain if instantiated outside of a database definition
2006-12-02 10:42:42 +00:00
Howard Chu
b711426a99
Fix prev commit, reset DB pointer
2006-11-16 14:27:49 +00:00
Howard Chu
7cfa3ae34a
Use runq to defer creation of log root entry; allows the log DB to come
...
after the main DB in the configuration. Allows logging cn=config.
2006-11-16 14:12:09 +00:00
Howard Chu
48fce3d119
ITS#4742 cleanup config error reporting
2006-11-12 02:15:49 +00:00
Howard Chu
64a2dbf9d4
ITS#4741 fix error check from external password quality module
2006-11-09 04:06:37 +00:00
Howard Chu
d3dc069a62
ITS#4704 use an old CSN while purging log.
2006-11-07 02:12:29 +00:00
Pierangelo Masarati
c148b2381e
improve previous commit (ITS#4729)
2006-11-03 08:35:51 +00:00
Pierangelo Masarati
3a2277cdf8
fix dynlist dynamic build (ITS#4729)
2006-11-03 00:29:19 +00:00
Howard Chu
1b1a0ebf18
Tweak prev commit:
...
Preserve delete/replace indication from original request
2006-11-02 19:26:04 +00:00
Howard Chu
730d8e5bd3
ITS#4728 mod/Replace can have no values also
2006-11-02 18:57:55 +00:00
Pierangelo Masarati
051cbd3990
missing CVS header
2006-10-26 22:48:34 +00:00
Howard Chu
b009b1820e
ITS#4720 release csn mutex before checkpointing.
2006-10-26 15:34:40 +00:00
Pierangelo Masarati
eb29c7c37b
reword comment
2006-10-07 13:12:16 +00:00
Howard Chu
e9ecaa5d81
ITS#4692 entries without pwdChangedTime attribute have non-expiring pw
2006-10-03 09:25:54 +00:00
Howard Chu
393e6e5ec0
Tweak prev commit, avoid referencing syncop when resetting qtask
2006-09-21 10:12:42 +00:00
Howard Chu
c1fad2d603
ITS#4658 propagate errors from syncprov_sendresp; drop qtask on errors.
...
Note: need a way to close the connection too.
2006-09-21 09:42:40 +00:00
Pierangelo Masarati
2b242dee14
private database inherits monitoring from underlying one
2006-09-15 00:23:14 +00:00
Pierangelo Masarati
4add034d5d
destroy exactly what needs to
2006-09-14 23:53:23 +00:00
Pierangelo Masarati
6fd9090a0d
fix one-time leak
2006-09-14 22:50:07 +00:00
Howard Chu
f1457a8ce8
Additional fix for ITS#4673
2006-09-14 22:38:45 +00:00
Howard Chu
7fd2e65386
Fix invalid attributes in translucent_modify
2006-09-14 21:11:26 +00:00
Howard Chu
3f4e196beb
Portability cleanups
2006-09-14 07:29:46 +00:00
Howard Chu
8e928dbb0b
Use register_at / register_oc
2006-09-13 13:38:24 +00:00
Howard Chu
e04275ca04
Use register_at / register_oc
2006-09-13 13:26:56 +00:00
Pierangelo Masarati
e1b83c881c
better handling of randomness
2006-09-04 08:40:40 +00:00
Pierangelo Masarati
3b3070d223
cleanup handling of sleeps
2006-09-04 08:36:16 +00:00
Pierangelo Masarati
d95b88da21
plug slapo-ppolicy related leaks (ITS#4665)
2006-09-03 10:53:38 +00:00
Pierangelo Masarati
7c64c28ad5
plug leaks in search filter (and cleanup code; ITS#4664)
2006-09-03 10:45:07 +00:00
Pierangelo Masarati
f797bc49a7
minor cleanup
2006-08-31 17:34:01 +00:00
Pierangelo Masarati
c57782ad66
fix pre-allocated entry/attribute handling
2006-08-29 16:07:39 +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
5d3121902f
Add single-password constraint; NOTE from ppolicy.c:
...
/* FIXME: there's no easy way to ensure
* that add does not cause multiple
* userPassword values; one way (that
* would be consistent with the single
* password constraint) would be to turn
* add into replace); another would be
* to disallow add.
*
* Let's check at least that a single value
* is being added
*/
2006-08-28 12:44:39 +00:00
Kurt Zeilenga
d3e288dffe
s/managedit/relax/
...
#unifdef -DSLAP_RELAX
2006-08-22 23:31:46 +00:00
Howard Chu
ae5c3db555
More config leaks
2006-08-21 04:25:54 +00:00
Howard Chu
282c00c349
Plug config leak
2006-08-21 04:11:29 +00:00
Howard Chu
ad1f0a3239
Fix null pointer reference (coverity scan) and freed pointer reference
2006-08-18 01:37:21 +00:00
Howard Chu
ccd1273cfe
TS#4622 deletes in psearch didn't always propagate
2006-08-15 21:41:14 +00:00
Kurt Zeilenga
d9720d50dd
Some LDAP_DEVEL cleanup
2006-08-15 19:36:54 +00:00
Howard Chu
44d3972dd7
ITS#4622 if any present list was sent, must send refreshPresent
2006-08-15 12:37:59 +00:00
Howard Chu
55aa8af4be
ITS#4622 make sure queued psearch responses get played after refresh
...
phase completes. Ignore empty sessionlog
2006-08-15 09:28:25 +00:00
Howard Chu
789c76b4ce
Delete curcsn arg to slap_get_commit_csn, redundant with op->o_csn
2006-08-15 09:25:42 +00:00
Howard Chu
4629002ec4
Additional shutdown check
2006-08-15 00:04:29 +00:00
Howard Chu
651bc9e40e
Don't purge log entries if a shutdown was requested
2006-08-15 00:02:57 +00:00
Howard Chu
11a0ea514a
Tone down default ppolicy msg
2006-08-07 23:33:03 +00:00
Howard Chu
9f75c6a43d
ITS#4634 always init pp->ad
2006-08-07 22:40:51 +00:00
Howard Chu
b915969d29
ITS#4589 slap_get_commit_csn occasionally returns a curcsn that points
...
to already-freed memory. That bug still needs to be tracked down. This
patch deletes curcsn and just uses op->o_csn, which did not exist when
this code was originally written.
2006-07-28 02:40:38 +00:00
Howard Chu
5757065736
ITS#4622
...
syncrepl: don't save contextCSN on incoming context entry
syncprov: delete contextCSN on checkpoint if ctxcsn is empty
2006-07-27 10:44:22 +00:00
Howard Chu
00addd5d68
ITS#4613 - fail to start if lastmod is off
2006-07-24 00:32:27 +00:00
Howard Chu
6d601637c7
Resurrect special refint modifiersName
2006-07-14 22:19:00 +00:00
Howard Chu
89697d3a93
Each refint op needs a unique timestamp, must perform searches as rootdn
2006-07-14 01:55:57 +00:00
Howard Chu
d145f84e9f
s/HPcfgOv/OLcfgOv/
2006-07-12 07:05:09 +00:00
Howard Chu
2e241a457c
ITS#4609, dynamic config support from Neil Dunbar
2006-07-12 02:14:22 +00:00
Howard Chu
23a6aa373b
ITS#4596 control can be critical
2006-07-02 02:50:13 +00:00
Howard Chu
a2dd092291
Fix rootDN check
2006-06-26 13:00:29 +00:00
Howard Chu
87d9353b12
Dynamic config
2006-06-24 01:35:35 +00:00
Howard Chu
a9b0a78248
ITS#4595 additional fix - don't allow age/cycle times of zero.
2006-06-17 13:09:14 +00:00
Howard Chu
77dce50110
Omit logpurge attr if no purge time was configured
2006-06-17 01:28:50 +00:00
Howard Chu
4976b9436d
Require rootDN to be present on logDB
2006-06-15 00:02:35 +00:00
Pierangelo Masarati
103392b9a3
fix scheme recognition (ITS#4575)
2006-06-13 19:45:11 +00:00
Pierangelo Masarati
439cd9be74
clean orm_modlist before each mod
2006-06-12 22:56:30 +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
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
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
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
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
Howard Chu
6f08468e2f
Fix concurrency issues
2006-05-25 05:08:04 +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
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
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
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
c1c8c05c1b
first round at adding passwd exop support to slapo-rwm (ITS#4458)
2006-05-12 15:38:58 +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
0a43acc732
coverity cleanup
2006-05-09 10:41:05 +00:00
Howard Chu
a30fa88ad3
Apply logoldattr / reqOld to modRDN requests as well
2006-05-03 21:29:56 +00:00
Howard Chu
608c85a9f0
ITS#4423, fix sessionlog lower bound in playlog
2006-05-02 05:08:59 +00:00
Pierangelo Masarati
f9f8623f6e
fix automated static build
2006-05-01 14:53:19 +00:00
Howard Chu
d8595b7c6e
ITS#4463 add constraint overlay
2006-04-29 10:03:36 +00:00
Howard Chu
f5558876c0
Log a comment with realdn if different from authzDN
2006-04-28 23:37:35 +00:00
Howard Chu
e1ec64aaee
rmutex_lock etc.: caller supplies thread id
2006-04-28 21:39:38 +00:00
Howard Chu
15ba27d5c1
Add logoldattr keyword for attributes that should always have their old
...
value logged in a Modify request (that matches the logold filter)
2006-04-28 20:40:43 +00:00
Howard Chu
9207979a86
Use recursive mutex to avoid deadlocks
2006-04-28 20:13:34 +00:00
Howard Chu
590bc6a7fa
More logging for ITS#4423
2006-04-28 03:06:47 +00:00
Howard Chu
32712f4c26
Fix prev commit
2006-04-27 22:47:20 +00:00
Hallvard Furuseth
a242808f7e
cleanup (unused variable)
2006-04-27 16:05:41 +00:00
Howard Chu
2cd781eae3
Cleanup close
2006-04-27 02:29:13 +00:00
Howard Chu
8b06446b10
back-config support, cleanup init/destroy
2006-04-27 02:28:07 +00:00
Howard Chu
7cd5dddd4c
back-config support. from Matthew Backes @ Symas.com and
...
Karsten Kuenne @ rentec.com (ITS#4506)
2006-04-27 02:12:34 +00:00
Howard Chu
d62fd3fd5a
Cleanup prev commit
2006-04-27 00:27:43 +00:00
Howard Chu
6af9770996
Tweak mutexes
2006-04-27 00:19:32 +00:00