LDAP-0.6.6: Haskell binding for C LDAP APISource codeContentsIndex
LDAP.Modify
MaintainerJohn Goerzen,
Contents
Basics
Utilities
Description

Maintainer : jgoerzen@complete.org Stability : provisional Portability: portable

LDAP changes

Written by John Goerzen, jgoerzen@complete.org

Synopsis
data LDAPModOp
= LdapModAdd
| LdapModDelete
| LdapModReplace
| UnknownLDAPModOp Int
data LDAPMod = LDAPMod {
modOp :: LDAPModOp
modType :: String
modVals :: [String]
}
ldapAdd :: LDAP -> String -> [LDAPMod] -> IO ()
ldapModify :: LDAP -> String -> [LDAPMod] -> IO ()
ldapDelete :: LDAP -> String -> IO ()
list2ldm :: LDAPModOp -> [(String, [String])] -> [LDAPMod]
pairs2ldm :: LDAPModOp -> [(String, String)] -> [LDAPMod]
Basics
data LDAPModOp Source
Constructors
LdapModAdd
LdapModDelete
LdapModReplace
UnknownLDAPModOp Int
data LDAPMod Source
Constructors
LDAPMod
modOp :: LDAPModOpType of operation to perform
modType :: StringName of attribute to edit
modVals :: [String]New values
ldapAddSource
:: LDAPLDAP connection object
-> StringDN to add
-> [LDAPMod]Items to add
-> IO ()
ldapModifySource
:: LDAPLDAP connection object
-> StringDN to modify
-> [LDAPMod]Changes to make
-> IO ()
ldapDelete :: LDAP -> String -> IO ()Source
Delete the specified DN
Utilities
list2ldm :: LDAPModOp -> [(String, [String])] -> [LDAPMod]Source
Takes a list of name/value points and converts them to LDAPMod entries. Each item will have the specified LDAPModOp.
pairs2ldm :: LDAPModOp -> [(String, String)] -> [LDAPMod]Source
Similar to list2ldm, but handles pairs with only one value.
Produced by Haddock version 2.6.1