Prosody SASL LDAP Configuration
Install
- apt-get install lua-cyrussasl libsasl2-modules-ldap sasl2-bin
Config SASL with pam
- /etc/sasl/xmpp.conf
pwcheck_method: saslauthd
mech_list: PLAIN
- /etc/default/saslauthd
START=yes
DESC="SASL Authentication Daemon"
NAME="saslauthd"
MECHANISMS="ldap
OPTIONS="-c -m /var/run/saslauthd"
Test
Create a user
Test saslauth
- testsaslauthd -u xinux -p sau-geheim -s xmpp
0: OK "Success."
- testsaslauthd -u xinux -p probiemal -s xmpp
0: NO "authentication failed"
Prosody config