Copyright | Copyright (C) 2005 John Goerzen |
---|---|
License | BSD |
Maintainer | John Goerzen, |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
LDAP.Init
Description
Initialization and shutdown for LDAP programs
Written by John Goerzen, jgoerzen@complete.org
Synopsis
- ldapOpen :: String -> LDAPInt -> IO LDAP
- ldapInit :: String -> LDAPInt -> IO LDAP
- ldapInitialize :: String -> IO LDAP
- ldapSimpleBind :: LDAP -> String -> String -> IO ()
- ldapExternalSaslBind :: LDAP -> String -> IO ()
Documentation
Like ldapInit
, but establish network connection immediately.
Preferred way to initialize a LDAP connection.
The default port is given in ldapPort
.
Could throw IOError on failure.
Arguments
:: String | URI |
-> IO LDAP | New LDAP Obj |
Like ldapInit
, but accepts a URI (or whitespace/comma separated
list of URIs) which can contain a schema, a host and a port. Besides
ldap, valid schemas are ldaps (LDAP over TLS), ldapi (LDAP over IPC),
and cldap (connectionless LDAP).
Arguments
:: LDAP | LDAP Object |
-> String | DN (Distinguished Name) |
-> String | Password |
-> IO () |
Bind to the remote server.
Arguments
:: LDAP | LDAP Object |
-> String | Authorization identity (UTF-8 encoded; pass "" to derive it from the authentication identity) |
-> IO () |
Bind with the SASL EXTERNAL mechanism.