Copyright | Copyright (C) 2005-2007 John Goerzen |
---|---|
License | BSD |
Maintainer | John Goerzen, |
Safe Haskell | Safe |
Language | Haskell98 |
LDAP
Contents
Description
Maintainer : jgoerzen@complete.org Stability : provisional Portability: portable
Top-level LDAP module.
Written by John Goerzen, jgoerzen@complete.org
Welcome to the LDAP interface for Haskell. Please see one of the sections below for more information.
This package comes from:
Synopsis
- module LDAP.Types
- module LDAP.Init
- data LDAPEntry = LDAPEntry {}
- data SearchAttributes
- = LDAPNoAttrs
- | LDAPAllUserAttrs
- | LDAPAttrList [String]
- ldapSearch :: LDAP -> Maybe String -> LDAPScope -> Maybe String -> SearchAttributes -> Bool -> IO [LDAPEntry]
- data LDAPMod = LDAPMod {}
- ldapModify :: LDAP -> String -> [LDAPMod] -> IO ()
- ldapAdd :: LDAP -> String -> [LDAPMod] -> IO ()
- ldapDelete :: LDAP -> String -> IO ()
- ldapRename :: LDAP -> String -> String -> String -> IO ()
- list2ldm :: LDAPModOp -> [(String, [String])] -> [LDAPMod]
- pairs2ldm :: LDAPModOp -> [(String, String)] -> [LDAPMod]
- module LDAP.Exceptions
- module LDAP.Data
- module LDAP.Constants
Basic Types
module LDAP.Types
Initialization
module LDAP.Init
Searching
Constructors
LDAPEntry | |
data SearchAttributes #
Defines what attributes to return with the search result.
Constructors
LDAPNoAttrs | No attributes |
LDAPAllUserAttrs | User attributes only |
LDAPAttrList [String] | User-specified list |
Instances
Eq SearchAttributes # | |
Defined in LDAP.Search Methods (==) :: SearchAttributes -> SearchAttributes -> Bool (/=) :: SearchAttributes -> SearchAttributes -> Bool | |
Show SearchAttributes # | |
Defined in LDAP.Search Methods showsPrec :: Int -> SearchAttributes -> ShowS show :: SearchAttributes -> String showList :: [SearchAttributes] -> ShowS |
Arguments
:: LDAP | LDAP connection object |
-> Maybe String | Base DN for search, if any |
-> LDAPScope | Scope of the search |
-> Maybe String | Filter to be used (none if Nothing) |
-> SearchAttributes | Desired attributes in result set |
-> Bool | If True, exclude attribute values (return types only) |
-> IO [LDAPEntry] |
Adding, Deleting, and Altering
Constructors
LDAPMod | |
ldapDelete :: LDAP -> String -> IO () #
Delete the specified DN
ldapRename :: LDAP -> String -> String -> String -> IO () #
Rename DN to new DN
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.
Error Handling
module LDAP.Exceptions
Haskell enumerated LDAP types
module LDAP.Data
Other LDAP constants
module LDAP.Constants