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
4 changes: 1 addition & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,14 @@ jobs:
matrix:
rust:
- stable
- 1.63.0
- 1.68.0
- nightly
steps:
- uses: actions/checkout@v5
- name: Install ${{ matrix.rust }} toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Cargo update
run: cargo update
- run: RUSTFLAGS="-D warnings" cargo check

test_features:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@

### Thanks

## 0.6.0

### Changed/Fixed

- Added encoding LDAP messages to BER
- Set MSRV to 1.68

## 0.5.0

### Changed/Fixed
Expand Down
64 changes: 41 additions & 23 deletions Cargo.lock

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

12 changes: 8 additions & 4 deletions 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 @@ -10,7 +10,7 @@ homepage = "https://github.com/rusticata/ldap-parser"
repository = "https://github.com/rusticata/ldap-parser.git"
categories = ["parser-implementations"]
readme = "README.md"
rust-version = "1.63"
rust-version = "1.68"

include = [
"LICENSE-*",
Expand All @@ -24,17 +24,21 @@ include = [
"tests/*.rs"
]

[features]
default = []
encoder = []

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
asn1-rs = "0.7"
rusticata-macros = "4.0"
rusticata-macros = "5.0"
thiserror = "2.0"

[dev-dependencies]
hex-literal = "0.4"
hex-literal = "0.4" #Note: 1.0+ require rust edition 2024, which is larger than our current MSRV 1.68

[package.metadata.cargo_check_external_types]
allowed_external_types = [
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