Safe Haskell | None |
---|---|
Language | Haskell2010 |
Bind operation.
This operation comes in four flavours:
- synchronous, exception throwing (
bind
) - synchronous, returning
Either
ResponseError
()
(bindEither
) - asynchronous,
IO
based (bindAsync
) - asynchronous,
STM
based (bindAsyncSTM
)
Of those, the first one (bind
) is probably the most useful for the typical usecase.
Synopsis
- newtype Password = Password ByteString
- bind :: Ldap -> Dn -> Password -> IO ()
- bindEither :: Ldap -> Dn -> Password -> IO (Either ResponseError ())
- bindAsync :: Ldap -> Dn -> Password -> IO (Async ())
- bindAsyncSTM :: Ldap -> Dn -> Password -> STM (Async ())
- externalBind :: Ldap -> Dn -> Maybe Text -> IO ()
- externalBindEither :: Ldap -> Dn -> Maybe Text -> IO (Either ResponseError ())
- externalBindAsync :: Ldap -> Dn -> Maybe Text -> IO (Async ())
- externalBindAsyncSTM :: Ldap -> Dn -> Maybe Text -> STM (Async ())
- data Async a
- wait :: Async a -> IO (Either ResponseError a)
- waitSTM :: Async a -> STM (Either ResponseError a)
Documentation
User's password.
bind :: Ldap -> Dn -> Password -> IO () Source #
Perform the Bind operation synchronously. Raises ResponseError
on failures.
bindEither :: Ldap -> Dn -> Password -> IO (Either ResponseError ()) Source #
Perform the Bind operation synchronously. Returns Left e
where
e
is a ResponseError
on failures.
bindAsync :: Ldap -> Dn -> Password -> IO (Async ()) Source #
Perform the Bind operation asynchronously. Call wait
to wait
for its completion.
bindAsyncSTM :: Ldap -> Dn -> Password -> STM (Async ()) Source #
Perform the Bind operation asynchronously.
Don't wait for its completion (with waitSTM
) in the
same transaction you've performed it in.
externalBind :: Ldap -> Dn -> Maybe Text -> IO () Source #
Perform a SASL EXTERNAL Bind operation synchronously. Raises ResponseError
on failures.
externalBindEither :: Ldap -> Dn -> Maybe Text -> IO (Either ResponseError ()) Source #
Perform a SASL EXTERNAL Bind operation synchronously. Returns Left e
where
e
is a ResponseError
on failures.
externalBindAsync :: Ldap -> Dn -> Maybe Text -> IO (Async ()) Source #
Perform the SASL EXTERNAL Bind operation asynchronously. Call wait
to wait
for its completion.
externalBindAsyncSTM :: Ldap -> Dn -> Maybe Text -> STM (Async ()) Source #
Perform the SASL EXTERNAL Bind operation asynchronously.
Don't wait for its completion (with waitSTM
) in the
same transaction you've performed it in.