pam_kanidm/pam/
items.rs

1use crate::pam::constants::{
2    PamItemType, PAM_AUTHTOK, PAM_OLDAUTHTOK, PAM_RHOST, PAM_RUSER, PAM_SERVICE, PAM_TTY, PAM_USER,
3    PAM_USER_PROMPT,
4};
5pub use crate::pam::conv::PamConv;
6use crate::pam::module::PamItem;
7
8#[allow(dead_code)]
9pub struct PamService {}
10
11impl PamItem for PamService {
12    fn item_type() -> PamItemType {
13        PAM_SERVICE
14    }
15}
16
17#[allow(dead_code)]
18pub struct PamUser {}
19
20impl PamItem for PamUser {
21    fn item_type() -> PamItemType {
22        PAM_USER
23    }
24}
25
26#[allow(dead_code)]
27pub struct PamUserPrompt {}
28
29impl PamItem for PamUserPrompt {
30    fn item_type() -> PamItemType {
31        PAM_USER_PROMPT
32    }
33}
34
35#[allow(dead_code)]
36pub struct PamTty {}
37
38impl PamItem for PamTty {
39    fn item_type() -> PamItemType {
40        PAM_TTY
41    }
42}
43
44#[allow(dead_code)]
45pub struct PamRUser {}
46
47impl PamItem for PamRUser {
48    fn item_type() -> PamItemType {
49        PAM_RUSER
50    }
51}
52
53#[allow(dead_code)]
54pub struct PamRHost {}
55
56impl PamItem for PamRHost {
57    fn item_type() -> PamItemType {
58        PAM_RHOST
59    }
60}
61
62#[allow(dead_code)]
63pub struct PamAuthTok {}
64
65impl PamItem for PamAuthTok {
66    fn item_type() -> PamItemType {
67        PAM_AUTHTOK
68    }
69}
70
71#[allow(dead_code)]
72pub struct PamOldAuthTok {}
73
74impl PamItem for PamOldAuthTok {
75    fn item_type() -> PamItemType {
76        PAM_OLDAUTHTOK
77    }
78}