text-ldap-0.1.1.0: Parser and Printer for LDAP text data stream

Portabilityunknown
Stabilityexperimental
Maintainerex8k.hibino@gmail.com
Safe HaskellNone

Text.LDAP.Parser

Description

 

Synopsis

Documentation

type LdapParser = LdapParserSource

Parser context type for LDAP data stream

dn :: LdapParser DNSource

Parser of DN string.

component :: LdapParser ComponentSource

Parser of RDN string.

attribute :: LdapParser AttributeSource

Parser of attribute pair string in RDN.

ldifDN :: LdapParser DNSource

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 AttrValueSource

Parser of LDIF attribute value. This parser decodes base64 string. Available combinator parser to pass ldifAttr or openLdapEntry, etc ...

ldifAttrValue :: Parser LdifAttrValueSource

Parser of LDIF attribute value which may be base64 encoded. Available combinator parser to pass ldifAttr or openLdapEntry, etc ...

ldifDecodeB64Value :: LdifAttrValue -> Either String AttrValueSource

Decode value string of attribute pair after stream parsing.