Debian Codegraph @

configs/pam.d/pluto.example-url

raw
1 #%PAM-1.0
2 #
3 # Requires pam_url. Ensure resource is on https, not http
4
5 auth sufficient pam_url.so [config=/etc/pam_url.conf] [use_first_pass=1]
6 account sufficient pam_url.so [config=/etc/pam_url.conf]
7
8 # example /etc/pam_url.conf to run against Fedora FAS server (supports yubikey!)
9 # pam_url:
10 {
11 settings:
12 {
13 # URI to fetch
14 url = "https://id.dev.fedoraproject.org/pam";
15 # The remote script/cgi should return a 200 http code and
16 # this string as its only results
17 returncode = "OK";
18 # userfield name to send
19 userfield = "username";
20 # passwdfield name to send
21 passwdfield = "password";
22 # extradata to send
23 extradata = "&do=login";
24 prompt = "Password+Token: ";
25 };
26
27 # debug version
28 #auth sufficient pam_url.so [debug] [config=/etc/pam_url.conf] [use_first_pass=1]
29 #account sufficient pam_url.so [debug] [config=/etc/pam_url.conf]