Mercurial > crates > nonstick
comparison src/handle.rs @ 100:3f11b8d30f63
Implement environment variable management.
This actually wires up the environment variable handling to libpam,
so that applications and modules can manage the environment through
the authentication process.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Tue, 24 Jun 2025 17:08:01 -0400 |
| parents | b87100c5eed4 |
| children | dfcd96a74ac4 |
comparison
equal
deleted
inserted
replaced
| 99:8840fa6534f6 | 100:3f11b8d30f63 |
|---|---|
| 196 item = "PAM_RUSER" | 196 item = "PAM_RUSER" |
| 197 ); | 197 ); |
| 198 trait_item!( | 198 trait_item!( |
| 199 /// Sets the identity of the remote user logging in. | 199 /// Sets the identity of the remote user logging in. |
| 200 /// | 200 /// |
| 201 /// This is usually set by the application before making calls | 201 /// This may be set by the application before making calls |
| 202 /// into a PAM session. (TODO: check this!) | 202 /// into a PAM transaction. |
| 203 set = set_remote_user, | 203 set = set_remote_user, |
| 204 item = "PAM_RUSER" | 204 item = "PAM_RUSER" |
| 205 ); | 205 ); |
| 206 | 206 |
| 207 trait_item!( | 207 trait_item!( |
| 218 item = "PAM_RHOST" | 218 item = "PAM_RHOST" |
| 219 ); | 219 ); |
| 220 trait_item!( | 220 trait_item!( |
| 221 /// Sets the location where the user is coming from. | 221 /// Sets the location where the user is coming from. |
| 222 /// | 222 /// |
| 223 /// This is usually set by the application before making calls | 223 /// This may be set by the application before making calls |
| 224 /// into a PAM session. (TODO: check this!) | 224 /// into a PAM transaction. |
| 225 set = set_remote_host, | 225 set = set_remote_host, |
| 226 item = "PAM_RHOST", | 226 item = "PAM_RHOST", |
| 227 see = Self::remote_host | 227 see = Self::remote_host |
| 228 ); | 228 ); |
| 229 | 229 |
