Authenticate Against PAM using epam in ejabberd 1.x

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:

  1. apply the patch (likely patch -p0 < pam.diff)
  2. run autoconf
  3. run ./configure --enable-pam [other options]
  4. run make; make install
  5. edit ejabberd.conf:
    {auth_method, pam}.
    {pam_service, "pamservicename"}.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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

Syndicate content