From 3a0ea0a5d4dc5a537a7406df838cb6a6f345393f Mon Sep 17 00:00:00 2001 From: Pavlo Myroniuk Date: Mon, 8 Dec 2025 21:45:36 +0200 Subject: [PATCH 1/2] refactor(kdc): remove serde dependency; --- Cargo.lock | 1 - crates/kdc/Cargo.toml | 1 - crates/kdc/src/config.rs | 6 ++---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d4abc918..5f57c6bc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1553,7 +1553,6 @@ dependencies = [ "picky-asn1-der", "picky-asn1-x509", "picky-krb", - "serde", "thiserror 2.0.17", "time", "tracing", diff --git a/crates/kdc/Cargo.toml b/crates/kdc/Cargo.toml index 2478cf45..45ac921a 100644 --- a/crates/kdc/Cargo.toml +++ b/crates/kdc/Cargo.toml @@ -11,7 +11,6 @@ picky-asn1-x509.workspace = true picky-krb.workspace = true tracing.workspace = true time.workspace = true -serde.workspace = true thiserror = "2.0" argon2 = { version = "0.5", features = ["std"] } diff --git a/crates/kdc/src/config.rs b/crates/kdc/src/config.rs index 708ede42..4390f146 100644 --- a/crates/kdc/src/config.rs +++ b/crates/kdc/src/config.rs @@ -1,7 +1,5 @@ -use serde::{Deserialize, Serialize}; - /// Domain user credentials. -#[derive(PartialEq, Eq, Debug, Clone, Serialize, Deserialize)] +#[derive(PartialEq, Eq, Debug, Clone)] pub struct DomainUser { /// Username in FQDN format (e.g. "pw13@example.com"). pub username: String, @@ -16,7 +14,7 @@ pub struct DomainUser { /// Kerberos server config /// /// This config is used to configure the Kerberos server during RDP proxying. -#[derive(PartialEq, Eq, Debug, Clone, Serialize, Deserialize)] +#[derive(PartialEq, Eq, Debug, Clone)] pub struct KerberosServer { /// KDC and Kerberos Application Server realm. /// From 87a8154c82e18e5d4dfd5a53568bb0df0be400f8 Mon Sep 17 00:00:00 2001 From: Pavlo Myroniuk Date: Wed, 10 Dec 2025 18:23:12 +0200 Subject: [PATCH 2/2] refactor(kdc): make it publishable; --- crates/kdc/Cargo.toml | 7 ++++++- crates/kdc/README.md | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 crates/kdc/README.md diff --git a/crates/kdc/Cargo.toml b/crates/kdc/Cargo.toml index 45ac921a..d82cb5ac 100644 --- a/crates/kdc/Cargo.toml +++ b/crates/kdc/Cargo.toml @@ -2,7 +2,12 @@ name = "kdc" version = "0.1.0" edition = "2024" -publish = false +readme = "README.md" +license = "MIT/Apache-2.0" +homepage = "https://github.com/devolutions/sspi-rs" +repository = "https://github.com/devolutions/sspi-rs" +authors = ["Devolutions Inc. "] +description = "A minimal Rust implementation of the KDC (Key Distribution Center)" [dependencies] picky-asn1 = { workspace = true, features = ["time_conversion"] } diff --git a/crates/kdc/README.md b/crates/kdc/README.md new file mode 100644 index 00000000..0411eebe --- /dev/null +++ b/crates/kdc/README.md @@ -0,0 +1,3 @@ +## KDC + +A minimal Rust implementation of the KDC (Key Distribution Center).