Full_Name: Quanah Gibson-Mount
Version: 2.4.46
OS: N/A
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (47.208.148.239)
When specifying full debug on the client side (-d -1), there are no timestamps
provided. This is problematic when trying to diagnose where the client side is
having issues when connecting to the slapd server. I.e., an ldapwhoami command
that takes 19 seconds to go from start to finish, while the slapd side shows
everything taking 1 second or less.
Full_Name: Matus Honek
Version: 2.4.46
OS: Fedora 28
URL: ftp://ftp.openldap.org/incoming/Matus-Honek-180821.patch
Submission from: (NULL) (213.175.37.10)
When in OpenSSL one disables SSL3 by default (the SSL_OP_NO_SSLv3 is set by
default, like in recent Fedora distributions) then with the current code in
OpenLDAP it is not possible to have it re-enabled using TLS_PROTOCOL_MIN
configuration option.
The attached patch explicitly clears the SSL_OP_NO_SSLv3 option when
TLS_PROTOCOL_MIN is set so that SSL3 should be enabled. Feel free to use it; I
believe IPR should not be necessary for a one liner.
However, in the future when more protocols will be disabled by default (possibly
soon for TLS1.0 and TLS1.1), similar fixes will be needed for those as well. Or,
it may be decided to not support the protocols that are disabled by default but
in that case probably a log message should be issued once user tries to enable a
by default disabled protocol.
Hi,
Any comments ??
Regards,
Sudhir Singam
DELIVERING BEST-IN-CLASS PLATFORM is our vision
-----Original Message-----
From: openldap-its(a)OpenLDAP.org <openldap-its(a)OpenLDAP.org>=20
Sent: Monday, May 07, 2018 12:02 PM
To: Singam, Sudhir (Nokia - IN/Bangalore) <sudhir.singam(a)nokia.com>
Subject: Re: (ITS#8848) New LDAP URL syntax to support binding to specific =
IP address at client side
*** THIS IS AN AUTOMATICALLY GENERATED REPLY ***
Thanks for your report to the OpenLDAP Issue Tracking System. Your
report has been assigned the tracking number ITS#8848.
One of our support engineers will look at your report in due course.
Note that this may take some time because our support engineers
are volunteers. They only work on OpenLDAP when they have spare
time.
If you need to provide additional information in regards to your
issue report, you may do so by replying to this message. Note that
any mail sent to openldap-its(a)openldap.org with (ITS#8848)
in the subject will automatically be attached to the issue report.
mailto:openldap-its@openldap.org?subject=3D(ITS#8848)
You may follow the progress of this report by loading the following
URL in a web browser:
http://www.OpenLDAP.org/its/index.cgi?findid=3D8848
Please remember to retain your issue tracking number (ITS#8848)
on any further messages you send to us regarding this report. If
you don't then you'll just waste our time and yours because we
won't be able to properly track the report.
Please note that the Issue Tracking System is not intended to
be used to seek help in the proper use of OpenLDAP Software.
Such requests will be closed.
OpenLDAP Software is user supported.
http://www.OpenLDAP.org/support/
--------------
Copyright 1998-2007 The OpenLDAP Foundation, All Rights Reserved.
Full_Name: Randall Mason
Version: HEAD
OS: Debian Linux
URL: https://gist.githubusercontent.com/ClashTheBunny/a9d2b8d0119964a0eb8a5e2ed7…
Submission from: (NULL) (67.165.132.233)
ldappasswd is slightly different from a standard passwd workflow in that it
requests an old password, then a new password, then the old password
again. This confuses people who are used to the unix passwd tool as
well as people who use password manager. I've seen quite a few people
who have generated a new password, overwriting the old one, and then
need a password reset because they still need to bind to modify their
password.
This patch adds an option to bind at the beginning of the process so
that you can pass '-E' to ldappasswd and it will bind early in the
process so that the process is the same as the standard passwd. All it
does is run the bind towards the beginning of the process instead of the
end.
The attached patch file is derived from OpenLDAP Software. All of
the modifications to OpenLDAP Software represented in the following
patch(es) were developed by Randall Mason randall(a)mason.ch. I have not
assigned rights and/or interest in this work to any party.
I, Randall Mason, hereby place the following modifications to
OpenLDAP Software (and only these modifications) into the public domain.
Hence, these modifications may be freely used and/or redistributed for
any purpose with or without attribution and/or other notice.
Full_Name: Quanah Gibson-Mount
Version: 2.4.46
OS: N/A
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (47.208.148.239)
The man page for slapadd's -w option needs to be updated to note that it's
generally only safe to use with a cold slapcat.
Full_Name: Chris Kowalczyk
Version: 2.4.41
OS: SLE12
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (2620:113:80c0:5::2222)
Hello,
I have been experiencing segfaults in mdb_env_reader_dest happening randomly,
only from time to time, during shutting off openldap.
After some investigation I narrowed the problem down to mdb_env_reader_dest
destructor function being called after its object had been deleted while
powering off the application. mdb_env_reader_dest was called automatically,
because it was agginned to the object in pthread_key_create call:
https://github.com/openldap/openldap/blob/master/libraries/liblmdb/mdb.c#L4…
The problem was not happening often, and always during powering off, so no data
was lost etc. However, due to its annoyance, I prepared a simple patch, which
prevents mdb_env_reader_dest function being called if the object was already
deleted. The patch works fine, I haven't seen the problem since it was
introduced.
I am using OpenLDAP 2.4.41, but the code seems to be the same in other versions
as well. Would you like me to create a pull request for it?
==========================
=== The backtrace:
==========================
Program terminated with signal 11, Segmentation fault.
#0 mdb_env_reader_dest (ptr=0x7f4a9c71c080) at
../../../libraries/liblmdb/mdb.c:4050
4050 reader->mr_pid = 0;
#thread apply all bt
Thread 2 (LWP 20920):
#0 0x00007f4a9ac31d9d in close () at ../sysdeps/unix/syscall-template.S:84
#1 0x000055902eaeae8c in mdb_env_close1 (env=env@entry=0x55902fce50e0)
at ../../../libraries/liblmdb/mdb.c:4756
#2 0x000055902eaeb578 in mdb_env_close1 (env=0x55902fce50e0) at
../../../libraries/liblmdb/mdb.c:4779
#3 mdb_env_close (env=0x55902fce50e0) at ../../../libraries/liblmdb/mdb.c:4778
#4 0x000055902ea69114 in mdb_db_close (be=0x55902faeb300, cr=<optimized out>)
at init.c:340
#5 0x000055902ea3815b in over_db_close (be=0x55902faeb300, cr=0x0) at
backover.c:182
#6 0x000055902e9d8c0b in backend_shutdown (be=0x55902faeb300, be@entry=0x0) at
backend.c:376
#7 0x000055902e9fa258 in slap_shutdown (be=be@entry=0x0) at init.c:232
#8 0x000055902e9af12f in main (argc=<optimized out>, argv=<optimized out>) at
main.c:1027
Thread 1 (LWP 20928):
#0 mdb_env_reader_dest (ptr=0x7f4a9c71c080) at
../../../libraries/liblmdb/mdb.c:4050
#1 0x00007f4a9ac2a512 in __nptl_deallocate_tsd () at pthread_create.c:176
#2 0x00007f4a9ac2a767 in start_thread (arg=0x7f4a97acc700) at
pthread_create.c:347
#3 0x00007f4a9a968aad in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109
# frame 0
#0 mdb_env_reader_dest (ptr=0x7f4a9c71c080) at
../../../libraries/liblmdb/mdb.c:4050
4050 reader->mr_pid = 0;
#p reader
$1 = (MDB_reader *) 0x7f4a9c71c080
#p *reader
Cannot access memory at address 0x7f4a9c71c080
==========================
=== The proposed patch:
==========================
diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c
index 6bdf3151d..56212151b 100644
--- a/libraries/liblmdb/mdb.c
+++ b/libraries/liblmdb/mdb.c
@@ -4692,6 +4692,11 @@ mdb_env_close0(MDB_env *env, int excl)
if (env->me_flags & MDB_ENV_TXKEY) {
pthread_key_delete(env->me_txkey);
+
+ // No need to call desctructor anymore, as all pid
+ // values are cleared below.
+ env->me_txkey = NULL;
+
#ifdef _WIN32
/* Delete our key from the global list */
for (i=0; i<mdb_tls_nkeys; i++)
Full_Name: Quanah Gibson-Mount
Version: 2.4.46
OS: N/A
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (47.208.148.239)
When making an export for backup using slapcat there could be issues on restore
if the last operation logged was for a delete entry operation, as the contextCSN
would then point to an entry that no longer exists. If that backup was then
used at restoration time in an replicated environment and the master gets a
write op before any replicas are online, the replicas will fallback to REFRESH
mode since they can't find entry the contextCSN points to.
Full_Name: Irad.k
Version: recent from GitHub.
OS: macOS
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (82.81.84.130)
Hi,
I'm working with LMDB with the following flags : MDB_NOMETASYNC | MDB_NOSUBDIR
| MDB_NOTLS.
Somehow, even though the DB should be ACI(without the D), it got corrupted
after recovering from kernel panic, and It crashes my process when trying to
access one of the records (see crash log below).
Here's a link to the file :
https://drive.google.com/file/d/12Q3KYYrapiJOgiaccnDL3tQACkqrM3C5/view?usp=…
According to the crash log from the process, It can clearly be seen that the
invalid address reside inside the mapped file region which is the lmdb mapped
file, but still I get KERN_MEMORY_ERROR on that address.
>From what I know, an attempt to access address within the mapped range can
either retrieve the page contents directly from memory (if it's already there),
or trigger page fault trap that eventually lead to reading the missing data from
disk and return it to process as well.
One thing that raise some concerns is that the file size is only 24k and the
mapping spans over 256M. However, the file's meta data seems to be coherent to
file contents.
Any idea how did it happen, and what exactly in the file cause this corruption ?
CRASH LOG :
----------------------------------------------------------------------
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_MEMORY_ERROR at 0x000000010648800a
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Bus error: 10
Termination Reason: Namespace SIGNAL, Code 0xa
Terminating Process: exc handler [0]
VM Regions Near 0x10648800a:
__LINKEDIT 0000000106464000-000000010647f000 [ 108K] r--/rwx SM=COW
^Z^C [/usr/lib/dyld]
--> mapped file 000000010647f000-000000011647f000 [256.0M] r--/rwx
SM=PRV Object_id=9034edd9
STACK GUARD 000070000f2b3000-000070000f2b4000 [ 4K] ---/rwx SM=NUL
stack guard for thread 1
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 myprog 0x0000000101666756 mdb_page_search_root + 39
1 myprog 0x00000001016660f7 mdb_page_search + 182
2 myprog 0x00000001016614de mdb_cursor_set + 88
3 myprog 0x0000000101661476 mdb_get + 134