quanah(a)OpenLDAP.org wrote:
> Full_Name: Quanah Gibson-Mount
> Version: RE24/HEAD
> OS: NA
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (75.111.29.239)
>
>
> In the slapd-ldap man page, the section on idassert-bind is missing the fact
> that you can configure:
>
> starttls=no|yes|critical
>
> while listing all the other tls related keywords you can configure.
tls_protocol_min is missing as well. Also, I note the values of
starttls should be changed from "no,yes,critical" to "no,try,yes" (with
"critical" synonym of "yes"), to remove the false security perception
given by the current semantics of "yes".
The change would create minor backward compatibility issues, but no
security concern, since the meaning of "yes" would be promoted from
optional to required. Incautious users that still use "yes" would just
need to change it to "try" to restore the previous unsafe behavior.
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
-----------------------------------
Office: +39 02 23998309
Mobile: +39 333 4963172
Fax: +39 0382 476497
Email: ando(a)sys-net.it
-----------------------------------
Full_Name: Quanah Gibson-Mount
Version: RE24/HEAD
OS: NA
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (75.111.29.239)
In the slapd-ldap man page, the section on idassert-bind is missing the fact
that you can configure:
starttls=no|yes|critical
while listing all the other tls related keywords you can configure.
Thanks for your help.
Would you be able to email your Makefile that you generated for gcc
4.0.3 on Solaris/SPARC?
I am seriously missing something. I installed lated Sun Studio 12 and
compiled with it and it's the same problem.
/M.
On Tue, Mar 3, 2009 at 2:49 PM, <hyc(a)symas.com> wrote:
> mariusp44(a)gmail.com wrote:
>> as I have pointed out in earlier post not only it doesn't work when I
>> compile it myself but also the one that was downloaded form
>> sunfreeware.com. It is not possible to tell what version of gcc was
>> used to compile openldap that is distributed but explanation that it
>> doesn't work because of compiler bug seems to me highly unlikely.
>> Unless you can specifically point to which bug in gcc on SPARC
>> contributes to this erratic behaviour of openldap.
>
> It's not our responsibility to do your legwork for you. You can easily email
> the maintainers at sunfreeware.com and ask them. Since they currently host gcc
> 3.4.6 on their site it's a safe bet they're still using gcc 3.4.x overall.
>
> Fyi, I have just now built the 2.4.15 source using gcc 4.0.3 on SPARC/Solaris
> and all of the hash mechanisms work fine. I don't have a gcc 3.x build handy
> on my system, nor do I see any reason to install a known-bad compiler just to
> further demonstrate what has already been plainly documented by other folks.
>>
>> Either way, thanks for comments.
>>
>> /M.
>>
>> On Mon, Mar 2, 2009 at 5:56 PM,<hyc(a)symas.com> wrote:
>>> ando(a)sys-net.it wrote:
>>>> mariusp44(a)gmail.com wrote:
>>>>> I have just compiled and tested 2.4.15 and result is same: cleartext,
>>>>> md5 and sha works, smd5, ssha and crypt doesn't.
>>>>>
>>>>> Solaris 10 SPARC latest, gcc 3.4.3, Berkeley DB 4.7.25, opessl 0.9.8j.
>>>> I have no chance to test on that arch. You should figure our why those
>>>> hashes are not supported. Did you enable crypt (--enable-crypt)?
>>> gcc 3.4.3 was released November 4 2004 http://gcc.gnu.org/gcc-3.4/
>>>
>>> and is known to have many bugs. It's also already known that old gcc releases
>>> have other problems on Sparc. (E.g. ITS#5875.)
>>>
>>> Please use a working compiler.
>>>
>>> As a workaround, recompile the offending functions with optimization disabled.
>>> That usually helps in cases like this.
>>>
>>> There is no bug in OpenLDAP Software here, this ITS will be closed.
>>>
>>> --
>>> -- Howard Chu
>>> CTO, Symas Corp. http://www.symas.com
>>> Director, Highland Sun http://highlandsun.com/hyc/
>>> Chief Architect, OpenLDAP http://www.openldap.org/project/
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> -- Howard Chu
> CTO, Symas Corp. http://www.symas.com
> Director, Highland Sun http://highlandsun.com/hyc/
> Chief Architect, OpenLDAP http://www.openldap.org/project/
>
>
>
mariusp44(a)gmail.com wrote:
> as I have pointed out in earlier post not only it doesn't work when I
> compile it myself but also the one that was downloaded form
> sunfreeware.com. It is not possible to tell what version of gcc was
> used to compile openldap that is distributed but explanation that it
> doesn't work because of compiler bug seems to me highly unlikely.
> Unless you can specifically point to which bug in gcc on SPARC
> contributes to this erratic behaviour of openldap.
It's not our responsibility to do your legwork for you. You can easily email
the maintainers at sunfreeware.com and ask them. Since they currently host gcc
3.4.6 on their site it's a safe bet they're still using gcc 3.4.x overall.
Fyi, I have just now built the 2.4.15 source using gcc 4.0.3 on SPARC/Solaris
and all of the hash mechanisms work fine. I don't have a gcc 3.x build handy
on my system, nor do I see any reason to install a known-bad compiler just to
further demonstrate what has already been plainly documented by other folks.
>
> Either way, thanks for comments.
>
> /M.
>
> On Mon, Mar 2, 2009 at 5:56 PM,<hyc(a)symas.com> wrote:
>> ando(a)sys-net.it wrote:
>>> mariusp44(a)gmail.com wrote:
>>>> I have just compiled and tested 2.4.15 and result is same: cleartext,
>>>> md5 and sha works, smd5, ssha and crypt doesn't.
>>>>
>>>> Solaris 10 SPARC latest, gcc 3.4.3, Berkeley DB 4.7.25, opessl 0.9.8j.
>>> I have no chance to test on that arch. You should figure our why those
>>> hashes are not supported. Did you enable crypt (--enable-crypt)?
>> gcc 3.4.3 was released November 4 2004 http://gcc.gnu.org/gcc-3.4/
>>
>> and is known to have many bugs. It's also already known that old gcc releases
>> have other problems on Sparc. (E.g. ITS#5875.)
>>
>> Please use a working compiler.
>>
>> As a workaround, recompile the offending functions with optimization disabled.
>> That usually helps in cases like this.
>>
>> There is no bug in OpenLDAP Software here, this ITS will be closed.
>>
>> --
>> -- Howard Chu
>> CTO, Symas Corp. http://www.symas.com
>> Director, Highland Sun http://highlandsun.com/hyc/
>> Chief Architect, OpenLDAP http://www.openldap.org/project/
>>
>>
>>
>
>
>
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
mhardin(a)symas.com wrote:
> Thank you for looking into this. The new configuration does not rely
> on loopbacks and instead uses back-glue. We are also running 2.4.14
> with additional patches.
Though it might quickly lead to unnecessary and excessive code
duplication, I wonder whether a proxy backend couldn't just detect it
would call self, and use an internal operation instead?
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
-----------------------------------
Office: +39 02 23998309
Mobile: +39 333 4963172
Fax: +39 0382 476497
Email: ando(a)sys-net.it
-----------------------------------
Thank you for looking into this. The new configuration does not rely
on loopbacks and instead uses back-glue. We are also running 2.4.14
with additional patches.
Cheers,
-Matt
On Mar 3, 2009, at 10:46 AM, Howard Chu wrote:
> mhardin(a)symas.com wrote:
>> Full_Name: Matthew Hardin
>> Version: 2.4.12
>> OS: Red Hat Enterprise Linux 4 i686
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (74.38.114.185)
>>
>>
>> Hi All,
>>
>> We are using a pair of OpenLDAP 2.4.12 servers with back-meta to
>> proxy an active
>> directory domain. The clients are all current versions of PADL's
>> nss_ldap
>> libraries.
>>
>> Every once in a while (sometimes twice a day, sometimes once every
>> two weeks)
>> one of the slapd servers will peg CPU use at 100% and stop
>> answering requests.
>> The only way to stop slapd is with a kill -9.
>>
>> There doesn't seem to be anything to explain the lockup or allow us
>> to reproduce
>> it. We are using redundant AD servers and they are not going
>> offline. A third
>> slapd server running as a test server using the same AD servers and
>> configured
>> identically but serving a much lighter nss_ldap load does not fail
>> at all. We
>> have ruled out hardware, OS, and connectivity as possible causes.
>>
>> We are unfortunately unable to attach gdb to the running processes,
>> as these are
>> production servers and need to be restarted immediately. Our
>> smaller test system
>> does not exhibit the same behavior, either. There is nothing
>> unusual in the
>> server logs, either. We do have core files generated from kill -6
>> commands, and
>> they are all eerily similar to the back-trace below in that they
>> have one or
>> more threads waiting for a search or a bind response from AD.
>>
>> I am also enclosing relevant portions of slapd.conf for these
>> systems. Please
>> let me know if any additional information would be useful.
>>
>> Thanks,
>>
>> -Matt
>>
>> -----
>>
>>
>> (gdb) thr apply all bt
>
>> Thread 1 (process 29769):
>> #0 0x005fa410 in __kernel_vsyscall ()
>> #1 0x004ddd10 in raise () from /lib/libc.so.6
>> #2 0x004df621 in abort () from /lib/libc.so.6
>> #3 0x004d715b in __assert_fail () from /lib/libc.so.6
>> #4 0x0806eec8 in slap_listener (sl=0x9583108)
>> at /home/build/sol-2_4_12-1-nonopt/sol24/ldap24/servers/slapd/
>> daemon.c:1803
>> #5 0x0806f643 in slap_listener_thread (ctx=0x4e92220, ptr=0x9583108)
>> at /home/build/sol-2_4_12-1-nonopt/sol24/ldap24/servers/slapd/
>> daemon.c:1997
>> #6 0x00a10783 in ldap_int_thread_pool_wrapper (xpool=0x959a010)
>> at /home/build/sol-2_4_12-1-nonopt/sol24/ldap24/libraries/
>> libldap_r/tpool.c:663
>> #7 0x0038a45b in start_thread () from /lib/libpthread.so.0
>> #8 0x00585c4e in clone () from /lib/libc.so.6
>> (gdb)
>
> It seems you sent the wrong backtrace; this one doesn't show any
> signs of looping or anything that would indicate heavy CPU usage. It
> shows an assert which would kill the process, leading to 0% CPU
> usage. This assert was most likely fixed in 2.4.14.
>
>> slapd.conf
>
>> #######################################################################
>> # bdb database definitions
>> #######################################################################
>> database bdb
>> suffix "ou=nisdata"
>
>> #######################################################################
>> # Definitions for proxy and cache to AD
>> #######################################################################
>> database meta
>> suffix "dc=my-customer,dc=com"
>
>> # The link to AD:
>> uri ldaps://ldap-prd-dc01.my-customer.com/dc=ad,dc=my-
>> customer,dc=com
>> ldaps://ldap-prd-dc02.my-customer.com/
>
>> # The link to the NIS data directory (yes, we could chain/glue,
>> that's
>> # for later)
>> uri ldapi://%2fvar%2fsymas%2frun%2fldapi/dc=nis,dc=my-
>> customer,dc=com
>
> Pointing back-meta at its own slapd will inevitably exhaust the
> thread pool since incoming operations will always use 2x the number
> of available threads.
>
> This ITS will be closed.
> --
> -- Howard Chu
> CTO, Symas Corp. http://www.symas.com
> Director, Highland Sun http://highlandsun.com/hyc/
> Chief Architect, OpenLDAP http://www.openldap.org/project/
as I have pointed out in earlier post not only it doesn't work when I
compile it myself but also the one that was downloaded form
sunfreeware.com. It is not possible to tell what version of gcc was
used to compile openldap that is distributed but explanation that it
doesn't work because of compiler bug seems to me highly unlikely.
Unless you can specifically point to which bug in gcc on SPARC
contributes to this erratic behaviour of openldap.
Either way, thanks for comments.
/M.
On Mon, Mar 2, 2009 at 5:56 PM, <hyc(a)symas.com> wrote:
> ando(a)sys-net.it wrote:
>> mariusp44(a)gmail.com wrote:
>>> I have just compiled and tested 2.4.15 and result is same: cleartext,
>>> md5 and sha works, smd5, ssha and crypt doesn't.
>>>
>>> Solaris 10 SPARC latest, gcc 3.4.3, Berkeley DB 4.7.25, opessl 0.9.8j.
>>
>> I have no chance to test on that arch. You should figure our why those
>> hashes are not supported. Did you enable crypt (--enable-crypt)?
>
> gcc 3.4.3 was released November 4 2004 http://gcc.gnu.org/gcc-3.4/
>
> and is known to have many bugs. It's also already known that old gcc releases
> have other problems on Sparc. (E.g. ITS#5875.)
>
> Please use a working compiler.
>
> As a workaround, recompile the offending functions with optimization disabled.
> That usually helps in cases like this.
>
> There is no bug in OpenLDAP Software here, this ITS will be closed.
>
> --
> -- Howard Chu
> CTO, Symas Corp. http://www.symas.com
> Director, Highland Sun http://highlandsun.com/hyc/
> Chief Architect, OpenLDAP http://www.openldap.org/project/
>
>
>
mhardin(a)symas.com wrote:
> Full_Name: Matthew Hardin
> Version: 2.4.12
> OS: Red Hat Enterprise Linux 4 i686
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (74.38.114.185)
>
>
> Hi All,
>
> We are using a pair of OpenLDAP 2.4.12 servers with back-meta to proxy an active
> directory domain. The clients are all current versions of PADL's nss_ldap
> libraries.
>
> Every once in a while (sometimes twice a day, sometimes once every two weeks)
> one of the slapd servers will peg CPU use at 100% and stop answering requests.
> The only way to stop slapd is with a kill -9.
>
> There doesn't seem to be anything to explain the lockup or allow us to reproduce
> it. We are using redundant AD servers and they are not going offline. A third
> slapd server running as a test server using the same AD servers and configured
> identically but serving a much lighter nss_ldap load does not fail at all. We
> have ruled out hardware, OS, and connectivity as possible causes.
>
> We are unfortunately unable to attach gdb to the running processes, as these are
> production servers and need to be restarted immediately. Our smaller test system
> does not exhibit the same behavior, either. There is nothing unusual in the
> server logs, either. We do have core files generated from kill -6 commands, and
> they are all eerily similar to the back-trace below in that they have one or
> more threads waiting for a search or a bind response from AD.
>
> I am also enclosing relevant portions of slapd.conf for these systems. Please
> let me know if any additional information would be useful.
>
> Thanks,
>
> -Matt
>
> -----
>
>
> (gdb) thr apply all bt
> Thread 1 (process 29769):
> #0 0x005fa410 in __kernel_vsyscall ()
> #1 0x004ddd10 in raise () from /lib/libc.so.6
> #2 0x004df621 in abort () from /lib/libc.so.6
> #3 0x004d715b in __assert_fail () from /lib/libc.so.6
> #4 0x0806eec8 in slap_listener (sl=0x9583108)
> at /home/build/sol-2_4_12-1-nonopt/sol24/ldap24/servers/slapd/daemon.c:1803
> #5 0x0806f643 in slap_listener_thread (ctx=0x4e92220, ptr=0x9583108)
> at /home/build/sol-2_4_12-1-nonopt/sol24/ldap24/servers/slapd/daemon.c:1997
> #6 0x00a10783 in ldap_int_thread_pool_wrapper (xpool=0x959a010)
> at /home/build/sol-2_4_12-1-nonopt/sol24/ldap24/libraries/libldap_r/tpool.c:663
> #7 0x0038a45b in start_thread () from /lib/libpthread.so.0
> #8 0x00585c4e in clone () from /lib/libc.so.6
> (gdb)
It seems you sent the wrong backtrace; this one doesn't show any signs of
looping or anything that would indicate heavy CPU usage. It shows an assert
which would kill the process, leading to 0% CPU usage. This assert was most
likely fixed in 2.4.14.
> slapd.conf
> #######################################################################
> # bdb database definitions
> #######################################################################
> database bdb
> suffix "ou=nisdata"
> #######################################################################
> # Definitions for proxy and cache to AD
> #######################################################################
> database meta
> suffix "dc=my-customer,dc=com"
> # The link to AD:
> uri ldaps://ldap-prd-dc01.my-customer.com/dc=ad,dc=my-customer,dc=com
> ldaps://ldap-prd-dc02.my-customer.com/
> # The link to the NIS data directory (yes, we could chain/glue, that's
> # for later)
> uri ldapi://%2fvar%2fsymas%2frun%2fldapi/dc=nis,dc=my-customer,dc=com
Pointing back-meta at its own slapd will inevitably exhaust the thread pool
since incoming operations will always use 2x the number of available threads.
This ITS will be closed.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
hyc(a)symas.com wrote:
> ando(a)sys-net.it wrote:
>> ando(a)sys-net.it wrote:
>>
>>> Probably a side-effect of fixing ITS#5853:
>> This seems to be unrelated from ITS#5853, actually.
>
> Fixed now in HEAD
Thanks. I did not realize I was trying an exceptional configuration.
>> Another note: if a search reference is received, it is returned by
>> libldap and additionally it is chased, so one gets both the search
>> reference and the chased search reference results.
>
> 2.3 does this as well, seems to be intentional.
I tested the scenario I described in a previous mail, and nothing weird
showed up. I might have screwed up something?
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
-----------------------------------
Office: +39 02 23998309
Mobile: +39 333 4963172
Fax: +39 0382 476497
Email: ando(a)sys-net.it
-----------------------------------