Skip to content
Snippets Groups Projects
Verified Commit 828c1aed authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[NSS] Add logging to track on what NSS hooks were called

parent b599803f
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,7 @@ struct OidcPasswd; ...@@ -65,6 +65,7 @@ struct OidcPasswd;
impl PasswdHooks for OidcPasswd { impl PasswdHooks for OidcPasswd {
fn get_all_entries() -> Response<Vec<Passwd>> { fn get_all_entries() -> Response<Vec<Passwd>> {
let conf = nss_hook_prepare(); let conf = nss_hook_prepare();
info!("[NSS] passwd.get_all_entries called");
let mut cache = get_cache(); let mut cache = get_cache();
let user_token_res = cache.context_user.get_access_token(); let user_token_res = cache.context_user.get_access_token();
...@@ -97,6 +98,7 @@ impl PasswdHooks for OidcPasswd { ...@@ -97,6 +98,7 @@ impl PasswdHooks for OidcPasswd {
fn get_entry_by_uid(uid: libc::uid_t) -> Response<Passwd> { fn get_entry_by_uid(uid: libc::uid_t) -> Response<Passwd> {
let conf = nss_hook_prepare(); let conf = nss_hook_prepare();
info!("[NSS] passwd.get_entry_by_uid called for {}", uid);
let mut cache = get_cache(); let mut cache = get_cache();
let user_token_res = cache.context_user.get_access_token(); let user_token_res = cache.context_user.get_access_token();
...@@ -129,6 +131,7 @@ impl PasswdHooks for OidcPasswd { ...@@ -129,6 +131,7 @@ impl PasswdHooks for OidcPasswd {
fn get_entry_by_name(name: String) -> Response<Passwd> { fn get_entry_by_name(name: String) -> Response<Passwd> {
let conf = nss_hook_prepare(); let conf = nss_hook_prepare();
info!("[NSS] passwd.get_entry_by_name called for {}", name);
let mut cache = get_cache(); let mut cache = get_cache();
let user_token_res = cache.context_user.get_access_token(); let user_token_res = cache.context_user.get_access_token();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment