You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pam/README.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,14 +59,25 @@ auth required pam_unix.so
59
59
auth optional pam_oo7.so
60
60
account required pam_unix.so
61
61
password required pam_unix.so
62
+
password optional pam_oo7.so
62
63
session required pam_unix.so
63
64
session optional pam_oo7.so auto_start
64
65
session optional pam_systemd.so
65
66
```
66
67
67
-
**Important**: The module must be added to both `auth` and `session` stacks:
68
-
-`auth` stack: Captures and stashes the password
69
-
-`session` stack: Retrieves the password and sends it to the daemon
68
+
**Important**: The module should be added to three PAM stacks:
69
+
-`auth` stack: Captures and stashes the password during authentication
70
+
-`session` stack: Retrieves the stashed password and sends it to the daemon for keyring unlocking
71
+
-`password` stack: Intercepts password changes and updates the keyring password to match
72
+
73
+
#### Password Change Support
74
+
75
+
When added to the `password` stack, the module will automatically update your keyring passwords when you change your user password (e.g., using `passwd` command). This ensures your keyrings remain accessible after password changes.
76
+
77
+
The module intercepts the password change operation:
78
+
1. Captures both the old and new passwords
79
+
2. Sends them to the daemon
80
+
3. The daemon validates the old password and re-encrypts all matching keyrings with the new password
0 commit comments