[jadmin] Jabberd2 authentication using PAM & MySQL

Simon Wilkinson simon at sxw.org.uk
Mon Feb 26 16:22:01 CST 2007


On 26 Feb 2007, at 21:59, Les Seigneur wrote:

> I am running Jabberd2 and using PAM to authenticate users with LDAP  
> and I am using MySQL for storage.  I am trying to setup  
> authentication so that a user that I add to the local MySQL  
> database will be allowed to login even thought that user does not  
> exist in LDAP.  Is this a PAM configuration issue that I  need to  
> setup using the /etc/pam.d/jabberd file?  I can login with Exodus  
> using a local user account but can’t login using the account that I  
> created in MySQL.  BTW I have uncommented the auto-create tag in  
> sm.xml .  Any help would be appreciated.
There are two separate user databases - the authentication database,  
and the jabberd2 storage database. Creating a user in the storage  
database won't make them available for authentication. You _may_ be  
able to achieve what you are after by writing a custom PAM module  
that uses your MySQL database for authentication, but you'd have to  
add additional fields to that database, over and above what jabberd2  
uses - as it currently doesn't hold any authentication information  
(such as passwords) in the storage database.

Simon.



More information about the JAdmin mailing list