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

RE: make test (test007-replication) fails



| 
| Hello
| 
| I tried to make openldap on a
|   SunOS tlc-ffs173 5.7 Generic_106541-04 sun4u sparc SUNW,Ultra-250
| with openssl-0.9.6.
| 
| make test failed on test007-replication with a SSL error.
| 
| tests$ grep -n TLS test-db/*.log
| test-db/slave.log:28:TLS trace: SSL_accept:before/accept initialization
| test-db/slave.log:29:TLS trace: SSL3 alert write:fatal:handshake failure
| test-db/slave.log:30:TLS trace: SSL_accept:error in SSLv3 read client
| hello B
| test-db/slave.log:31:TLS trace: SSL_accept:error in SSLv3 read client
| hello B
| test-db/slave.log:32:TLS: can't accept.
| test-db/slave.log:33:TLS: error:1408A0C1:SSL
| routines:SSL3_GET_CLIENT_HELLO:no shared cipher s3_srvr.c:772
| test-db/slave.log:34:connection_read(8): TLS accept error error=-1
| id=0, closingtest-db/slurp.log:91:TLS trace: SSL_connect:before/connect
| initialization
| test-db/slurp.log:92:TLS trace: SSL_connect:SSLv2/v3 write client hello
| A
| test-db/slurp.log:93:TLS trace: SSL3 alert read:fatal:handshake failure
| 
| What did I wrong?
| 

Nothing, it's a bug. A fix should be already in the latest CVS tree. If you can't
find it here comes the patch (from Kurt D. Zeilenga):

===================================================================
RCS file: /repo/OpenLDAP/pkg/ldap/servers/slurpd/ri.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- servers/slurpd/ri.c	2000/08/17 14:30:37	1.16
+++ servers/slurpd/ri.c	2000/09/22 20:24:30	1.17
@@ -1,4 +1,4 @@
-/* $OpenLDAP: servers/slurpd/ri.c,v 1.16 2000/08/17 14:30:37 adamson Exp $ */
+/* $OpenLDAP: servers/slurpd/ri.c,v 1.17 2000/09/22 20:24:30 kurt Exp $ */
 /*
  * Copyright (c) 1996 Regents of the University of Michigan.
  * All rights reserved.
@@ -161,7 +161,7 @@
     Ri	**ri
 )
 {
-    (*ri) = ( Ri * ) malloc( sizeof( Ri ));
+    (*ri) = ( Ri * ) calloc( 1, sizeof( Ri ));
     if ( *ri == NULL ) {
 	return -1;
     }
@@ -172,9 +172,7 @@
 
     /* Initialize private data */
     (*ri)->ri_hostname = NULL;
-    (*ri)->ri_port = 0;
     (*ri)->ri_ldp = NULL;
-    (*ri)->ri_bind_method = 0;
     (*ri)->ri_bind_dn = NULL;
     (*ri)->ri_password = NULL;
     (*ri)->ri_authcId = NULL;


Best regards,
Karsten.