From c5563def388aab5de35c67aa835c2896265f3377 Mon Sep 17 00:00:00 2001 From: Allan Zhang <6740989+allan2@users.noreply.github.com> Date: Mon, 6 Oct 2025 09:24:49 -0400 Subject: [PATCH 1/2] Use published sspi version --- Cargo.lock | 2 ++ crates/ironposh-client-core/Cargo.toml | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b3126f0..f3476ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3067,6 +3067,8 @@ dependencies = [ [[package]] name = "sspi" version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "523f6a99e26c1e6476a424d54bbda5354a01ee7f18b9d93dc48a8fd45ae8189b" dependencies = [ "async-dnssd", "async-recursion", diff --git a/crates/ironposh-client-core/Cargo.toml b/crates/ironposh-client-core/Cargo.toml index 05051bd..e3fcbd8 100644 --- a/crates/ironposh-client-core/Cargo.toml +++ b/crates/ironposh-client-core/Cargo.toml @@ -13,11 +13,10 @@ ironposh-xml = { path = "../ironposh-xml" } typed-builder = "0.21.0" base64 = "0.22.1" tracing = "0.1.41" -sspi = { path = "C:\\dev\\sspi-rs", features = ["ring"] } +sspi = { version = "0.16.1", features = ["ring"] } url = "2.5.7" whoami = "1.6.1" serde = { version = "1.0.228", features = ["derive"] } -# sspi = { version = "0.16.1", features = ["ring"] } [dev-dependencies] From 4c1174df206e28139c469086337104a719c099d9 Mon Sep 17 00:00:00 2001 From: Allan Zhang <6740989+allan2@users.noreply.github.com> Date: Mon, 6 Oct 2025 09:29:16 -0400 Subject: [PATCH 2/2] Fix lifetime may not live long enough error These fixes allow the crate to build. --- crates/ironposh-client-core/src/connector/auth_sequence.rs | 2 +- crates/ironposh-client-core/src/connector/authenticator.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ironposh-client-core/src/connector/auth_sequence.rs b/crates/ironposh-client-core/src/connector/auth_sequence.rs index 359a91e..12aa9f0 100644 --- a/crates/ironposh-client-core/src/connector/auth_sequence.rs +++ b/crates/ironposh-client-core/src/connector/auth_sequence.rs @@ -176,7 +176,7 @@ impl SspiAuthSequence { sec_ctx_holder: &'builder mut SecurityContextBuilderHolder<'ctx>, ) -> Result, PwshCoreError> where - 'ctx: 'builder, + 'builder: 'ctx, 'builder: 'generator, { Ok(match &mut self.context { diff --git a/crates/ironposh-client-core/src/connector/authenticator.rs b/crates/ironposh-client-core/src/connector/authenticator.rs index 65619d9..fbaf681 100644 --- a/crates/ironposh-client-core/src/connector/authenticator.rs +++ b/crates/ironposh-client-core/src/connector/authenticator.rs @@ -218,7 +218,7 @@ impl SspiAuthenticator { ) -> Result, PwshCoreError> where P: Sspi + SspiImpl, - 'ctx: 'builder, + 'builder: 'ctx, 'builder: 'generator,

::CredentialsHandle: Debug, {