fixup! packages/kanidm: update unixd-authenticated.patch
This commit is contained in:
parent
ad7de0d455
commit
726491e780
1 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
diff --git a/unix_integration/resolver/src/idprovider/kanidm.rs b/unix_integration/resolver/src/idprovider/kanidm.rs
|
||||
index 63cedb4d5..4fff49f73 100644
|
||||
index 63cedb4d5..35c45fb0e 100644
|
||||
--- a/unix_integration/resolver/src/idprovider/kanidm.rs
|
||||
+++ b/unix_integration/resolver/src/idprovider/kanidm.rs
|
||||
@@ -7,6 +7,7 @@ use kanidm_proto::internal::OperationError;
|
||||
|
@ -43,8 +43,8 @@ index 63cedb4d5..4fff49f73 100644
|
|||
hmac_key,
|
||||
crypto_policy,
|
||||
pam_allow_groups,
|
||||
+ env_username,
|
||||
+ env_password
|
||||
+ auth_name: env_username,
|
||||
+ auth_password: env_password
|
||||
}),
|
||||
map_group,
|
||||
})
|
||||
|
@ -54,8 +54,8 @@ index 63cedb4d5..4fff49f73 100644
|
|||
async fn attempt_online(&mut self, _tpm: &mut tpm::BoxedDynTpm, now: SystemTime) -> bool {
|
||||
- match self.client.auth_anonymous().await {
|
||||
+ let auth_method = match (&self.auth_name, &self.auth_password) {
|
||||
+ (Some(name), Some(password)) => self.client.write().await.auth_simple_password(name, password).await,
|
||||
+ _ => self.client.write().await.auth_anonymous().await
|
||||
+ (Some(name), Some(password)) => self.client.auth_simple_password(name, password).await,
|
||||
+ _ => self.client.auth_anonymous().await
|
||||
+ };
|
||||
+ match auth_method {
|
||||
Ok(_uat) => {
|
||||
|
|
Loading…
Reference in a new issue