Andrea Bedini
824b44ac22
Decode responses with Asn1.BER not Asn1.DER
...
According to RFC 4511 section 5.1:
The protocol elements of LDAP SHALL be encoded for exchange using the
Basic Encoding Rules [BER] of [ASN.1] with the following restrictions
[...]
The library does not have much choice except accepting everything the
server throws at it, therefore it makes sense using the more lax BER
encoding to parse server responses.
Using DER is still ok for the encoding part since DER is still a subset
of BER, and anything accepting BER will accept DER too.
2017-07-04 09:32:07 +08:00
Matvey Aksenov
b92564e783
Refactoring.
2017-02-27 21:19:29 +00:00
Matvey Aksenov
f2d0a73aa8
Simplify the Host datatype.
2017-02-27 21:07:26 +00:00
Matvey Aksenov
ce4e99b7d6
Add the misssing bangs.
2017-02-27 20:54:45 +00:00
Matthias Hörmann
9921b3178e
implement SASL EXTERNAL authentication (tested with OpenLDAP and client-side certificates as the external auth)
2017-01-17 22:03:23 +01:00
Matthias Hörmann
cbeafaf99a
type annotations in hlint GHC needed when using REPL
2017-01-17 22:02:21 +01:00
Matvey Aksenov
e9e9f35276
Cosmetics.
2016-12-27 15:56:30 +00:00
Matthias Hörmann
889c66a046
allow access to TLSSettings for the connection, e.g. for use with client side certificates
2016-12-27 15:52:34 +00:00
Matvey Aksenov
687524926f
Minor adjustments
2015-04-11 16:40:40 +00:00
Matvey Aksenov
79283cd3df
Add even more documentation
2015-04-11 16:15:46 +00:00
Matvey Aksenov
e4df6337ab
Add more documentation
...
Also, add many links to RFC, improve LDAPOID handling, and
other miscellaneous stuff.
2015-04-08 20:12:39 +00:00
Matvey Aksenov
aea85536cf
React on Unsolicited Notifications
...
Also improves the behavior when an `IOException` is encountered:
only exceptions directly related to LDAP are trapped by `with`.
2015-04-04 17:41:40 +00:00
Matvey Aksenov
9ab5760b8e
Support IntermediateResponse
2015-04-04 11:07:00 +00:00
Matvey Aksenov
273c29e30a
Improve the Search operation support
...
- Test `approximate` matches (even if they are mostly useless)
- Partially support `Extensible` matching
- Parse and ignore `SearchResultReference` responses, if any
2015-04-04 10:16:18 +00:00
Matvey Aksenov
e9ff0c17c3
Haddock markup fixes
2015-04-04 07:57:16 +00:00
Matvey Aksenov
dd1a89d426
Support ModifyDN
2015-04-03 22:28:20 +00:00
Matvey Aksenov
ebccd8628f
Set up Travis CI builds against GHC 7.6.3, 7.8.4, and 7.10.1
2015-04-03 21:15:43 +00:00
Matvey Aksenov
ab79efd94c
Implement Extended Operation support
2015-04-03 16:18:11 +00:00
Matvey Aksenov
1c9bd11626
Extract as much useful information as possible from errors
2015-04-03 15:13:52 +00:00
Matvey Aksenov
51f61cea6c
Support Modify
2015-04-03 13:38:44 +00:00
Matvey Aksenov
3543e6a0b6
Support Compare
2015-04-01 23:19:29 +00:00
Matvey Aksenov
c65895bb59
Support "insecure" TLS.
...
In addition to the plaintext and "secure" TLS modes. It's useful
when one authenticates against a LDAP server with a self-signed
certificate, for example.
2015-04-01 22:19:00 +00:00
Matvey Aksenov
e56c2b41c9
Shuffle things around
2015-04-01 21:42:14 +00:00
Matvey Aksenov
e087f3eb99
Support Delete
2015-04-01 20:44:09 +00:00
Matvey Aksenov
4b8863c1e4
Support Add
2015-04-01 20:10:10 +00:00
Matvey Aksenov
aa4f17b354
Mock LDAP server for testing
2015-03-31 21:44:18 +00:00
Matvey Aksenov
3630ddf506
Add tests for the Bind operation
2015-03-28 11:11:32 +00:00
Matvey Aksenov
86f256fbd8
SizeLimitExceeded isn't either
2015-03-28 10:37:16 +00:00
Matvey Aksenov
2013999e24
AdminLimitExceeded is not really an error for the Search operation
2015-03-28 10:32:34 +00:00
Matvey Aksenov
c9d034f952
Fix the encoding of the `present' filter
2015-03-28 10:29:55 +00:00
Matvey Aksenov
7aa2703319
Initial commit
...
Only Bind and Search operations are (partially) implemented. More
tests and documentation are needed.
2015-03-28 12:13:51 +03:00