LDAP-0.6.11: Haskell binding for C LDAP API
CopyrightCopyright (C) 2005 John Goerzen
LicenseBSD
MaintainerJohn Goerzen,
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

LDAP.Search

Description

LDAP Searching

Written by John Goerzen, jgoerzen@complete.org

Synopsis

Documentation

data SearchAttributes Source #

Defines what attributes to return with the search result.

Constructors

LDAPNoAttrs

No attributes

LDAPAllUserAttrs

User attributes only

LDAPAttrList [String]

User-specified list

Instances

Instances details
Eq SearchAttributes Source # 
Instance details

Defined in LDAP.Search

Show SearchAttributes Source # 
Instance details

Defined in LDAP.Search

Methods

showsPrec :: Int -> SearchAttributes -> ShowS

show :: SearchAttributes -> String

showList :: [SearchAttributes] -> ShowS

data LDAPEntry Source #

Constructors

LDAPEntry 

Fields

  • ledn :: String

    Distinguished Name of this object

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

    Mapping from attribute name to values

Instances

Instances details
Eq LDAPEntry Source # 
Instance details

Defined in LDAP.Search

Methods

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

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

Show LDAPEntry Source # 
Instance details

Defined in LDAP.Search

Methods

showsPrec :: Int -> LDAPEntry -> ShowS

show :: LDAPEntry -> String

showList :: [LDAPEntry] -> ShowS

data LDAPScope Source #

Instances

Instances details
Enum LDAPScope Source # 
Instance details

Defined in LDAP.Data

Eq LDAPScope Source # 
Instance details

Defined in LDAP.Data

Methods

(==) :: LDAPScope -> LDAPScope -> Bool

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

Ord LDAPScope Source # 
Instance details

Defined in LDAP.Data

Methods

compare :: LDAPScope -> LDAPScope -> Ordering

(<) :: LDAPScope -> LDAPScope -> Bool

(<=) :: LDAPScope -> LDAPScope -> Bool

(>) :: LDAPScope -> LDAPScope -> Bool

(>=) :: LDAPScope -> LDAPScope -> Bool

max :: LDAPScope -> LDAPScope -> LDAPScope

min :: LDAPScope -> LDAPScope -> LDAPScope

Show LDAPScope Source # 
Instance details

Defined in LDAP.Data

Methods

showsPrec :: Int -> LDAPScope -> ShowS

show :: LDAPScope -> String

showList :: [LDAPScope] -> ShowS

ldapSearch Source #

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]