feat: Start dummy in-memory database
This commit is contained in:
parent
1ef02c58dd
commit
bdb5008914
9 changed files with 181 additions and 3 deletions
|
|
@ -1,9 +1,10 @@
|
|||
use ldap3_proto::LdapMsg;
|
||||
|
||||
use crate::db::{Database, DatabaseInterface};
|
||||
use crate::ldap::{LdapStream, LdapStreamError};
|
||||
|
||||
#[tracing::instrument(name = "ldap", skip(s), fields(session = %s.session))]
|
||||
pub async fn ldap_handler(mut s: LdapStream) {
|
||||
#[tracing::instrument(name = "ldap", skip(s, db), fields(session = %s.session))]
|
||||
pub async fn ldap_handler<D: DatabaseInterface>(mut s: LdapStream, db: Database<D>) {
|
||||
tracing::info! {
|
||||
remote_addr = ?s.remote_addr,
|
||||
"New client connection"
|
||||
|
|
|
|||
Loading…
Reference in a new issue