Skip to content
/ lua-pam Public
forked from RMTT/lua-pam

A module for lua to use PAM.

License

slapjd/lua-pam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lua-pam

A module for lua to use PAM.

Complile

cmake . -B build
cd build
make

Installation through package manager

Arch Linux

The package lua-pam-git can be installed from the Arch Linux User Repository using the following command. The command assumes your package manager is yay.

yay -S lua-pam-git

The file liblua_pam.so is installed into /usr/lib/lua-pam/.

Usage

-- add the lib to cpath by yourself

local pam = require("liblua_pam")
local auth = pam.auth_current_user(password)

if auth
then
    print("Success!")
end

Troubleshooting

cannot find lua.hpp

Firstly,make sure the lua.hpp exists on your machine,and then create a soft link to the /usr/include directory,also,you can change the CMakeLists.txt to include your own directory which contains lua.hpp

cannot find liblua.so

Make sure the file exists on your machine,it's need install some package on some distros,such as Debian/Ubuntu,you should install liblua-dev

cannot find pam_appl.hpp on Ubuntu/Debian

Install libpam0g-dev

About

A module for lua to use PAM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.3%
  • C++ 3.1%
  • CMake 0.6%