Hello Again! I've fixed my problem.
The reason for the coredump was, that I called ldap_simple_bind() before ldapssl_enable_clientauth(). Just changing the order of the calls fixed the dump. Sorry for bothering you. Ewald on Thu, 26 Feb 2004 17:36:54 +0100 Ewald Ertl <[EMAIL PROTECTED]> wrote : --------------------------------------------------------------------------------------------- Ewald Ertl > Hello! Ewald Ertl > Ewald Ertl > When I connect to my openldap-Server on SuSE 8.0 with the last Mozilla Directory C-SDK with SSL-Connection everything works fine, until I use Ewald Ertl > the function combination ldapssl_clientauth_init()/ldapssl_init/ldap_set_option()/ldapssl_enable_clientauth(). Ewald Ertl > Ewald Ertl > When just connecting with ldapssl_clientauth_init() / ldapssl_init() Ewald Ertl > and setting the Options: Ewald Ertl > LDAP_OPT_PROTOCOL_VERSION, Version 3 Ewald Ertl > LDAP_OPT_RECONNECT, LDAP_OPT_ON Ewald Ertl > LDAP_OPT_SIZELIMIT, LDAP_NO_LIMIT Ewald Ertl > Ewald Ertl > everything works fine for me. Ewald Ertl > When binding with ldap_simple_bind(),I can work und unbind from OpenLDAP with ldap_unbind() without a segmentation fault. Ewald Ertl > Ewald Ertl > But when I call ldapssl_enable_clientauth(), after setting the Options, Ewald Ertl > and binding with ldap_simple_bind() everything looks fine. Ewald Ertl > Until I try to unbind with ldap_unbind() or try to Ewald Ertl > send a request, I get deep in the core of the Mozilla directory C-SDK a Ewald Ertl > segementationfault. Ewald Ertl > Ewald Ertl > I've tracked the problem down in the debugger: Ewald Ertl > Ewald Ertl > In the structure of LDAP: Ewald Ertl > Ewald Ertl > <LDAP>->ld_sbp->sb_ext_io_fns->lbextiofn_socket_arg->prsock_prf->methods->send Ewald Ertl > Ewald Ertl > and other functions are set to Ewald Ertl > ssl_* functions like ssl_Send. Ewald Ertl > Ewald Ertl > But after calling ldapssl_enable_clientauth, these functionpointers are set to 0 ( NULL ). Ewald Ertl > Ewald Ertl > When calling ldap_unbind(), the callstack goes down until an unbind would be sent to the server, but the functionpointer for send ist 0 ( NULL ), which causes the segmentation fault. Ewald Ertl > Ewald Ertl > Ewald Ertl > Perhaps somebody coult give me a hint. Ewald Ertl > As far as I've understood the Dok's an SASL bind operation ist optional, Ewald Ertl > so I've havent currently implemented the SASL Authentication. Ewald Ertl > Ewald Ertl > Many Thanks for any help. Ewald Ertl > Ewald Ertl > Ewald Ewald Ertl > ------------------- end ---------------------- _______________________________________________ mozilla-directory mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-directory