From 40114f9b6ea6f4d3d3da7c6c9b3e3cc7e60929e1 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Mon, 3 Jun 2013 21:03:58 +0000 Subject: [PATCH] conditionalize it to work for phx2 or vpn - may need more conditionalizing later --- files/2fa/pam_url.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/2fa/pam_url.conf b/files/2fa/pam_url.conf index 9ce7690b81..b9a86c29d3 100644 --- a/files/2fa/pam_url.conf +++ b/files/2fa/pam_url.conf @@ -1,8 +1,12 @@ -pam_url: +am_url: { settings: { + {% if datacenter == 'phx2' %} url = "https://fas-all.phx2.fedoraproject.org:8443/"; # URI to fetch + {% else %} + url = "https://fas-all.vpn.fedoraproject.org:8443/"; # URI to fetch + {% endif %} returncode = "OK"; # The remote script/cgi should return a 200 http code and this string as its only results userfield = "user"; # userfield name to send passwdfield = "token"; # passwdfield name to send