diff --git a/src/Settings.hs b/src/Settings.hs index c9ab18286..39ce336c6 100644 --- a/src/Settings.hs +++ b/src/Settings.hs @@ -417,6 +417,8 @@ instance FromJSON LdapConf where Just spec | spec == "insecure" -> return $ Just Ldap.insecureTlsSettings | spec == "default" -> return $ Just Ldap.defaultTlsSettings + | spec == "none" -> return Nothing + | spec == "notls" -> return Nothing | null spec -> return Nothing Nothing -> return Nothing _otherwise -> fail "Could not parse LDAP TLSSettings"