adldap-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

ADLDAP.Types

Documentation

data ADCtx #

Constructors

ADCtx 

Fields

Instances
Eq ADCtx # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: ADCtx -> ADCtx -> Bool

(/=) :: ADCtx -> ADCtx -> Bool

Show ADCtx # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> ADCtx -> ShowS

show :: ADCtx -> String

showList :: [ADCtx] -> ShowS

data ADLDAPError #

Constructors

NotFound 
Instances
Eq ADLDAPError # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: ADLDAPError -> ADLDAPError -> Bool

(/=) :: ADLDAPError -> ADLDAPError -> Bool

Show ADLDAPError # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> ADLDAPError -> ShowS

show :: ADLDAPError -> String

showList :: [ADLDAPError] -> ShowS

type Realm = Text #

type Host = String #

type Port = Int #

data DnTag #

Instances
IsString DN # 
Instance details

Defined in ADLDAP.Types

Methods

fromString :: String -> DN

data KeyTag #

Instances
IsString Key # 
Instance details

Defined in ADLDAP.Types

Methods

fromString :: String -> Key

ToJSON (Tagged KeyTag Text) # 
Instance details

Defined in ADLDAP.Types

FromJSON (Tagged KeyTag Text) # 
Instance details

Defined in ADLDAP.Types

newtype Tagged tag a #

Constructors

Tagged 

Fields

Instances
IsString LdifMod # 
Instance details

Defined in ADLDAP.Types

IsString LdifRecs # 
Instance details

Defined in ADLDAP.Types

IsString Key # 
Instance details

Defined in ADLDAP.Types

Methods

fromString :: String -> Key

IsString DN # 
Instance details

Defined in ADLDAP.Types

Methods

fromString :: String -> DN

Eq a => Eq (Tagged tag a) # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: Tagged tag a -> Tagged tag a -> Bool

(/=) :: Tagged tag a -> Tagged tag a -> Bool

Ord a => Ord (Tagged tag a) # 
Instance details

Defined in ADLDAP.Types

Methods

compare :: Tagged tag a -> Tagged tag a -> Ordering #

(<) :: Tagged tag a -> Tagged tag a -> Bool

(<=) :: Tagged tag a -> Tagged tag a -> Bool

(>) :: Tagged tag a -> Tagged tag a -> Bool

(>=) :: Tagged tag a -> Tagged tag a -> Bool

max :: Tagged tag a -> Tagged tag a -> Tagged tag a

min :: Tagged tag a -> Tagged tag a -> Tagged tag a

Show a => Show (Tagged tag a) # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> Tagged tag a -> ShowS

show :: Tagged tag a -> String

showList :: [Tagged tag a] -> ShowS

Generic (Tagged tag a) # 
Instance details

Defined in ADLDAP.Types

Associated Types

type Rep (Tagged tag a) :: Type -> Type

Methods

from :: Tagged tag a -> Rep (Tagged tag a) x

to :: Rep (Tagged tag a) x -> Tagged tag a

ToJSON (Tagged KeyTag Text) # 
Instance details

Defined in ADLDAP.Types

FromJSON (Tagged KeyTag Text) # 
Instance details

Defined in ADLDAP.Types

type Rep (Tagged tag a) # 
Instance details

Defined in ADLDAP.Types

type Rep (Tagged tag a) = D1 (MetaData "Tagged" "ADLDAP.Types" "adldap-0.1.0.0-BUXFFOe5Cfa6Icc2101Owc" True) (C1 (MetaCons "Tagged" PrefixI True) (S1 (MetaSel (Just "unTagged") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)))

unTag :: Tagged tag a -> a #

type DN = Tagged DnTag Text #

type Key = Tagged KeyTag Text #

type Val = ByteString #

type Vals = Set Val #

data Attr #

Constructors

Attr !ADType !Vals 
Instances
Eq Attr # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: Attr -> Attr -> Bool

(/=) :: Attr -> Attr -> Bool

Show Attr # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> Attr -> ShowS

show :: Attr -> String

showList :: [Attr] -> ShowS

Generic Attr # 
Instance details

Defined in ADLDAP.Types

Associated Types

type Rep Attr :: Type -> Type

Methods

from :: Attr -> Rep Attr x

to :: Rep Attr x -> Attr

Semigroup Attr # 
Instance details

Defined in ADLDAP.Types

Methods

(<>) :: Attr -> Attr -> Attr #

sconcat :: NonEmpty Attr -> Attr #

stimes :: Integral b => b -> Attr -> Attr #

