[Samba] A record packet with illegal version was received.

Shem Pasamba shemgp at aiias.edu
Tue Mar 18 23:27:32 MDT 2014


On 3/18/2014 4:19 PM, Shem Pasamba wrote:
> Hello,
>
> I'm having a problem with using TLS in samba 4.1.4. When I try to
> connect to LDAP of samba 4 there is an error in the logs, which is:
>
> [2014/03/18 15:34:12.631262,  1]
> ../source4/lib/tls/tls_tstream.c:1338(tstream_tls_retry_handshake)
>    TLS ../source4/lib/tls/tls_tstream.c:1338 - A record packet with
> illegal version was received.

> In this forum:
> http://stackoverflow.com/questions/2689629/how-do-i-solve-ldap-start-tls-unable-to-start-tls-connect-error-in-php
> it says that I should set TLS_REQCERT to never but that is for openLDAP.
> How do I do this in samba 4?
Turns out this was for PHP as well. Adding TLS_REQCERT never to 
/etc/openldap/ldap.conf makes PHP accept self-signed certificates, and 
the error above vanishes.


More information about the samba mailing list