A simple PAM authentication module for authenticating Linux users against the AccountHub API.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
402 B

#!/bin/sh -e
. /usr/share/debconf/confmodule
db_input high netsyms-business/apiurl || true
db_go || true
db_get netsyms-business/apiurl || true
APIURL=$RET || true
db_input high netsyms-business/apikey || true
db_go || true
db_get netsyms-business/apikey || true
APIKEY=$RET
mkdir -p /etc/netsyms-business
echo "{\"apiurl\":\"$APIURL\",\"apikey\":\"$APIKEY\"}" > /etc/netsyms-business/config.json