PAM Authentication in ejabberd 2.1.10

Hi,

I'm trying to enable PAM authentication for room users. I used adduser to create a local Linux user however if I try to login to a room authentication fails with "Incorrect Password"

My config file looks like this:

%%% ==============
%%% AUTHENTICATION

%%
%% auth_method: Method used to authenticate the users.
%% The default method is the internal.
%% If you want to use a different method,
%% comment this line and enable the correct ones.
%%
%% {auth_method, internal}.

%%
%% Authentication using external script
%% Make sure the script is executable by ejabberd.
%%
%%{auth_method, external}.
%%{extauth_program, "/path/to/authentication/script"}.

%%
%% Authentication using ODBC
%% Remember to setup a database in the next section.
%%
%%{auth_method, odbc}.

%%
%% Authentication using PAM
%%
{auth_method, pam}.
{pam_service, "common-auth"}.

Am I using the correct pam_service name?

Should I alter anything else in the config?

TIA

Shaun

Syndicate content