type Rep Attr # 
Instance details

Defined in ADLDAP.Types

type Rep Attr = D1 (MetaData "Attr" "ADLDAP.Types" "adldap-0.1.0.0-BUXFFOe5Cfa6Icc2101Owc" False) (C1 (MetaCons "Attr" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ADType) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Vals)))

type Attrs = Map Key Attr #

vals :: Attr -> Vals #

mkAttrs :: [(Key, Attr)] -> Attrs #

mkVal :: [Val] -> Set Val #

data Record #

Constructors

Record 

Fields

Instances
Eq Record # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: Record -> Record -> Bool

(/=) :: Record -> Record -> Bool

Show Record # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> Record -> ShowS

show :: Record -> String

showList :: [Record] -> ShowS

Generic Record # 
Instance details

Defined in ADLDAP.Types

Associated Types

type Rep Record :: Type -> Type

Methods

from :: Record -> Rep Record x

to :: Rep Record x -> Record

type Rep Record # 
Instance details

Defined in ADLDAP.Types

type Rep Record = D1 (MetaData "Record" "ADLDAP.Types" "adldap-0.1.0.0-BUXFFOe5Cfa6Icc2101Owc" False) (C1 (MetaCons "Record" PrefixI True) (S1 (MetaSel (Just "dn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DN) :*: S1 (MetaSel (Just "attrs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Attrs)))

data TextRecord #

Constructors

TextRecord 

Fields

Instances
Eq TextRecord # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: TextRecord -> TextRecord -> Bool

(/=) :: TextRecord -> TextRecord -> Bool

Show TextRecord # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> TextRecord -> ShowS

show :: TextRecord -> String

showList :: [TextRecord] -> ShowS

Generic TextRecord # 
Instance details

Defined in ADLDAP.Types

Associated Types

type Rep TextRecord :: Type -> Type

Methods

from :: TextRecord -> Rep TextRecord x

to :: Rep TextRecord x -> TextRecord

ToJSON TextRecord # 
Instance details

Defined in ADLDAP.Types

FromJSON TextRecord # 
Instance details

Defined in ADLDAP.Types

type Rep TextRecord # 
Instance details

Defined in ADLDAP.Types

type Rep TextRecord = D1 (MetaData "TextRecord" "ADLDAP.Types" "adldap-0.1.0.0-BUXFFOe5Cfa6Icc2101Owc" False) (C1 (MetaCons "TextRecord" PrefixI True) (S1 (MetaSel (Just "trDN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "trAttrs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Map Text (ADType, Set Text)))))

data RecOp #

Constructors

Add !Record 
Mod !DN ![AttrOp] 
Del !DN 
Mov !DN !DN 
Instances
Eq RecOp # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: RecOp -> RecOp -> Bool

(/=) :: RecOp -> RecOp -> Bool

Show RecOp # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> RecOp -> ShowS

show :: RecOp -> String

showList :: [RecOp] -> ShowS

data AttrOp #

Constructors

AddAttr 

Fields

DeleteAttr 

Fields

ReplaceAttr 

Fields

ModifyAttr 

Fields

Instances
Eq AttrOp # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: AttrOp -> AttrOp -> Bool

(/=) :: AttrOp -> AttrOp -> Bool

Show AttrOp # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> AttrOp -> ShowS

show :: AttrOp -> String

showList :: [AttrOp] -> ShowS

data ValOp #

Constructors

AddVals 

Fields

DelVals 

Fields

Instances
Eq ValOp # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: ValOp -> ValOp -> Bool

(/=) :: ValOp -> ValOp -> Bool

Show ValOp # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> ValOp -> ShowS

show :: ValOp -> String

showList :: [ValOp] -> ShowS

data ModOp #

Constructors

ModOp 

Fields

Instances
Eq ModOp # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: ModOp -> ModOp -> Bool

(/=) :: ModOp -> ModOp -> Bool

Show ModOp # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> ModOp -> ShowS

show :: ModOp -> String

showList :: [ModOp] -> ShowS

data LdifRecsTag #

Instances
IsString LdifRecs # 
Instance details

Defined in ADLDAP.Types

data LdifModTag #

Instances
IsString LdifMod # 
Instance details

Defined in ADLDAP.Types

type TypeMap = Map Key ADType #

class OID a where #

Methods

fromOID :: (String, Int, Maybe String) -> Maybe a #

toOID :: a -> Maybe (String, Int, Maybe String) #

Instances
OID ADType # 
Instance details

Defined in ADLDAP.Types

Methods

fromOID :: (String, Int, Maybe String) -> Maybe ADType #

toOID :: ADType -> Maybe (String, Int, Maybe String) #

data ADType #

Instances
Eq ADType # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: ADType -> ADType -> Bool

(/=) :: ADType -> ADType -> Bool

Ord ADType # 
Instance details

Defined in ADLDAP.Types

Methods

compare :: ADType -> ADType -> Ordering #

(<) :: ADType -> ADType -> Bool

(<=) :: ADType -> ADType -> Bool

(>) :: ADType -> ADType -> Bool

(>=) :: ADType -> ADType -> Bool

max :: ADType -> ADType -> ADType

min :: ADType -> ADType -> ADType

Show ADType # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> ADType -> ShowS

show :: ADType -> String

showList :: [ADType] -> ShowS

Generic ADType # 
Instance details

Defined in ADLDAP.Types

Associated Types

type Rep ADType :: Type -> Type

Methods

from :: ADType -> Rep ADType x

to :: Rep ADType x -> ADType

ToJSON ADType # 
Instance details

Defined in ADLDAP.Types

FromJSON ADType # 
Instance details

Defined in ADLDAP.Types

OID ADType # 
Instance details

Defined in ADLDAP.Types

Methods

fromOID :: (String, Int, Maybe String) -> Maybe ADType #

toOID :: ADType -> Maybe (String, Int, Maybe String) #

type Rep ADType # 
Instance details

Defined in ADLDAP.Types

type Rep ADType = D1 (MetaData "ADType" "ADLDAP.Types" "adldap-0.1.0.0-BUXFFOe5Cfa6Icc2101Owc" False) ((((C1 (MetaCons "Boolean" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Integer" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Enumeration" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "LargeInteger" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "ObjectAccessPoint" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ObjectDNString" PrefixI False) (U1 :: Type -> Type)))) :+: ((C1 (MetaCons "ObjectORName" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "ObjectDNBinary" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ObjectDSDN" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "ObjectPresentationAddress" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "ObjectReplicaLink" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "StringCase" PrefixI False) (U1 :: Type -> Type))))) :+: (((C1 (MetaCons "StringIA5" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "StringNTSecDesc" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "StringNumeric" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "StringObjectIdentifier" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "StringOctet" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "StringPrintable" PrefixI False) (U1 :: Type -> Type)))) :+: ((C1 (MetaCons "StringSid" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "StringTeletex" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "StringUnicode" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "StringUTCTime" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "StringGeneralizedTime" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "LinkedDN" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Key)))))))

