summaryrefslogtreecommitdiffstats
path: root/lib/authenticator-plaintext.lua
diff options
context:
space:
mode:
authorMike Mason <ms13sp@gmail.com>2008-02-05 21:35:03 +0000
committerMike Mason <ms13sp@gmail.com>2008-02-05 21:35:03 +0000
commit13c4b25ab45c2ab897140fbafa59eafb9cacf000 (patch)
tree30bff1e2dc667de38032ba5880b893f76d584104 /lib/authenticator-plaintext.lua
parent91653931e66a76d5b135398a0e022af18e087491 (diff)
downloadacf-core-13c4b25ab45c2ab897140fbafa59eafb9cacf000.tar.bz2
acf-core-13c4b25ab45c2ab897140fbafa59eafb9cacf000.tar.xz
Added the full roles to the sessiondata.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@696 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/authenticator-plaintext.lua')
-rw-r--r--lib/authenticator-plaintext.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/authenticator-plaintext.lua b/lib/authenticator-plaintext.lua
index 57bbf35..c9d5c42 100644
--- a/lib/authenticator-plaintext.lua
+++ b/lib/authenticator-plaintext.lua
@@ -94,3 +94,12 @@ get_userinfo = function ( self, userid )
end
end
+get_userinfo_roles = function (self, userid)
+ local t = pvt.parse_authfile(self.conf.confdir .. "/passwd")
+ if t == false then
+ return nil
+ else
+ temp = pvt.get_id (userid, t)
+ return temp.roles
+ end
+end