Safe Haskell | Safe-Inferred |
---|
LDIF related types
- data LDIF = LDIF {
- lcVersion :: Maybe ByteString
- lcEntries :: ![LDIFRecord]
- data LDIFRecord
- = ContentRecord {
- reDN :: !DN
- coAttrVals :: ![AttrValue]
- | ChangeRecord { }
- = ContentRecord {
- data Change
- = ChangeAdd {
- chAttrVals :: ![AttrValue]
- | ChangeDelete
- | ChangeModify { }
- | ChangeModDN
- = ChangeAdd {
- data Modify
- = ModAdd {
- modAttr :: !Attribute
- modAttrVals :: ![Value]
- | ModDelete {
- modAttr :: !Attribute
- modAttrVals :: ![Value]
- | ModReplace {
- modAttr :: !Attribute
- modAttrVals :: ![Value]
- = ModAdd {
- data DN = DN {
- dnAttrVals :: ![AttrValue]
- data LDIFType
- data Attribute = Attribute {
- aName :: ByteString
- data Value
- = Value {
- aVal :: ByteString
- | ValueI {
- aVal :: ByteString
- = Value {
- type AttrValue = (Attribute, Value)
- isContentRecord :: LDIFRecord -> Bool
- isChangeRecord :: LDIFRecord -> Bool
- getLDIFType :: LDIF -> LDIFType
Documentation
Represents LDIF structure, it can be either simply LDIF data dump or changes LDIF with LDAP operations
LDIF | |
|
data LDIFRecord Source
ContentRecord | Represents one data record within LDIF file with DN and content |
| |
ChangeRecord | Represents one change record within LDIF file with DN and content |
Represents one LDAP operation within changes LDIF
Represents ChangeModify operations upon one entry within given DN
ModAdd | |
| |
ModDelete | |
| |
ModReplace | |
|
Represents Distinguished Name (DN)
DN | |
|
Enumeration LDIF Types
LDIFContentType | LDIF with Content Records |
LDIFChangesType | LDIF with Changes Records |
LDIFMixedType | LDIF with both Content and Changes Records |
Attribute name is case-insensitive string
Attribute value is either case sensitive or insensitive string
Value | |
| |
ValueI | |
|
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)