LDAP-0.6.12: Haskell binding for C LDAP API

CopyrightCopyright (C) 2005-2007 John Goerzen
LicenseBSD
MaintainerJohn Goerzen,
Safe HaskellSafe
LanguageHaskell98

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:

http://software.complete.org/ldap-haskell

Synopsis

Basic Types

module LDAP.Types

Initialization

module LDAP.Init

Searching

data LDAPEntry #

Constructors

LDAPEntry 

Fields

  • ledn :: String

    Distinguished Name of this object

  • leattrs :: [(String, [String])]

    Mapping from attribute name to values

Instances
Eq LDAPEntry # 
Instance details

Defined in LDAP.Search

Methods

(==) :: LDAPEntry -> LDAPEntry -> Bool

(/=) :: LDAPEntry -> LDAPEntry -> Bool

Show LDAPEntry # 
Instance details

Defined in LDAP.Search

Methods

showsPrec :: Int -> LDAPEntry -> ShowS

show :: LDAPEntry -> String

showList :: [LDAPEntry] -> ShowS

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 # 
Instance details

Defined in LDAP.Search

Show SearchAttributes # 
Instance details

Defined in LDAP.Search

Methods

showsPrec :: Int -> SearchAttributes -> ShowS

show :: SearchAttributes -> String

showList :: [SearchAttributes] -> ShowS

ldapSearch #

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

data LDAPMod #

Constructors

LDAPMod 

Fields

Instances
Eq LDAPMod # 
Instance details

Defined in LDAP.Modify

Methods

(==) :: LDAPMod -> LDAPMod -> Bool

(/=) :: LDAPMod -> LDAPMod -> Bool

Show LDAPMod # 
Instance details

Defined in LDAP.Modify

Methods

showsPrec :: Int -> LDAPMod -> ShowS

show :: LDAPMod -> String

showList :: [LDAPMod] -> ShowS

ldapModify #

Arguments

:: LDAP

LDAP connection object

-> String

DN to modify

-> [LDAPMod]

Changes to make

-> IO () 

ldapAdd #

Arguments

:: LDAP

LDAP connection object

-> String

DN to add

-> [LDAPMod]

Items to add

-> IO () 

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

Haskell enumerated LDAP types

module LDAP.Data

Other LDAP constants