LDAP-0.6.1: Haskell binding for C LDAP APIContentsIndex
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
Constructors
LdapModAdd
LdapModDelete
LdapModReplace
UnknownLDAPModOp Int
show/hide Instances
data LDAPMod
Constructors
LDAPMod
modOp :: LDAPModOpType of operation to perform
modType :: StringName of attribute to edit
modVals :: [String]New values
show/hide Instances
ldapAdd
:: LDAPLDAP connection object
-> StringDN to add
-> [LDAPMod]Items to add
-> IO ()
ldapModify
:: LDAPLDAP connection object
-> StringDN to modify
-> [LDAPMod]Changes to make
-> IO ()
ldapDelete :: LDAP -> String -> IO ()
Delete the specified DN
Utilities
list2ldm :: LDAPModOp -> [(String, [String])] -> [LDAPMod]
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]
Similar to list2ldm, but handles pairs with only one value.
Produced by Haddock version 0.8