Commit Graph

20330 Commits

Author SHA1 Message Date
Tim Strobell (Contractor)
2c2bb2e7ae ITS#7285 Mozilla NSS: default cipher suite always selected 2012-06-05 03:43:15 -07:00
Quanah Gibson-Mount
3f46f2e0bc Merge remote branch 'origin/mdb.master' 2012-06-04 19:41:58 -07:00
Howard Chu
a334257800 Tweak prev commit, use first unused slot 2012-06-02 05:26:31 -07:00
Howard Chu
4cabb24b83 Fix mdb_open, re-use closed dbi slots 2012-06-02 05:24:47 -07:00
Hrvoje
243a2316d3 ITS#7222 fix bdb/hdb cache hang under high load 2012-05-31 10:48:38 -07:00
SATOH Fumiyasu
4272551a01 ITS#7284 slappasswd: Add support loading a dynamically loadable module
Add "-o module-path=<pathspec>" and "-o module-load=<filename>"
options to load a dynamically loadable password hash module
(e.g., slapd-sha2).
2012-05-31 02:46:04 -07:00
W. Trevor King
5cf4fbc74d ITS#7271 Don't clobber SASL_NOCANON in clients/tools/common.c 2012-05-30 09:39:54 -07:00
Jan Vcelak
df1d118de8 ITS#7276 MozNSS: allow CA certdb together with PEM CA bundle file
Prior to this patch, if TLS_CACERTDIR was set to Mozilla NSS certificate
database and TLS_CACERT was set to a PEM bundle file with CA
certificates, the PEM file content was not loaded.

With this patch and the same settings, OpenLDAP can verify certificates
which are signed by CAs stored both in certdb and PEM bundle file.
2012-05-30 06:18:50 -07:00
Frederik Deweerdt
8bb9e88d5f ITS#7270 Protect accesses to ldap_int_hostname with a mutex.
Not protecting the accesses to ldap_int_hostname could lead to a double
free.
2012-05-30 05:49:53 -07:00
Howard Chu
d0296e6e33 ITS#7279 init rc in mdb_idl_insert_keys 2012-05-30 05:09:31 -07:00
Howard Chu
68ffed7130 Additional fix for threaded slapadd
If slapadd'ing a config DB and tool-threads is set in the config LDIF,
the checks for slap_tool_thread_max will be invalid.
2012-05-29 19:49:58 -07:00
Quanah Gibson-Mount
74e8e39840 Merge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap 2012-05-29 16:09:31 -07:00
Quanah Gibson-Mount
d356c16de2 ITS7282 Fix peername.regex example 2012-05-29 16:07:35 -07:00
SATOH Fumiyasu
899f3c994f ITS#7278 SHA-2: Add support salted SHA-2 password hashes
Support {SSHA256}, {SSHA384} and {SSHA512} hash schemes
2012-05-29 16:05:56 -07:00
SATOH Fumiyasu
3bc7f6d27d ITS#7269 SHA2: Avoid "static char real_hash[]" to support multithread
Remove sha*_hex_hash() and replace chk_sha*() with
libraries/liblutil/passwd.c:chk_sha1() implementation to
avoid a race condition.
2012-05-29 16:02:16 -07:00
Howard Chu
22bf5188a9 Merge remote-tracking branch 'origin/mdb.master' 2012-05-09 12:13:05 -07:00
Howard Chu
eeec509150 ITS#7266 fix rebalance for LEAF2 pages 2012-05-09 11:24:25 -07:00
Howard Chu
ff1839ebe6 Merge remote-tracking branch 'origin/mdb.master' 2012-05-08 22:19:05 -07:00
Howard Chu
a540597dd6 More freelist tweaks, avoid referencing freed page 2012-05-08 22:17:17 -07:00
SATOH Fumiyasu
e4f4322f6c SHA2: Make slapd-sha2 module portable
contrib/slapd-modules/passwd/sha2/sha2.[ch] need portable.h and
some macros to be portable source.

