Mercurial > crates > nonstick
comparison src/module.rs @ 90:f6186e41399b
Miscellaneous fixes and cleanup:
- Rename `get_user` to `username` and `get_authtok` to `authtok`.
- Use pam_strerror for error messages.
- Add library linkage to build.rs (it was missing???).
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sat, 14 Jun 2025 09:30:16 -0400 |
parents | 5aa1a010f1e8 |
children |
comparison
equal
deleted
inserted
replaced
89:dd3e9c4bcde3 | 90:f6186e41399b |
---|---|
26 | 26 |
27 /// Authenticate the user. | 27 /// Authenticate the user. |
28 /// | 28 /// |
29 /// This is probably the first thing you want to implement. | 29 /// This is probably the first thing you want to implement. |
30 /// In most cases, you will want to get the user and password, | 30 /// In most cases, you will want to get the user and password, |
31 /// using [`PamShared::get_user`](crate::PamShared::get_user) | 31 /// using [`PamShared::username`](crate::PamShared::username) |
32 /// and [`PamHandleModule::get_authtok`], | 32 /// and [`PamHandleModule::authtok`], |
33 /// and verify them against something. | 33 /// and verify them against something. |
34 /// | 34 /// |
35 /// See [the Module Writer's Guide entry for `pam_sm_authenticate`][mwg] | 35 /// See [the Module Writer's Guide entry for `pam_sm_authenticate`][mwg] |
36 /// for more information. | 36 /// for more information. |
37 /// | 37 /// |