unai-ndz / lua-pam

A module for lua to use PAM.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lua-pam

A module for lua to use PAM.

Complile

cmake . -B build
cd build
make

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

About

A module for lua to use PAM.


Languages

Language:C++ 87.2%Language:CMake 12.8%