Cosmetics.

This commit is contained in:
Matvey Aksenov 2016-12-27 15:56:30 +00:00
parent 889c66a046
commit e9e9f35276
2 changed files with 5 additions and 5 deletions

View File

@ -173,7 +173,7 @@ with host port f = do
, Conn.settingDisableSession = False
, Conn.settingUseServerName = False
}
SecureWithTLSSettings _ t -> Just t
SecureWithTLSSettings _ settings -> Just settings
Insecure _ -> Just Conn.TLSSettingsSimple
{ Conn.settingDisableCertificateValidation = True
, Conn.settingDisableSession = False

View File

@ -43,11 +43,11 @@ import qualified Ldap.Asn1.Type as Type
-- | LDAP host.
data Host =
Plain String -- ^ Plain LDAP. Do not use!
Plain String -- ^ Plain LDAP.
| Insecure String -- ^ LDAP over TLS without the certificate validity check.
-- Only use for testing!
| Secure String -- ^ LDAP over TLS. Use!
| SecureWithTLSSettings String TLSSettings -- ^ LDAP over TLS with the ability to specify detailed TLS settings
| Secure String -- ^ LDAP over TLS.
| SecureWithTLSSettings String TLSSettings
-- ^ LDAP over TLS with the ability to specify detailed TLS settings.
deriving (Show)
-- | A token. All functions that interact with the Directory require one.