Added StartTLS functionality

Added StartTLS in function Connect().
And also added parameters in config to activate StartTLS.
This commit is contained in:
S-A-L13 2024-02-22 14:54:55 +01:00
parent 0efc0bbe3a
commit 383e40636b
3 changed files with 18 additions and 0 deletions

View file

@ -57,6 +57,12 @@ class LdapIdentitiesPlugin extends AbstractPlugin
->SetLabel("LDAP Protocol Version")
->SetType(PluginPropertyType::SELECTION)
->SetDefaultValue([2, 3]),
Property::NewInstance(LdapConfig::CONFIG_STARTTLS)
->SetLabel("Use StartTLS")
->SetType(PluginPropertyType::BOOL)
->SetDescription("Whether or not to use TLS encrypted connection")
->SetDefaultValue(true),
Property::NewInstance(LdapConfig::CONFIG_BIND_USER)
->SetLabel("Bind User DN")