Kurt Zeilenga
8d74b517cd
Remove lint
2001-11-07 01:24:32 +00:00
Kurt Zeilenga
82fad7d0c8
First stable an implementing latest namedref specification.
...
Includes rewriting of URLs where the DN of the referral object
and the DN of the ref attribute attribute are not the same.
Also, always returns explicit DN and scope.
Currently, back-ldbm only. Needs to be ported to back-bdb.
2001-10-26 02:05:14 +00:00
Kurt Zeilenga
a6acc0ff8c
Use allids instead of candidiate negation for !. (ITS#1405)
...
Use presence indices in support of >= and <=.
(Note presence indices could be used to support = and substr in
like fashion where eq and substr indices are not maintained, but
I'll save that for another day.)
2001-10-24 21:26:32 +00:00
Julio Sánchez Fernández
aee598dba7
Remove bogus refusal to index ;binary attributes. Notice that I left
...
in a check. This way you have to say:
index userCertificate eq
If we remove it, we could say:
index userCertificate;binary eq
I have not tried the latter.
2001-10-23 13:42:37 +00:00
Julio Sánchez Fernández
bf5ea315b6
Compares get values in the matching rule syntax (see RFC2251, 4.1.7),
...
so we need to tell value_find about this.
2001-10-23 09:48:18 +00:00
Howard Chu
c981026a6c
Missed a test in AttributeDescription commit
2001-10-22 14:55:42 +00:00
Howard Chu
0e16f6acf9
Moved AttributeDescription caching into main code:
...
Changed AttributeDescription.{ad_cname,ad_lang} to struct berval everywhere
Deleted ad_free() everywhere
Added ad_mutex to init.c
The AttributeDescriptions are in a linked list hanging off of the
corresponding AttributeType.
2001-10-22 13:23:05 +00:00
Mark Adamson
290137a54f
Serialize access to idl insert/delete key routines (ITS 1359)
2001-10-11 18:12:53 +00:00
Kurt Zeilenga
b6a3dad8f0
Delete attribute indices
2001-10-09 19:41:48 +00:00
Kurt Zeilenga
fdc0dd7d6a
Fix some NEW_LOGGING errors
2001-10-05 21:49:04 +00:00
Kurt Zeilenga
3120d37951
More changes to let BDB build without LDBM.
2001-10-04 06:34:03 +00:00
Pierangelo Masarati
6e4a050657
fix memory leak in case of ACL failure (no write permission to rdn attributes)
2001-10-02 10:36:35 +00:00
Howard Chu
2124673988
Tweaked ID_BLOCKs to record NIDs for INDIRECT blocks as well as directs.
...
Use high bit of NMAX to indicate an INDIRECT. Changes are behind
#ifdef USE_INDIRECT_NIDS
2001-09-22 06:52:32 +00:00
Howard Chu
58f4ffca59
Fix another SEGV from previous patch.
2001-09-22 05:35:52 +00:00
Howard Chu
00a28378f8
Fix previous idl_find patch. Cannot test <=0 with unsigned ints, duh...
2001-09-22 04:10:03 +00:00
Howard Chu
b52795c283
Add idl_find binary search routine, used by idl_insert and idl_split_block
...
instead of linear search.
2001-09-21 20:30:27 +00:00
Kurt Zeilenga
2d5a817288
Remove lint
2001-09-16 22:00:53 +00:00
Kurt Zeilenga
a8b7e93ef4
Add referral scope checks (ITS#1289) from dshriver@sharemedia.com
2001-09-08 02:37:02 +00:00
Kurt Zeilenga
cd51428dbe
Add IDL debugging code from SuSE.
2001-09-07 21:58:31 +00:00
Kurt Zeilenga
ef7b181f8b
Open databases using WRCREAT not READER.
2001-09-01 05:00:27 +00:00
Pierangelo Masarati
8ee6168916
fix a reference to volative memory in back-ldbm/passwd.c that caused garbage messages to be returned to ldappasswd
2001-08-04 15:46:08 +00:00
Pierangelo Masarati
8471ef7ed0
add global, per backend and per op_ndn time/size soft, hard and to-be-checked limits (exploited by back-ldbm); see slapd.conf(5) for details
2001-08-01 10:09:04 +00:00
Pierangelo Masarati
419a5ae8c9
fix typo; try to delete dn2id in case of late failure
2001-07-31 10:54:39 +00:00
Pierangelo Masarati
d8cb33ebe8
added acl check for added/removed rdn attrs
2001-07-31 10:02:19 +00:00
Pierangelo Masarati
4362654eb6
fixes another assert in case of subtle error (schema failure while applying rdn changes)
2001-07-30 20:12:34 +00:00
Pierangelo Masarati
8edccd2554
fixes ITS#1261 (abort on modrdn with new dn already existing)
2001-07-30 14:54:02 +00:00
Pierangelo Masarati
c78416fdbd
exploits regex-based per op_ndn time/size limits
2001-07-28 11:25:00 +00:00
Kurt Zeilenga
3a2f9e84ba
Fix typo
2001-07-22 03:25:45 +00:00
Kurt Zeilenga
9207e19978
unifdef -DMULTIATTRVAL_RDN
2001-07-21 21:21:32 +00:00
Pierangelo Masarati
9ee9f1e0e1
Reworked again the caching in case of failure.
...
Now operations that set the status of an entry to CREATING (add.c, modrdn.c)
need to set it to COMMIT, by calling cache_entry_commit, before returning
the entry itself, otherwise the entry is removed from the cache
and its private data is freed.
Should fix crashes due to add failures as in ITS#1245
2001-07-21 10:53:06 +00:00
Pierangelo Masarati
aec4430d59
Reworked API of nextid; e_private gets destroyed separately from the entry in case add fails (should fix ITS#1245)
2001-07-20 09:50:28 +00:00
Randy Kunkee
82f3004a16
Prevent ldbm_sync from being called by ldbm_cache_close when the new
...
dbsync configuration is in use, which was preventing the performance
gains of this mode.
2001-07-16 23:21:36 +00:00
Randy Kunkee
f06021e335
Fix ITS#1239:
...
slapadd core-dumps when destroying db's env (Sleepycat 3.2.9) (ITS#1239)
Only call ldbm_shutdown_env if the database has been opened, ie. when
li->li_dbenv != NULL. Would appear any time a shutdown occurred and
not all LDBM databases were opened.
2001-07-16 22:16:24 +00:00
Kurt Zeilenga
ca43453b95
Quick and dirty hack to add password modify replication.
2001-07-14 01:26:02 +00:00
Pierangelo Masarati
b0a60a5d3d
added function cache_find_entry_ndn2id that avoids an unnecessary call to dn_normalize; now dn2id calls this function, while the original function has been left as a wrapper
2001-07-11 08:41:42 +00:00
Pierangelo Masarati
27e5c484e6
reworked rdn_attrs to use ldap_explode_rdn; maybe we should remove escapes "\" from parts directly in ldap_explode_rdn
2001-07-10 18:19:22 +00:00
Gary Williams
453e69d636
fix bad debug message
2001-07-10 16:42:26 +00:00
Pierangelo Masarati
2baa2f0f24
If add to "" is allowed, also modrdn should
2001-07-07 15:40:25 +00:00
Pierangelo Masarati
04c29fb3ea
dn2idl API changed for consistency with other dn2id* funcs
2001-07-07 14:49:42 +00:00
Pierangelo Masarati
da9ea54700
fixed test on "" (empty) parent dn
2001-07-06 14:40:27 +00:00
Pierangelo Masarati
f4acf94c83
honors '+' rdn separator in adding/deleting attributes; needs -DMULTIATTRVAL_RDN. Please test
2001-07-06 12:24:34 +00:00
Pierangelo Masarati
cd74b62fd2
rdn check to prevent illegal rdns in modrdn (copied from dn_rdn) fixes ITS#1102
2001-07-05 08:40:40 +00:00
Pierangelo Masarati
5ad8efbb47
Used API signature from back-bdb; compiles and passes make test
2001-07-03 11:23:18 +00:00
Pierangelo Masarati
fdd45144ca
separate ID return value form return status in dn2id (back-ldbm/dn2id.c)
2001-07-02 19:42:27 +00:00
Randy Kunkee
a9097044ea
Remove global_backendsyncfreq code (code has been pushed down into back-ldbm).
2001-06-28 18:02:46 +00:00
Randy Kunkee
6a6fd6059d
Change to _TRACE instead of _ANY for sync daemon internals.
2001-06-28 09:27:01 +00:00
Randy Kunkee
0ef87764d7
Move backend_syncfreq code down into back-ldbm. Creates new configuration
...
for LDBM backends called "dbsync", which takes minimum of one argument up
to 3 args which are sync frequency, # of delays, and delay periods. See
man page update for "dbsync" configuration for more details.
2001-06-28 09:20:33 +00:00
Kurt Zeilenga
6dd25ba1e6
Plug idl leakage
2001-06-23 05:05:08 +00:00
Kurt Zeilenga
1229cfcc3f
Backout directory config option
2001-06-22 21:00:24 +00:00
Randy Kunkee
d492880870
Add sync_daemon to daemon.c, enabled by global configuration
...
backendsyncfreq <seconds>. Setting this automatically enables
dbnosync (because the synchronizer takes care of it).
2001-06-22 08:38:58 +00:00