ldif-0.0.12: The LDAP Data Interchange Format (LDIF) tools

Safe HaskellSafe-Inferred

Text.LDIF.Types

Description

LDIF related types

Synopsis

Documentation

data LDIF Source

Represents LDIF structure, it can be either simply LDIF data dump or changes LDIF with LDAP operations

Constructors

LDIF 

Instances

data LDIFRecord Source

Constructors

ContentRecord

Represents one data record within LDIF file with DN and content

Fields

reDN :: !DN
 
coAttrVals :: ![AttrValue]
 
ChangeRecord

Represents one change record within LDIF file with DN and content

Fields

reDN :: !DN
 
chOp :: !Change
 

data Change Source

Represents one LDAP operation within changes LDIF

Constructors

ChangeAdd 

Fields

chAttrVals :: ![AttrValue]
 
ChangeDelete 
ChangeModify 

Fields

chMods :: ![Modify]
 
ChangeModDN 

Instances

data Modify Source

Represents ChangeModify operations upon one entry within given DN

Constructors

ModAdd 

Fields

modAttr :: !Attribute
 
modAttrVals :: ![Value]
 
ModDelete 

Fields

modAttr :: !Attribute
 
modAttrVals :: ![Value]
 
ModReplace 

Fields

modAttr :: !Attribute
 
modAttrVals :: ![Value]
 

Instances

data DN Source

Represents Distinguished Name (DN)

Constructors

DN 

Fields

dnAttrVals :: ![AttrValue]
 

Instances

Eq DN 
Ord DN

Ord Instance for DN

Show DN 

data LDIFType Source

Enumeration LDIF Types

Constructors

LDIFContentType

LDIF with Content Records

LDIFChangesType

LDIF with Changes Records

LDIFMixedType

LDIF with both Content and Changes Records

Instances

data Attribute Source

Attribute name is case-insensitive string

Constructors

Attribute 

Fields

aName :: ByteString
 

data Value Source

Attribute value is either case sensitive or insensitive string

Constructors

Value 

Fields

aVal :: ByteString
 
ValueI 

Fields

aVal :: ByteString
 

Instances

type AttrValue = (Attribute, Value)Source

Pair of Atribute and Value

isContentRecord :: LDIFRecord -> BoolSource

Check if LDIFRecord is Content Record

isChangeRecord :: LDIFRecord -> BoolSource

Check if LDIFRecord is Change Record

getLDIFType :: LDIF -> LDIFTypeSource

Dettect from LDIF content the Type (Content, Changes, Mixed)