contrib/slapd-modules/passwd/sha2/slapd-sha2.c:hash_sha*() must
declare "struct berval digest" before a statement for K&R C,
and must replace C++ "// foo"-style comments with C style.
2012-05-08 12:16:25 -07:00
Howard Chu
326d07d8c6 Merge remote-tracking branch 'origin/mdb.master' 2012-05-05 19:42:30 -07:00
Howard Chu
fadf75a9cb Further clarification of mdb_open() 2012-05-05 19:41:45 -07:00
Howard Chu
34240dbbbb ITS#7255 in mdb_tool_entry_modify use the existing global txn 2012-05-02 13:32:06 -07:00
Howard Chu
1d89901e73 ITS#7253 add a note about Criticality and RFC4510 2012-04-20 07:24:03 -07:00
Howard Chu
4d0d12db27 Merge remote-tracking branch 'origin/mdb.master' 2012-04-18 16:05:16 -07:00
Howard Chu
fbf9c23304 ITS#7251 fix Apple/Windows shared mutex naming 2012-04-18 15:59:54 -07:00
Howard Chu
42e3bedbf2 ITS#7182 new entry points should just be appended to monitor_extra_t 2012-04-18 11:52:38 -07:00
Ondrej Kuznik
6f8fb3bf39 ITS#7182 Simplify connection entry creation using entry_stub. 2012-04-18 11:44:55 -07:00
Ondrej Kuznik
e255d3e996 ITS#7182 Remove use of monitor_info_t in back-ldap. 2012-04-18 11:44:49 -07:00
Ondrej Kuznik
e8d913110d ITS#7182 Remove monitor_info_t from params for monitor_entry_stub. 2012-04-18 11:44:36 -07:00
Ondrej Kuznik
838a7f5138 ITS#7182 allow for later monitor subsystem registration
Some databases might want to register their subsystems under the dn
allocated for them by monitor_register_databas. It requires that the
deferred database registration callback be called *before* the
subsystem's.
2012-04-18 11:44:17 -07:00
Howard Chu
7767a41061 ITS#7240 note option inheritance behavior 2012-04-18 03:09:53 -07:00
Pierangelo Masarati
e92704309a more on ITS#6656 2012-04-17 21:51:02 +02:00
Howard Chu
62cdc32f4e ITS#7245 fix slap_parse_sync_cookie invocation 2012-04-16 07:36:43 -07:00
Howard Chu
519e2b34b5 Support double-buffering for threaded slapadd 2012-04-14 07:54:26 -07:00
Pierangelo Masarati
5bbfd85a83 ITS#7088 fix deadlock on write operations that do not need to be logged (please check) 2012-04-12 18:04:39 +02:00
Hallvard Furuseth
20baad4a20 libmdb: midl.h namespace cleanup.
Prefix ID, NOID, ID2, IDL, ID2L with 'MDB_'.
Also drop bdb from file description.
2012-04-12 08:24:36 +02:00
Hallvard Furuseth
0a4aa88927 libmdb: Simplify pick_meta() from read_meta().
Put one call in #if MDB_DEBUG. Move DPRINTF(Using meta page #) there.
2012-04-12 08:15:33 +02:00
Hallvard Furuseth
dce5bb2fee libmdb: Simplify mdb_default_cmp. No real change. 2012-04-12 08:15:33 +02:00
Hallvard Furuseth
729a8a2819 libmdb: signed meets unsigned warning cleanup 2012-04-12 08:15:33 +02:00
Hallvard Furuseth
99fa22c164 libmdb: MDB_FDATASYNC code cleanup.
Define MDB_FDATASYNC() instead of redefining fdatasync().
2012-04-12 08:15:33 +02:00
Hallvard Furuseth
592b3f8727 libmdb: Add C++ 'extern "C" {}' to *.h 2012-04-12 08:15:33 +02:00
Hallvard Furuseth
8e1ebbb4a8 libmdb: Don't open datafile twice when not needed.
If the database is opened with MDB_RDONLY or MDB_NOSYNC,
instead use the same file descriptor for me_mfd and me_fd.

Also factor out Windows/Unix error handling after open.
2012-04-12 08:15:33 +02:00
Hallvard Furuseth
6d0b424dbe libmdb: Set close-on-exec flag on lockfile 2012-04-12 08:15:33 +02:00
Hallvard Furuseth
4a0b30499c libmdb: Do not use the MDB_txbody.mtb_txnid field.
Get txn->mt_txnid from the meta page instead.  Otherwise it
and txn->mt_toggle could become inconsistent, since read-only
txns fetched both from MDB_txbody without mutex proteciton.
2012-04-12 08:15:33 +02:00
Hallvard Furuseth
d1738c3e6b Fix MDB_DEBUG in last ITS#7299 commit.
Make DPRINTF usable in if-else.  Silence signed vs unsigned warning.
2012-04-12 07:34:13 +02:00
Pierangelo Masarati
762ef802f6 ITS#6598 make control global 2012-04-11 09:52:57 +02:00
Howard Chu
d806b970b1 Merge remote branch 'origin/mdb.master' 2012-04-10 15:42:43 -07:00
Pierangelo Masarati
a47ef8d2b7 ITS#6656 keep loginfo mutex-protected 2012-04-11 00:16:45 +02:00
Pierangelo Masarati
3d99878d0b ITS#6656 make reqEntryUUID searchable 2012-04-10 23:13:55 +02:00