PAM Authentication Module for Linux


This is a PAM module written to use MyPW's authentication service via XML-RPC. This is based on XML-RPC C-Client as well as the default sample PAM module that comes with the PAM source distribution.

Packages i386 x86_64
Fedora 12 pam_xmlrpc-0.2-1.fc12.i686.rpm pam_xmlrpc-0.2-1.fc12.x86_64.rpm
CentOS 5.5 pam_xmlrpc-0.2-1.el5.i386.rpm pam_xmlrpc-0.2-1.el5.x86_64.rpm
Debian 5.0 libpam-xmlrpc_0.2-1_lenny_i386.deb libpam-xmlrpc_0.2-1_lenny_amd64.deb
Ubuntu 10.04 libpam-xmlrpc_0.2-1_lucid_i386.deb libpam-xmlrpc_0.2-1_lucid_amd64.deb
Source
GPL License pam_xmlrpc-0.2.tar.gz

General Instructions

  • Install the appropriate package for your distribution
  • Create a configuration file /lib/security/xmlrpc.conf to map your local users to their tokens. The format of the file is as follows:

    local_user mypw_site mypw_authkey mypw_token_serial url

    e.g.
    michaeln mysite aslk1u401da2901 5999999 https://services.mypw.com/RPC2

  • Edit the proper PAM configuration file (e.g. /etc/pam.d/sshd) by adding the following line at the top:

    auth sufficient pam_xmlrpc.so
    [...]

  • Users not listed in xmlrpc.conf will be checked against the password file as normal.

    Return to Developer Site