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 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 appinfo/app.php (limited to 'appinfo/app.php') 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()); + +?> -- cgit v1.3.1