type Filter = Tagged FilterTag Text #

data Scope #

Constructors

Base 
One 
Sub 
Instances
Eq Scope # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: Scope -> Scope -> Bool

(/=) :: Scope -> Scope -> Bool

Show Scope # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> Scope -> ShowS

show :: Scope -> String

showList :: [Scope] -> ShowS

newtype Authority #

Constructors

Authority Int 
Instances
Eq Authority # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: Authority -> Authority -> Bool

(/=) :: Authority -> Authority -> Bool

Show Authority # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> Authority -> ShowS

show :: Authority -> String

showList :: [Authority] -> ShowS

newtype RID #

Constructors

RID Int 
Instances
Eq RID # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: RID -> RID -> Bool

(/=) :: RID -> RID -> Bool

Show RID # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> RID -> ShowS

show :: RID -> String

showList :: [RID] -> ShowS

data ObjectSID #

Constructors

ObjectSID 

Fields

Instances
Eq ObjectSID # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: ObjectSID -> ObjectSID -> Bool

(/=) :: ObjectSID -> ObjectSID -> Bool

Show ObjectSID # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> ObjectSID -> ShowS

show :: ObjectSID -> String

showList :: [ObjectSID] -> ShowS

data ObjectGUID #

Constructors

ObjectGUID 

Fields

  • f1 :: Word32
     
  • f2 :: Word16
     
  • f3 :: Word16
     
  • f4 :: Word64
     
Instances
Eq ObjectGUID # 
Instance details

Defined in ADLDAP.Types

Methods

(==) :: ObjectGUID -> ObjectGUID -> Bool

(/=) :: ObjectGUID -> ObjectGUID -> Bool

Show ObjectGUID # 
Instance details

Defined in ADLDAP.Types

Methods

showsPrec :: Int -> ObjectGUID -> ShowS

show :: ObjectGUID -> String

showList :: [ObjectGUID] -> ShowS