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

Copyright2014 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe
LanguageHaskell98

Text.LDAP.Parser

Description

 

Synopsis

Documentation

type LdapParser = LdapParser Source #

Parser context type for LDAP data stream

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.