Tiny binding around PAM
C OCaml Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src/lib
.gitignore
LICENSE
README.md
_oasis

README.md

simple_pam

Tiny binding around PAM

Installation:

oasis setup
ocaml setup.ml -configure [--prefix <prefix]
ocaml setup.ml -build
ocaml setup.ml -install

Usage

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 :)

Author(s):

The code in src/lib/simple_pam_stubs.c has been extracted from XEN-API: https://github.com/xen-org/xen-api

Copyright (C) 2006-2009 Citrix Systems Inc.

Sebastien Mondet (http://seb.mondet.org)