Go to file
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
example Simplify the Host datatype. 2017-02-27 21:07:26 +00:00
npm Add GHC 8.0 to the test matrix. 2016-08-27 17:35:02 +00:00
src/Ldap Decode responses with Asn1.BER not Asn1.DER 2017-07-04 09:32:07 +08:00
ssl Support "insecure" TLS. 2015-04-01 22:19:00 +00:00
test Simplify the Host datatype. 2017-02-27 21:07:26 +00:00
.gitignore add result to .gitignore 2016-12-27 15:52:34 +00:00
.travis.yml Maintenance. 2017-02-23 21:18:34 +00:00
.vim.custom Be honest about the ldapjs dependency. 2016-08-27 13:56:33 +00:00
CHANGELOG.markdown Maintenance. 2017-02-23 21:18:34 +00:00
default.nix Maintenance. 2017-02-23 21:18:34 +00:00
Gemfile Add some of the missing search filter tests 2015-04-01 07:38:05 +00:00
Guardfile Fire up a separate LDAP server instance for each example 2015-04-01 23:31:59 +00:00
ldap-client.cabal Start documenting changes going into the next release. 2016-12-27 17:09:48 +00:00
LICENSE Maintenance. 2017-02-23 21:18:34 +00:00
package.nix Be honest about the ldapjs dependency. 2016-08-27 13:56:33 +00:00
README.markdown Hackage badge 2016-08-27 13:56:33 +00:00
Setup.hs Initial commit 2015-03-28 12:13:51 +03:00
shell.nix Maintenance. 2017-02-23 21:18:34 +00:00

ldap-client

Hackage Build Status

This library implements (the parts of) RFC 4511

      Feature            |   RFC Section   |   Support

:--------------------------- |:---------------:|:-----------: Bind Operation | 4.2 | ✔ Unbind Operation | 4.3 | ✔ Unsolicited Notification | 4.4 | ✔ Notice of Disconnection | 4.4.1 | ✔ Search Operation | 4.5 | ✔* Modify Operation | 4.6 | ✔ Add Operation | 4.7 | ✔ Delete Operation | 4.8 | ✔ Modify DN Operation | 4.9 | ✔ Compare Operation | 4.10 | ✔ Abandon Operation | 4.11 | ✘ Extended Operation | 4.12 | ✔ IntermediateResponse Message | 4.13 | ✔ StartTLS Operation | 4.14 | ✔† LDAP over TLS | - | ✔

* The :dn thing is unsupported in Extensible matches
† Only serves as an example of Extended Operation. It's useless for all practical purposes as it does not actually enable TLS. In other words, use LDAP over TLS instead.