diff --git a/unix_integration/src/idprovider/interface.rs b/unix_integration/src/idprovider/interface.rs index c93a13dba..51a8c555b 100644 --- a/unix_integration/src/idprovider/interface.rs +++ b/unix_integration/src/idprovider/interface.rs @@ -55,7 +55,7 @@ pub struct UserToken { pub trait IdProvider { async fn provider_authenticate(&self) -> Result<(), IdpError>; - async fn unix_user_get(&self, id: &Id) -> Result; + async fn unix_user_get(&self, id: &Id, old_token: Option) -> Result; async fn unix_user_authenticate( &self, diff --git a/unix_integration/src/idprovider/kanidm.rs b/unix_integration/src/idprovider/kanidm.rs index 3acc8c45f..db54849b3 100644 --- a/unix_integration/src/idprovider/kanidm.rs +++ b/unix_integration/src/idprovider/kanidm.rs @@ -79,7 +79,7 @@ impl IdProvider for KanidmProvider { } } - async fn unix_user_get(&self, id: &Id) -> Result { + async fn unix_user_get(&self, id: &Id, _old_token: Option) -> Result { match self .client .read() diff --git a/unix_integration/src/resolver.rs b/unix_integration/src/resolver.rs index 0b36cbee5..8b947390c 100644 --- a/unix_integration/src/resolver.rs +++ b/unix_integration/src/resolver.rs @@ -393,7 +393,7 @@ where account_id: &Id, token: Option, ) -> Result, ()> { - match self.client.unix_user_get(account_id).await { + match self.client.unix_user_get(account_id, token.clone()).await { Ok(mut n_tok) => { if self.check_nxset(&n_tok.name, n_tok.gidnumber).await { // Refuse to release the token, it's in the denied set.