Tiny binding around PAM
oasis setup ocaml setup.ml -configure [--prefix <prefix] ocaml setup.ml -build ocaml setup.ml -install
There is only one function:
Simple_pam.authenticate "service" "user" "password"
if it returns (), then the user/password is valid for the given service definition (usually /etc/pam/<service>).
if it throws a Failure exception, then the user, password, or service are wrong :)
The code in
src/lib/simple_pam_stubs.c has been extracted from XEN-API:
Copyright (C) 2006-2009 Citrix Systems Inc.
Sebastien Mondet (http://seb.mondet.org)