A module for lua to use PAM.
cmake . -B build
cd build
makeThe 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/.
-- add the lib to cpath by yourself
local pam = require("liblua_pam")
local auth = pam.auth_current_user(password)
if auth
then
print("Success!")
endFirstly,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
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
Install libpam0g-dev