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

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

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 DN Source

Printer of DN string.

component :: LdapPrinter Component Source

Printer of RDN string.

attribute :: LdapPrinter Attribute Source

Printer of attribute pair string in RDN.

ldifDN :: LdapPrinter DN Source

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 LdifAttrValue Source

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

ldifEncodeAttrValue :: LdapPrinter AttrValue Source

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.