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

Portabilityunknown
Stabilityexperimental
Maintainerex8k.hibino@gmail.com
Safe HaskellNone

Text.LDAP.Printer

Description

 

Synopsis

Documentation

type LdapPrinter a = a -> LdapPutM ()Source

LdapPrinter a print type a into context

type LdapPutM = Writer (DList ByteString)Source

Printer context type for LDAP data stream

dn :: LdapPrinter DNSource

Printer of DN string.

component :: LdapPrinter ComponentSource

Printer of RDN string.

attribute :: LdapPrinter AttributeSource

Printer of attribute pair string in RDN.

ldifDN :: LdapPrinter DNSource

Printer of LDIF DN line.

ldifAttr :: LdapPrinter v -> LdapPrinter (AttrType, v)Source

Printer of LDIF attribute pair line. Use with ldifAttrValue or ldifEncodeAttrValue printer, like ldifAttr ldifEncodeAttrValue.

ldifAttrValue :: LdapPrinter LdifAttrValueSource

Printer of LDIF attribute value already encoded. Available printer combinator to pass ldifAttr or openLdapEntry, etc ...

ldifEncodeAttrValue :: LdapPrinter AttrValueSource

Printer of LDIF attribute value with encode not safe string. Available printer combinator to pass ldifAttr or openLdapEntry, etc ...

openLdapEntry :: LdapPrinter v -> LdapPrinter (DN, [(AttrType, v)])Source

OpenLDAP data-stream block printer. Use with ldifAttrValue or ldifEncodeAttrValue printer, like openLdapEntry ldifEncodeAttrValue.

openLdapData :: LdapPrinter v -> LdapPrinter [(DN, [(AttrType, v)])]Source

OpenLDAP data-stream block list printer. Use with ldifAttrValue or ldifEncodeAttrValue printer, like openLdapData ldifEncodeAttrValue.