mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
Add basic LDAP structs
This commit is contained in:
parent
bbecb47c59
commit
4cefa1ecc4
28
src/domain/messages.rs
Normal file
28
src/domain/messages.rs
Normal file
@ -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,
|
||||||
|
}
|
1
src/domain/mod.rs
Normal file
1
src/domain/mod.rs
Normal file
@ -0,0 +1 @@
|
|||||||
|
mod messages;
|
Loading…
Reference in New Issue
Block a user