Important: PAM authentication is included in ejabberd 2.0.0 and newer
Name: ejabberd_auth_pam Purpose: Allows authenticating against PAM using epam Author: Zinid Type: Patch Requirements: ejabberd 1.1.1 or 1.1.2 Download: Pam patch in Jira (old version: pam.diff)
This patch is included in ejabberd since SVN r954.
INSTALLATION:
- apply the patch (likely patch -p0 < pam.diff)
- run autoconf
- run ./configure --enable-pam [other options]
- run make; make install
- edit ejabberd.conf:
{auth_method, pam}. {pam_service, "pamservicename"}.
Failed patching
patch -p0 < ~/pam.diff
patching file ejabberd/examples/ejabberd.pam
patching file ejabberd/src/aclocal.m4
Hunk #1 succeeded at 60 (offset -6 lines).
patching file ejabberd/src/configure.ac
Hunk #2 succeeded at 33 with fuzz 2 (offset -1 lines).
Hunk #3 succeeded at 62 with fuzz 2 (offset -2 lines).
patching file ejabberd/src/ejabberd_auth_pam.erl
patching file ejabberd/src/Makefile.in
Hunk #1 FAILED at 28.
Hunk #2 succeeded at 86 (offset -1 lines).
1 out of 2 hunks FAILED -- saving rejects to file ejabberd/src/Makefile.in.rej
patching file ejabberd/src/pam/epam.c
patching file ejabberd/src/pam/epam.erl
patching file ejabberd/src/pam/Makefile.in
this was tried against debian source of ejabberd-1.1.2 in etch