Commit Graph

20322 Commits

Author SHA1 Message Date
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
Howard Chu
d793594173 ITS#7229 more mdb_page_split tweaks
Also add mdb_debug/mdb_debug_start to toggle debug output at runtime
2012-04-10 14:05:05 -07:00
Pierangelo Masarati
f65ee5ddc1 ITS#6656 add reqEntryUUID to logs of write ops 2012-04-10 22:39:35 +02:00
Howard Chu
a66f9e9292 ITS#7210 fix check for freelist changes
Was being fooled before because the newly malloc'd block had
the same address as the previously freed block.
2012-04-09 19:24:47 -07:00
Pierangelo Masarati
d7d1789e80 ITS#7224 check *_names pointer before dereferencing 2012-04-10 00:47:23 +02:00
Pierangelo Masarati
829efa878a move entrypriv_create into monitor_extra_t 2012-04-09 18:37:48 +02:00
Pierangelo Masarati
11acc75e9f move entry_stub to monitor_extra_t 2012-04-09 18:18:21 +02:00
Howard Chu
321b0fa93e Merge remote branch 'origin/mdb.master' 2012-04-09 05:19:41 -07:00
Howard Chu
71843da2a7 MDB_APPEND should only be used in tool mode 2012-04-09 05:18:44 -07:00