LDAP-0.6.3: Haskell binding for C LDAP APIContentsIndex
LDAP.Search
MaintainerJohn Goerzen,
Description

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

LDAP Searching

Written by John Goerzen, jgoerzen@complete.org

Synopsis
data SearchAttributes
= LDAPNoAttrs
| LDAPAllUserAttrs
| LDAPAttrList [String]
data LDAPEntry = LDAPEntry {
ledn :: String
leattrs :: [(String, [String])]
}
data LDAPScope
= LdapScopeDefault
| LdapScopeBase
| LdapScopeOnelevel
| LdapScopeSubtree
| UnknownLDAPScope Int
ldapSearch :: LDAP -> Maybe String -> LDAPScope -> Maybe String -> SearchAttributes -> Bool -> IO [LDAPEntry]
Documentation
data SearchAttributes
Defines what attributes to return with the search result.
Constructors
LDAPNoAttrsNo attributes
LDAPAllUserAttrsUser attributes only
LDAPAttrList [String]User-specified list
show/hide Instances
data LDAPEntry
Constructors
LDAPEntry
ledn :: StringDistinguished Name of this object
leattrs :: [(String, [String])]Mapping from attribute name to values
show/hide Instances
data LDAPScope
Constructors
LdapScopeDefault
LdapScopeBase
LdapScopeOnelevel
LdapScopeSubtree
UnknownLDAPScope Int
show/hide Instances
ldapSearch
:: LDAPLDAP connection object
-> Maybe StringBase DN for search, if any
-> LDAPScopeScope of the search
-> Maybe StringFilter to be used (none if Nothing)
-> SearchAttributesDesired attributes in result set
-> BoolIf True, exclude attribute values (return types only)
-> IO [LDAPEntry]
Produced by Haddock version 0.8