[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldapsearch - Segmentation Fault



Am Mittwoch, den 13.04.2005, 12:31 +0200 schrieb Pierangelo Masarati:
> > Hi,
> >
> >   I have now another problem. When I try to connect using ldaps, I do not
> > get
> > the connection and obtain a segmentation fault. Without ssl, ldapsearch
> > works
> > very well. Here the commands and files I gave in:
> 
> your report is largely incomplete and gives essentially no indication that
> can be of help in solving your problem (it barely indicates that you have
> a problem).  Please follow the indications of
> <http://www.openldap.org/faq/data/cache/59.html>, and report as much info
> as possible.

Oh I'm sorry, I missed this.

I use:
libldap2 version 2.1.30-3
LDAP-Server ist eDirectory (no idea of the version)
my platform is Debian-Linux kernel 2.4.24-1
openssl 0.9.6c-2.woody.7


The hardware should not be the problem because it works when I try
without SSL.

> > ldapsearch -D "cn=myuser,ou=myou,o=myo" -H ldaps://mydomain:636 cn=* -W
> > => Segmentation Fault
> > ldapsearch -D "cn=myuser,ou=myou,o=myo" -H ldaps://mydomain:636 cn=*
> > => Segmentation Fault
> > ldapsearch -D "cn=myuser,ou=myou,o=myo" -H ldap://mydomain:389 cn=* -x
> > => works well
> 
> I note that you didn't exaust the possible combinations of parameters, and
> most of those you tried are inconsistend and/or of little use; did you try
> at least
> 
> ldapsearch -D "cn=myuser,ou=myou,o=myo" -H ldaps://mydomain -x -W cn=*

ldapsearch -D "cn=myuser,ou=myou,o=myo" -H ldaps://mydomain:636 cn=* -W
-x
Enter LDAP Password:
=>Segmentation fault

If I don't give the port, it gives the same error. 

gdb gives this:

Starting program: /usr/bin/ldapsearch -D "cn=mycn,ou=myou,o=myo" -H
ldaps://mydomain:636 cn=* -W
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...
Enter LDAP Password:
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x4023d36f in readdir64 () from /lib/libc.so.6
(gdb) bt full
#0  0x4023d36f in readdir64 () from /lib/libc.so.6
No symbol table info available.
#1  0x40048e18 in ldap_pvt_tls_init_def_ctx ()
from /usr/lib/libldap.so.2
No symbol table info available.
#2  0x40048bc9 in ldap_pvt_tls_init_def_ctx ()
from /usr/lib/libldap.so.2
No symbol table info available.
#3  0x40048f4b in ldap_pvt_tls_init_def_ctx ()
from /usr/lib/libldap.so.2
No symbol table info available.
#4  0x4004969f in ldap_pvt_tls_init_def_ctx ()
from /usr/lib/libldap.so.2
No symbol table info available.
#5  0x4004a716 in ldap_int_tls_start () from /usr/lib/libldap.so.2
No symbol table info available.
#6  0x4002a837 in ldap_int_open_connection () from /usr/lib/libldap.so.2
No symbol table info available.
#7  0x4003c4c9 in ldap_new_connection () from /usr/lib/libldap.so.2
No symbol table info available.
#8  0x4002a2a1 in ldap_open_defconn () from /usr/lib/libldap.so.2
No symbol table info available.
#9  0x4003c03f in ldap_send_initial_request ()
from /usr/lib/libldap.so.2
No symbol table info available.
#10 0x4002d871 in ldap_search () from /usr/lib/libldap.so.2
No symbol table info available.
#11 0x4002dbcb in ldap_search_s () from /usr/lib/libldap.so.2
No symbol table info available.
#12 0x40032ab9 in ldap_pvt_sasl_getmechs () from /usr/lib/libldap.so.2
No symbol table info available.
#13 0x40032c19 in ldap_sasl_interactive_bind_s ()
from /usr/lib/libldap.so.2
No symbol table info available.
#14 0x0804cbc9 in strcpy ()
No symbol table info available.
#15 0x0804a4af in strcpy ()
No symbol table info available.
#16 0x401aedc6 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.

I hope I gave enough infos. 

Thx in advance 

Nico