Skip to content

Commit

Permalink
Update kerberos.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
irvingoujAtDevolution authored and CBenoit committed Nov 10, 2023
1 parent f2535ea commit 887f7bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/kerberos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use sspi::builders::EmptyInitializeSecurityContext;
use sspi::{
AcquireCredentialsHandleResult, ClientRequestFlags, CredentialsBuffers, DataRepresentation,
InitializeSecurityContextResult, KerberosConfig, SecurityBuffer, SecurityBufferType, SecurityStatus, Sspi,
Username,
};
use sspi::{Kerberos, SspiImpl};
use std::error::Error;
Expand Down Expand Up @@ -60,9 +61,8 @@ pub(crate) fn get_cred_handle(
password: String,
) -> AcquireCredentialsHandleResult<Option<CredentialsBuffers>> {
let identity = sspi::AuthIdentity {
username,
username: Username::parse(&username).expect("username is not in the correct format"),
password: password.into(),
domain: None,
};
let acq_creds_handle_result = kerberos
.acquire_credentials_handle()
Expand Down

0 comments on commit 887f7bc

Please sign in to comment.