Copyright | 2014 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell98 |
- type LdapParser = LdapParser
- runLdapParser :: Parser a -> ByteString -> Either String a
- dn :: LdapParser DN
- component :: LdapParser Component
- attribute :: LdapParser Attribute
- ldifDN :: LdapParser DN
- ldifAttr :: LdapParser a -> LdapParser (AttrType, a)
- openLdapEntry :: LdapParser a -> LdapParser (DN, [(AttrType, a)])
- openLdapData :: LdapParser a -> LdapParser [(DN, [(AttrType, a)])]
- openLdapDataBlocks :: [ByteString] -> [[ByteString]]
- ldifDecodeAttrValue :: LdapParser AttrValue
- ldifAttrValue :: Parser LdifAttrValue
- ldifDecodeB64Value :: LdifAttrValue -> Either String AttrValue
Documentation
type LdapParser = LdapParser Source
Parser context type for LDAP data stream
runLdapParser :: Parser a -> ByteString -> Either String a Source
Run LdapParser
context.
dn :: LdapParser DN Source
Parser of DN string.
component :: LdapParser Component Source
Parser of RDN string.
attribute :: LdapParser Attribute Source
Parser of attribute pair string in RDN.
ldifDN :: LdapParser DN Source
Parser of LDIF DN line.
ldifAttr :: LdapParser a -> LdapParser (AttrType, a) Source
Parser of LDIF attribute pair line.
Use with ldifDecodeAttrValue
or ldifAttrValue
parser, like ldifAttr ldifDecodeAttrValue
.
openLdapEntry :: LdapParser a -> LdapParser (DN, [(AttrType, a)]) Source
OpenLDAP data-stream block parser.
Use with ldifDecodeAttrValue
or ldifAttrValue
parser, like openLdapEntry ldifDecodeAttrValue
.
openLdapData :: LdapParser a -> LdapParser [(DN, [(AttrType, a)])] Source
OpenLDAP data-stream block list parser.
Use with ldifDecodeAttrValue
or ldifAttrValue
parser, like openLdapData ldifDecodeAttrValue
.
openLdapDataBlocks :: [ByteString] -> [[ByteString]] Source
Chunking lines of OpenLDAP data stream.
ldifDecodeAttrValue :: LdapParser AttrValue Source
Parser of LDIF attribute value. This parser decodes base64 string.
Available combinator parser to pass ldifAttr
or openLdapEntry
, etc ...
ldifAttrValue :: Parser LdifAttrValue Source
Parser of LDIF attribute value which may be base64 encoded.
Available combinator parser to pass ldifAttr
or openLdapEntry
, etc ...
ldifDecodeB64Value :: LdifAttrValue -> Either String AttrValue Source
Decode value string of attribute pair after stream parsing.