Add custom PAM configuration to start gnome-keyring

This commit is contained in:
Jeremy Soller 2024-09-06 10:34:37 -06:00
parent 3679ee5561
commit ef1253aa23
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
5 changed files with 29 additions and 4 deletions

View file

@ -83,8 +83,7 @@ pub fn pam_thread(username: String, conversation: Conversation) -> Result<(), pa
//TODO: send errors to GUI, restart process
// Create PAM context
//TODO: search for and use custom context?
let mut context = pam_client::Context::new("login", Some(&username), conversation)?;
let mut context = pam_client::Context::new("cosmic-greeter", Some(&username), conversation)?;
// Authenticate the user (ask for password, 2nd-factor token, fingerprint, etc.)
log::info!("authenticate");