Merge pull request #124 from pop-os/pam

Add custom PAM configuration to start gnome-keyring
This commit is contained in:
Jeremy Soller 2024-09-06 10:50:59 -06:00 committed by GitHub
commit ff03667847
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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");