From 7627939253a431578e79cb0d157d552f15d802a1 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 16 Jun 2016 21:06:38 +0200 Subject: hack together a working version --- appinfo/app.php | 30 ++++++++++++++++++++++++++++++ appinfo/info.xml | 15 +++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 appinfo/app.php create mode 100644 appinfo/info.xml (limited to 'appinfo') diff --git a/appinfo/app.php b/appinfo/app.php new file mode 100644 index 0000000..9e783b1 --- /dev/null +++ b/appinfo/app.php @@ -0,0 +1,30 @@ + + * + */ + +require_once('apps/user_pam/user_pam.php'); + +define('OC_USER_BACKEND_PAM_PATH', '/etc/nixos/bin/pwauth'); +define('OC_USER_BACKEND_MEMBERS_PATH', '/etc/nixos/bin/members'); +define('OC_USER_BACKEND_PAM_GROUP', 'users'); + +OC_User::useBackend(new \OCA\user_pam\USER_PAM()); + +?> diff --git a/appinfo/info.xml b/appinfo/info.xml new file mode 100644 index 0000000..b4ab7ac --- /dev/null +++ b/appinfo/info.xml @@ -0,0 +1,15 @@ + + + user_pam + Unix PAM backend + Authenticate users by PAM according a unix group - Based on Unix user backend app + MIT + CSharplie + 0.1 + + + + + + + -- cgit v1.3.1