Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ldap-parser"
version = "0.5.0"
version = "0.6.0"
description = "Parser for the LDAP protocol (RFC 4511)"
authors = ["Pierre Chifflier <chifflier@wzdftpd.net>"]
edition = "2018"
Expand All @@ -24,6 +24,12 @@ include = [
"tests/*.rs"
]

[features]
default = []
encoder = []

der = [] #Nonstandard; encodes as valid DER instead of LDAP-BER

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ programming), tests, and fuzzing. It also aims to be panic-free.
The code is available on [Github](https://github.com/rusticata/ldap-parser)
and is part of the [Rusticata](https://github.com/rusticata) project.

# Examples
## Examples

Parsing an LDAP message (in BER format):

Expand Down Expand Up @@ -52,7 +52,15 @@ match res {

<!-- cargo-rdme end -->

## Changes
# Encoding
Using the `encoding` feature, this library also allows to encode LDAP messages.

While this uses the `ToDer`-Trait from the underlying `asn1-rs`-Crate,
the messages are encoded in the LDAP BER variant, not actual DER
(the difference being primarily that DER requires explicit tagging,
while the ASN.1 definition for LDAP requests implicit tagging)

# Changes

See [CHANGELOG.md](CHANGELOG.md)

Expand Down
Loading
Loading