You've already forked lldap
mirror of
https://github.com/lldap/lldap.git
synced 2026-04-05 12:32:57 +01:00
Add basic LDAP structs
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
|
||||
struct LdapMessage {
|
||||
message_id: u32,
|
||||
operation: LdapOperation,
|
||||
}
|
||||
|
||||
enum LdapOperation {
|
||||
BindRequest(BindRequest),
|
||||
BindResponse(BindResponse),
|
||||
//UnbindRequest(UnbindRequest),
|
||||
}
|
||||
|
||||
struct BindRequest {
|
||||
version: u8,
|
||||
name: String,
|
||||
authentication: AuthenticationChoice,
|
||||
}
|
||||
|
||||
enum AuthenticationChoice {
|
||||
Simple(String),
|
||||
// Sasl
|
||||
}
|
||||
|
||||
struct BindResponse {
|
||||
result_code: u8,
|
||||
matched_dn: String,
|
||||
diagnostic_message: String,
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
mod messages;
|
||||
Reference in New Issue
Block a user