File: pluto.example-url

package info (click to toggle)
libreswan 5.2-2.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 81,656 kB
  • sloc: ansic: 129,988; sh: 32,018; xml: 20,646; python: 10,303; makefile: 3,022; javascript: 1,506; sed: 574; yacc: 511; perl: 264; awk: 52
file content (29 lines) | stat: -rw-r--r-- 956 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#%PAM-1.0
#
# Requires pam_url. Ensure resource is on https, not http

auth sufficient pam_url.so [config=/etc/pam_url.conf] [use_first_pass=1]
account sufficient pam_url.so [config=/etc/pam_url.conf]

# example /etc/pam_url.conf to run against Fedora FAS server (supports yubikey!)
# pam_url:
{
        settings:
        {
		# URI to fetch
                url = "https://id.dev.fedoraproject.org/pam";
                # The remote script/cgi should return a 200 http code and
		# this string as its only results
                returncode = "OK";
		# userfield name to send
		userfield = "username";
		# passwdfield name to send
                passwdfield = "password";
		# extradata to send
                extradata = "&do=login";
                prompt = "Password+Token: ";
        };

# debug version
#auth sufficient pam_url.so [debug] [config=/etc/pam_url.conf] [use_first_pass=1]
#account sufficient pam_url.so [debug] [config=/etc/pam_url.conf]