Jitsi Cyrus Sasl: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
|||
| (Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
| Zeile 19: | Zeile 19: | ||
*useradd -m xinux | *useradd -m xinux | ||
*passwd | *passwd | ||
===Test saslauth== | ===Test saslauth=== | ||
*testsaslauthd -u xinux -p sau-geheim -s xmpp | *testsaslauthd -u xinux -p sau-geheim -s xmpp | ||
0: OK "Success." | 0: OK "Success." | ||
*testsaslauthd -u xinux -p probiemal -s xmpp | *testsaslauthd -u xinux -p probiemal -s xmpp | ||
0: NO "authentication failed" | 0: NO "authentication failed" | ||
==Prosody config== | |||
*gpasswd -a prosody sasl | |||
Aktuelle Version vom 23. März 2020, 12:04 Uhr
Prosody SASL LDAP Configuration
Install
- apt-get install lua-cyrussasl libsasl2-modules-ldap sasl2-bin
Config SASL with pam
- mkdir /etc/sasl
- /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
- useradd -m xinux
- passwd
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
- gpasswd -a prosody sasl