You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is a misunderstanding regarding use_ssl and use_tls.
As it is implemented, use_ssl enables protocol ldaps:// with makes php_ldap use TLS to establish the connection. This is what is reported into my OpenLDAP server's log:
conn=1472 fd=28 TLS established tls_ssf=256 ssf=256 tls_proto=TLSv1.3 tls_cipher=TLS_AES_256_GCM_SHA384
If I set use_tls instead, LdapRecord sticks to the ldap:// protocol and expects an upgrade to TLS via the STARTTLS protocol. It makes the connection to my OpenLDAP server fail because it is a TLS only server.
As I understand it the use_ssl configuration option should be renamed as use_tls because SSL is deprecated anf TLS replaces it. And current use_tls should be renamed use_starttls because it is what it does actually.
The text was updated successfully, but these errors were encountered:
Agree these names are confusing because in the real world SSL and TLS do (or did) the same thing, but the two options cause very different behaviour. Rather than replacing the old names I would suggest adding new names that explicitly say what mechanisms are being used. e.g. use_starttls as a synonym for use_tls and use_ldaps as a synonym for use_ssl.
@miken32 I think that's a great idea! Though I would only want one set of configuration options that set these vs adding new ones as aliases (correct me if I'm misunderstanding of course). v4 will contain breaking changes so it'll be a good time to adjust these 👍
I think there is a misunderstanding regarding
use_ssl
anduse_tls
.As it is implemented,
use_ssl
enables protocolldaps://
with makes php_ldap use TLS to establish the connection. This is what is reported into my OpenLDAP server's log:If I set
use_tls
instead, LdapRecord sticks to theldap://
protocol and expects an upgrade to TLS via the STARTTLS protocol. It makes the connection to my OpenLDAP server fail because it is a TLS only server.As I understand it the
use_ssl
configuration option should be renamed asuse_tls
because SSL is deprecated anf TLS replaces it. And currentuse_tls
should be renameduse_starttls
because it is what it does actually.The text was updated successfully, but these errors were encountered: