| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Ldap.Asn1.Type
- data LdapMessage op = LdapMessage {
- ldapMessageId :: !Id
- ldapMessageOp :: !op
- ldapMessageControls :: !(Maybe Controls)
- newtype Id = Id {}
- data ProtocolClientOp
- = BindRequest Int8 LdapDn AuthenticationChoice
- | UnbindRequest
- | SearchRequest LdapDn Scope DerefAliases Int32 Int32 Bool Filter AttributeSelection
- | ModifyRequest LdapDn [(Operation, PartialAttribute)]
- | AddRequest LdapDn AttributeList
- | DeleteRequest LdapDn
- | ModifyDnRequest LdapDn RelativeLdapDn Bool (Maybe LdapDn)
- | CompareRequest LdapDn AttributeValueAssertion
- | ExtendedRequest LdapOid (Maybe ByteString)
- data ProtocolServerOp
- = BindResponse LdapResult (Maybe ByteString)
- | SearchResultEntry LdapDn PartialAttributeList
- | SearchResultReference (NonEmpty Uri)
- | SearchResultDone LdapResult
- | ModifyResponse LdapResult
- | AddResponse LdapResult
- | DeleteResponse LdapResult
- | ModifyDnResponse LdapResult
- | CompareResponse LdapResult
- | ExtendedResponse LdapResult (Maybe LdapOid) (Maybe ByteString)
- data AuthenticationChoice = Simple ByteString
- data Scope
- data DerefAliases
- data Filter
- = And (NonEmpty Filter)
- | Or (NonEmpty Filter)
- | Not Filter
- | EqualityMatch AttributeValueAssertion
- | Substrings SubstringFilter
- | GreaterOrEqual AttributeValueAssertion
- | LessOrEqual AttributeValueAssertion
- | Present AttributeDescription
- | ApproxMatch AttributeValueAssertion
- | ExtensibleMatch MatchingRuleAssertion
- data SubstringFilter = SubstringFilter AttributeDescription (NonEmpty Substring)
- data Substring
- data MatchingRuleAssertion = MatchingRuleAssertion (Maybe MatchingRuleId) (Maybe AttributeDescription) AssertionValue Bool
- newtype MatchingRuleId = MatchingRuleId LdapString
- newtype AttributeSelection = AttributeSelection [LdapString]
- newtype AttributeList = AttributeList [Attribute]
- newtype PartialAttributeList = PartialAttributeList [PartialAttribute]
- newtype Controls = Controls [Control]
- data Control = Control LdapOid Bool (Maybe ByteString)
- data LdapResult = LdapResult ResultCode LdapDn LdapString (Maybe ReferralUris)
- data ResultCode
- = Success
- | OperationError
- | ProtocolError
- | TimeLimitExceeded
- | SizeLimitExceeded
- | CompareFalse
- | CompareTrue
- | AuthMethodNotSupported
- | StrongerAuthRequired
- | Referral
- | AdminLimitExceeded
- | UnavailableCriticalExtension
- | ConfidentialityRequired
- | SaslBindInProgress
- | NoSuchAttribute
- | UndefinedAttributeType
- | InappropriateMatching
- | ConstraintViolation
- | AttributeOrValueExists
- | InvalidAttributeSyntax
- | NoSuchObject
- | AliasProblem
- | InvalidDNSyntax
- | AliasDereferencingProblem
- | InappropriateAuthentication
- | InvalidCredentials
- | InsufficientAccessRights
- | Busy
- | Unavailable
- | UnwillingToPerform
- | LoopDetect
- | NamingViolation
- | ObjectClassViolation
- | NotAllowedOnNonLeaf
- | NotAllowedOnRDN
- | EntryAlreadyExists
- | ObjectClassModsProhibited
- | AffectsMultipleDSAs
- | Other
- newtype AttributeDescription = AttributeDescription LdapString
- newtype AttributeValue = AttributeValue ByteString
- data AttributeValueAssertion = AttributeValueAssertion AttributeDescription AssertionValue
- newtype AssertionValue = AssertionValue ByteString
- data Attribute = Attribute AttributeDescription (NonEmpty AttributeValue)
- data PartialAttribute = PartialAttribute AttributeDescription [AttributeValue]
- newtype LdapDn = LdapDn LdapString
- newtype RelativeLdapDn = RelativeLdapDn LdapString
- newtype ReferralUris = ReferralUris (NonEmpty Uri)
- newtype Uri = Uri LdapString
- data Operation
- newtype LdapString = LdapString Text
- newtype LdapOid = LdapOid ByteString
Documentation
data LdapMessage op Source
Constructors
| LdapMessage | |
Fields
| |
Instances
| Eq op => Eq (LdapMessage op) Source | |
| Ord op => Ord (LdapMessage op) Source | |
| Show op => Show (LdapMessage op) Source | |
| ToAsn1 op => ToAsn1 (LdapMessage op) Source | LDAPMessage ::= SEQUENCE {
messageID MessageID,
protocolOp CHOICE {
bindRequest BindRequest,
bindResponse BindResponse,
unbindRequest UnbindRequest,
searchRequest SearchRequest,
searchResEntry SearchResultEntry,
searchResDone SearchResultDone,
searchResRef SearchResultReference,
addRequest AddRequest,
addResponse AddResponse,
... },
controls [0] Controls OPTIONAL }
|
| FromAsn1 op => FromAsn1 (LdapMessage op) Source | LDAPMessage ::= SEQUENCE {
messageID MessageID,
protocolOp CHOICE {
bindRequest BindRequest,
bindResponse BindResponse,
unbindRequest UnbindRequest,
searchRequest SearchRequest,
searchResEntry SearchResultEntry,
searchResDone SearchResultDone,
searchResRef SearchResultReference,
addRequest AddRequest,
addResponse AddResponse,
... },
controls [0] Controls OPTIONAL }
|
data ProtocolClientOp Source
Constructors
Instances
| Eq ProtocolClientOp Source | |
| Ord ProtocolClientOp Source | |
| Show ProtocolClientOp Source | |
| ToAsn1 ProtocolClientOp Source | BindRequest ::= [APPLICATION 0] SEQUENCE {
version INTEGER (1 .. 127),
name LDAPDN,
authentication AuthenticationChoice }
UnbindRequest ::= [APPLICATION 2] NULL SearchRequest ::= [APPLICATION 3] SEQUENCE {
baseObject LDAPDN,
scope ENUMERATED {
baseObject (0),
singleLevel (1),
wholeSubtree (2),
... },
derefAliases ENUMERATED {
neverDerefAliases (0),
derefInSearching (1),
derefFindingBaseObj (2),
derefAlways (3) },
sizeLimit INTEGER (0 .. maxInt),
timeLimit INTEGER (0 .. maxInt),
typesOnly BOOLEAN,
filter Filter,
attributes AttributeSelection }
ModifyRequest ::= [APPLICATION 6] SEQUENCE {
object LDAPDN,
changes SEQUENCE OF change SEQUENCE {
operation ENUMERATED {
add (0),
delete (1),
replace (2),
... },
modification PartialAttribute } }
AddRequest ::= [APPLICATION 8] SEQUENCE {
entry LDAPDN,
attributes AttributeList }
DelRequest ::= [APPLICATION 10] LDAPDN ModifyDNRequest ::= [APPLICATION 12] SEQUENCE {
entry LDAPDN,
newrdn RelativeLDAPDN,
deleteoldrdn BOOLEAN,
newSuperior [0] LDAPDN OPTIONAL }
CompareRequest ::= [APPLICATION 14] SEQUENCE {
entry LDAPDN,
ava AttributeValueAssertion }
ExtendedRequest ::= [APPLICATION 23] SEQUENCE {
requestName [0] LDAPOID,
requestValue [1] OCTET STRING OPTIONAL }
|
data ProtocolServerOp Source
Constructors
Instances
| Eq ProtocolServerOp Source | |
| Ord ProtocolServerOp Source | |
| Show ProtocolServerOp Source | |
| FromAsn1 ProtocolServerOp Source | BindResponse ::= [APPLICATION 1] SEQUENCE {
COMPONENTS OF LDAPResult,
serverSaslCreds [7] OCTET STRING OPTIONAL }
SearchResultEntry ::= [APPLICATION 4] SEQUENCE {
objectName LDAPDN,
attributes PartialAttributeList }
SearchResultDone ::= [APPLICATION 5] LDAPResult ModifyResponse ::= [APPLICATION 7] LDAPResult AddResponse ::= [APPLICATION 9] LDAPResult DelResponse ::= [APPLICATION 11] LDAPResult CompareResponse ::= [APPLICATION 15] LDAPResult |
data AuthenticationChoice Source
Constructors
| Simple ByteString |
Instances
| Eq AuthenticationChoice Source | |
| Ord AuthenticationChoice Source | |
| Show AuthenticationChoice Source | |
| ToAsn1 AuthenticationChoice Source | AuthenticationChoice ::= CHOICE {
simple [0] OCTET STRING,
... }
|
Constructors
| BaseObject | |
| SingleLevel | |
| WholeSubtree |
data DerefAliases Source
Instances
Constructors
Instances
| Eq Filter Source | |
| Ord Filter Source | |
| Show Filter Source | |
| ToAsn1 Filter Source | Filter ::= CHOICE {
and [0] SET SIZE (1..MAX) OF filter Filter,
or [1] SET SIZE (1..MAX) OF filter Filter,
not [2] Filter,
equalityMatch [3] AttributeValueAssertion,
substrings [4] SubstringFilter,
greaterOrEqual [5] AttributeValueAssertion,
lessOrEqual [6] AttributeValueAssertion,
present [7] AttributeDescription,
approxMatch [8] AttributeValueAssertion,
extensibleMatch [9] MatchingRuleAssertion,
... }
|
data SubstringFilter Source
Constructors
| SubstringFilter AttributeDescription (NonEmpty Substring) |
Instances
| Eq SubstringFilter Source | |
| Ord SubstringFilter Source | |
| Show SubstringFilter Source | |
| ToAsn1 SubstringFilter Source | SubstringFilter ::= SEQUENCE {
type AttributeDescription,
substrings SEQUENCE SIZE (1..MAX) OF substring CHOICE {
initial [0] AssertionValue, -- can occur at most once
any [1] AssertionValue,
final [2] AssertionValue } -- can occur at most once
}
|
Constructors
| Initial AssertionValue | |
| Any AssertionValue | |
| Final AssertionValue |
data MatchingRuleAssertion Source
Constructors
| MatchingRuleAssertion (Maybe MatchingRuleId) (Maybe AttributeDescription) AssertionValue Bool |
Instances
| Eq MatchingRuleAssertion Source | |
| Ord MatchingRuleAssertion Source | |
| Show MatchingRuleAssertion Source | |
| ToAsn1 MatchingRuleAssertion Source | MatchingRuleAssertion ::= SEQUENCE {
matchingRule [1] MatchingRuleId OPTIONAL,
type [2] AttributeDescription OPTIONAL,
matchValue [3] AssertionValue,
dnAttributes [4] BOOLEAN DEFAULT FALSE }
|
newtype MatchingRuleId Source
Constructors
| MatchingRuleId LdapString |
Instances
| Eq MatchingRuleId Source | |
| Ord MatchingRuleId Source | |
| Show MatchingRuleId Source | |
| ToAsn1 MatchingRuleId Source | MatchingRuleId ::= LDAPString |
newtype AttributeSelection Source
Constructors
| AttributeSelection [LdapString] |
Instances
| Eq AttributeSelection Source | |
| Ord AttributeSelection Source | |
| Show AttributeSelection Source | |
| ToAsn1 AttributeSelection Source | AttributeSelection ::= SEQUENCE OF selector LDAPString |
newtype AttributeList Source
Constructors
| AttributeList [Attribute] |
Instances
| Eq AttributeList Source | |
| Ord AttributeList Source | |
| Show AttributeList Source | |
| ToAsn1 AttributeList Source | AttributeList ::= SEQUENCE OF attribute Attribute |
newtype PartialAttributeList Source
Constructors
| PartialAttributeList [PartialAttribute] |
Instances
| Eq PartialAttributeList Source | |
| Ord PartialAttributeList Source | |
| Show PartialAttributeList Source | |
| FromAsn1 PartialAttributeList Source | PartialAttributeList ::= SEQUENCE OF partialAttribute PartialAttribute |
Constructors
| Control LdapOid Bool (Maybe ByteString) |
data LdapResult Source
Constructors
| LdapResult ResultCode LdapDn LdapString (Maybe ReferralUris) |
Instances
| Eq LdapResult Source | |
| Ord LdapResult Source | |
| Show LdapResult Source | |
| FromAsn1 LdapResult Source | LDAPResult ::= SEQUENCE {
resultCode ENUMERATED {
success (0),
operationsError (1),
protocolError (2),
timeLimitExceeded (3),
sizeLimitExceeded (4),
compareFalse (5),
compareTrue (6),
authMethodNotSupported (7),
strongerAuthRequired (8),
-- 9 reserved --
referral (10),
adminLimitExceeded (11),
unavailableCriticalExtension (12),
confidentialityRequired (13),
saslBindInProgress (14),
noSuchAttribute (16),
undefinedAttributeType (17),
inappropriateMatching (18),
constraintViolation (19),
attributeOrValueExists (20),
invalidAttributeSyntax (21),
-- 22-31 unused --
noSuchObject (32),
aliasProblem (33),
invalidDNSyntax (34),
-- 35 reserved for undefined isLeaf --
aliasDereferencingProblem (36),
-- 37-47 unused --
inappropriateAuthentication (48),
invalidCredentials (49),
insufficientAccessRights (50),
busy (51),
unavailable (52),
unwillingToPerform (53),
loopDetect (54),
-- 55-63 unused --
namingViolation (64),
objectClassViolation (65),
notAllowedOnNonLeaf (66),
notAllowedOnRDN (67),
entryAlreadyExists (68),
objectClassModsProhibited (69),
-- 70 reserved for CLDAP --
affectsMultipleDSAs (71),
-- 72-79 unused --
other (80),
... },
matchedDN LDAPDN,
diagnosticMessage LDAPString,
referral [3] Referral OPTIONAL }
|
data ResultCode Source
Constructors
Instances
newtype AttributeDescription Source
Constructors
| AttributeDescription LdapString |
Instances
| Eq AttributeDescription Source | |
| Ord AttributeDescription Source | |
| Show AttributeDescription Source | |
| ToAsn1 AttributeDescription Source | AttributeDescription ::= LDAPString |
| FromAsn1 AttributeDescription Source | AttributeDescription ::= LDAPString |
newtype AttributeValue Source
Constructors
| AttributeValue ByteString |
Instances
| Eq AttributeValue Source | |
| Ord AttributeValue Source | |
| Show AttributeValue Source | |
| ToAsn1 AttributeValue Source | AttributeValue ::= OCTET STRING |
| FromAsn1 AttributeValue Source | AttributeValue ::= OCTET STRING |
data AttributeValueAssertion Source
Instances
| Eq AttributeValueAssertion Source | |
| Ord AttributeValueAssertion Source | |
| Show AttributeValueAssertion Source | |
| ToAsn1 AttributeValueAssertion Source | AttributeValueAssertion ::= SEQUENCE {
attributeDesc AttributeDescription,
assertionValue AssertionValue }
|
newtype AssertionValue Source
Constructors
| AssertionValue ByteString |
Instances
| Eq AssertionValue Source | |
| Ord AssertionValue Source | |
| Show AssertionValue Source | |
| ToAsn1 AssertionValue Source | AssertionValue ::= OCTET STRING |
Constructors
| Attribute AttributeDescription (NonEmpty AttributeValue) |
data PartialAttribute Source
Constructors
| PartialAttribute AttributeDescription [AttributeValue] |
Instances
| Eq PartialAttribute Source | |
| Ord PartialAttribute Source | |
| Show PartialAttribute Source | |
| ToAsn1 PartialAttribute Source | PartialAttribute ::= SEQUENCE {
type AttributeDescription,
vals SET OF value AttributeValue }
|
| FromAsn1 PartialAttribute Source | PartialAttribute ::= SEQUENCE {
type AttributeDescription,
vals SET OF value AttributeValue }
|
Constructors
| LdapDn LdapString |
newtype RelativeLdapDn Source
Constructors
| RelativeLdapDn LdapString |
Instances
| Eq RelativeLdapDn Source | |
| Ord RelativeLdapDn Source | |
| Show RelativeLdapDn Source | |
| ToAsn1 RelativeLdapDn Source | RelativeLDAPDN ::= LDAPString -- Constrained to <name-component> |
newtype ReferralUris Source
Constructors
| ReferralUris (NonEmpty Uri) |
Instances
| Eq ReferralUris Source | |
| Ord ReferralUris Source | |
| Show ReferralUris Source | |
| FromAsn1 ReferralUris Source | Referral ::= SEQUENCE SIZE (1..MAX) OF uri URI |
Constructors
| Uri LdapString |
newtype LdapString Source
The LDAPString is a notational convenience to indicate that, although strings of LDAPString type encode as ASN.1 OCTET STRING types, the [ISO10646] character set (a superset of [Unicode]) is used, encoded following the UTF-8 [RFC3629] algorithm.
Constructors
| LdapString Text |
Instances
| Eq LdapString Source | |
| Ord LdapString Source | |
| Show LdapString Source | |
| ToAsn1 LdapString Source | LDAPString ::= OCTET STRING -- UTF-8 encoded |
| FromAsn1 LdapString Source | LDAPString ::= OCTET STRING -- UTF-8 encoded, |