Skip to content

Commit

Permalink
ldap: use first array value for sni when provided csv input
Browse files Browse the repository at this point in the history
  • Loading branch information
ChandonPierre committed Jun 9, 2023
1 parent fa4d320 commit bc660dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authentik/sources/ldap/models.py
Expand Up @@ -139,7 +139,7 @@ def server(self, **kwargs) -> Server:
if ciphers := CONFIG.y("ldap.tls.ciphers", None):
tls_kwargs["ciphers"] = ciphers.strip()
if self.sni:
tls_kwargs["sni"] = self.server_uri.strip()
tls_kwargs["sni"] = self.server_uri.split(",")[0].strip()
server_kwargs = {
"get_info": ALL,
"connect_timeout": LDAP_TIMEOUT,
Expand Down

0 comments on commit bc660dd

Please sign in to comment.