ldaps using stunnel not working
Posted: Fri Apr 29, 2005 4:37 pm
Hello,
I am attempting to tunnel ldap over SSL using stunnel, (imap/pop/smtp already working using stunnel) so the company directory can be safely accessed from outside our network as well as inside.
So i added the lines to the /etc/stunnel/stunnel.conf to enable ldaps, like so:
[ldaps]
accept = 636
connect = 389
Restarted stunnel daemon and tested connecting, i cannot connect to the ldap directory over the ldaps port 636, although i see the stunnel listening connection on port 636.
Debug logging of stunnel indicates the following error associated with the attempt:
2005.04.28 12:15:05 LOG5[27926:1076812720]: ldaps connected from 71.4.124.200:43012
2005.04.28 12:15:05 LOG7[27926:1076812720]: SSL state (accept): before/accept initialization
2005.04.28 12:15:05 LOG7[27926:1076812720]: waitforsocket: FD=14, DIR=read
2005.04.28 12:15:05 LOG7[27926:1076812720]: waitforsocket: ok
2005.04.28 12:15:05 LOG3[27926:1076812720]: SSL_accept: 140760FC: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
2005.04.28 12:15:05 LOG7[27926:1076812720]: ldaps finished (6 left)
I think what this indicating is that the connection is accepted by stunnel, but when it tries to hand off to the ldap server process, omslapd, the ldap server is stating it doesn't understand the SSL protocol.
Can you tell me if the ldap server compiled into the Scalix server supports ssl? If not, can it be made to do so without breaking Scalix?
Just in case your interested the version of openssl, is: openssl-0.9.7d-15.13
Thanks,
I am attempting to tunnel ldap over SSL using stunnel, (imap/pop/smtp already working using stunnel) so the company directory can be safely accessed from outside our network as well as inside.
So i added the lines to the /etc/stunnel/stunnel.conf to enable ldaps, like so:
[ldaps]
accept = 636
connect = 389
Restarted stunnel daemon and tested connecting, i cannot connect to the ldap directory over the ldaps port 636, although i see the stunnel listening connection on port 636.
Debug logging of stunnel indicates the following error associated with the attempt:
2005.04.28 12:15:05 LOG5[27926:1076812720]: ldaps connected from 71.4.124.200:43012
2005.04.28 12:15:05 LOG7[27926:1076812720]: SSL state (accept): before/accept initialization
2005.04.28 12:15:05 LOG7[27926:1076812720]: waitforsocket: FD=14, DIR=read
2005.04.28 12:15:05 LOG7[27926:1076812720]: waitforsocket: ok
2005.04.28 12:15:05 LOG3[27926:1076812720]: SSL_accept: 140760FC: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
2005.04.28 12:15:05 LOG7[27926:1076812720]: ldaps finished (6 left)
I think what this indicating is that the connection is accepted by stunnel, but when it tries to hand off to the ldap server process, omslapd, the ldap server is stating it doesn't understand the SSL protocol.
Can you tell me if the ldap server compiled into the Scalix server supports ssl? If not, can it be made to do so without breaking Scalix?
Just in case your interested the version of openssl, is: openssl-0.9.7d-15.13
Thanks,