{"id":26794610,"url":"https://github.com/rusticata/ldap-parser","last_synced_at":"2025-10-26T13:47:41.906Z","repository":{"id":40350693,"uuid":"314803862","full_name":"rusticata/ldap-parser","owner":"rusticata","description":"LDAP parser written in pure Rust. Fast, zero-copy, safe.","archived":false,"fork":false,"pushed_at":"2025-03-18T07:45:47.000Z","size":79,"stargazers_count":12,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T17:34:06.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rusticata.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-21T12:11:50.000Z","updated_at":"2025-02-10T12:44:55.000Z","dependencies_parsed_at":"2024-02-29T12:14:05.402Z","dependency_job_id":"3c46e333-56dc-4370-8fcd-fe8cdef0074d","html_url":"https://github.com/rusticata/ldap-parser","commit_stats":{"total_commits":28,"total_committers":1,"mean_commits":28.0,"dds":0.0,"last_synced_commit":"e2d5f5ec37e361aee1b05d99b0af47ecadbb3f11"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusticata%2Fldap-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusticata%2Fldap-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusticata%2Fldap-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusticata%2Fldap-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rusticata","download_url":"https://codeload.github.com/rusticata/ldap-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250296134,"owners_count":21407037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-29T17:28:17.735Z","updated_at":"2025-10-26T13:47:41.897Z","avatar_url":"https://github.com/rusticata.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Maintenance](https://img.shields.io/badge/maintenance-activly--developed-brightgreen.svg)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE-MIT)\n[![Apache License 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](./LICENSE-APACHE)\n[![docs.rs](https://docs.rs/ldap-parser/badge.svg)](https://docs.rs/ldap-parser)\n[![crates.io](https://img.shields.io/crates/v/ldap-parser.svg)](https://crates.io/crates/ldap-parser)\n[![Github CI](https://github.com/rusticata/ldap-parser/workflows/Continuous%20integration/badge.svg)](https://github.com/rusticata/ldap-parser/actions)\n[![Minimum rustc version](https://img.shields.io/badge/rustc-1.44.0+-lightgray.svg)](#rust-version-requirements)\n\n\u003c!-- cargo-rdme start --\u003e\n\n# LDAP Parser\n\nA Lightweight Directory Access Protocol (LDAP) ([RFC4511]) parser, implemented with the\n[nom](https://github.com/Geal/nom) parser combinator framework.\n\nIt is written in pure Rust, fast, and makes extensive use of zero-copy. A lot of care is taken\nto ensure security and safety of this crate, including design (recursion limit, defensive\nprogramming), tests, and fuzzing. It also aims to be panic-free.\n\nThe code is available on [Github](https://github.com/rusticata/ldap-parser)\nand is part of the [Rusticata](https://github.com/rusticata) project.\n\n# Examples\n\nParsing an LDAP message (in BER format):\n\n```rust\nuse ldap_parser::FromBer;\nuse ldap_parser::ldap::{LdapMessage, MessageID, ProtocolOp, ProtocolOpTag};\n\nstatic DATA: \u0026[u8] = include_bytes!(\"../assets/message-search-request-01.bin\");\n\nlet res = LdapMessage::from_ber(DATA);\nmatch res {\n    Ok((rem, msg)) =\u003e {\n        assert!(rem.is_empty());\n        //\n        assert_eq!(msg.message_id, MessageID(4));\n        assert_eq!(msg.protocol_op.tag(), ProtocolOpTag::SearchRequest);\n        match msg.protocol_op {\n            ProtocolOp::SearchRequest(req) =\u003e {\n                assert_eq!(req.base_object.0, \"dc=rccad,dc=net\");\n            },\n            _ =\u003e panic!(\"Unexpected message type\"),\n        }\n    },\n    _ =\u003e panic!(\"LDAP parsing failed: {:?}\", res),\n}\n```\n\n[RFC4511]: https://tools.ietf.org/html/rfc4511\n\n\u003c!-- cargo-rdme end --\u003e\n\n## Changes\n\nSee [CHANGELOG.md](CHANGELOG.md)\n\n# License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusticata%2Fldap-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frusticata%2Fldap-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusticata%2Fldap-parser/lists"}