Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.37 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.37 KB

mod_auth_pam for Prosody

Description

mod_auth_pam is, as the name suggests, a PAM authentication module for Prosody, an XMPP server. The module requires lua-pam to operate.

Installation

First, lua-pam must be installed. Compilation and installation instructions for lua-pam are out of scope for this document.

A PAM service must also be configured correctly. The means of doing so are also out of scope for this document, but examples are readily available online.

Finally, simply follow the standard procedure for installing Prosody modules.

Configuration

You will need to change the value of the authentication option in prosody.cfg.lua to "pam". No further configuration is required, but depending on your set-up, the following options may need to be specified:

Option Default Description
auth_pam_service "system-auth" The PAM service to use, as usually configured in /etc/pam.d/
auth_append_host false Whether to authenticate the JID (e.g. user@example.com) rather than the localpart (user), by appending the hostname to the input supplied by the client