I'm in trouble while trying to log in using Psi XMPP client over the Prosody server (Debian distro).
Dec 09 18:51:19 mod_posix info Successfully daemonized to PID 737
Dec 09 18:51:19 hostmanager debug Activated host: localhost
Dec 09 18:51:19 localhost:auth_internal_plain debug initializing internal_plain authentication provider for host 'localhost'
Dec 09 18:51:19 usermanager debug host 'localhost' now set to use user provider 'internal_plain'
Dec 09 18:52:14 socket debug server.lua: accepted new client connection from
10.56.7.187:24440 to 5222
Dec 09 18:52:14 c2s18d0b40 info Client connected
Dec 09 18:52:14 c2s18d0b40 debug Client sent opening <stream:stream> to sedur.intranet
Dec 09 18:52:14 c2s18d0b40 debug Sent reply <stream:stream> to client
Dec 09 18:52:14 c2s18d0b40 debug Received[c2s_unauthed]: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'>
Dec 09 18:52:14 socket debug server.lua: we need to do tls, but delaying until send buffer empty
Dec 09 18:52:14 c2s18d0b40 debug TLS negotiation started for c2s_unauthed...
Dec 09 18:52:14 socket debug server.lua: attempting to start tls on tcp{client}: 0x1954458
Dec 09 18:52:14 socket debug server.lua: ssl handshake done
Dec 09 18:52:14 c2s18d0b40 debug Client sent opening <stream:stream> to sedur.intranet
Dec 09 18:52:14 c2s18d0b40 debug Sent reply <stream:stream> to client
Dec 09 18:52:14 c2s18d0b40 debug Received[c2s_unauthed]: <auth mechanism='DIGEST-MD5' xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
Dec 09 18:52:14 sedur.intranet:saslauth debug sasl reply: <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>THE CHALLENGE STRING</challenge>
Dec 09 18:52:14 c2s18d0b40 debug Received[c2s_unauthed]: <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
Dec 09 18:52:14 sasl_cyrus debug Canonicalizing username marcos.cunha to marcos.cunha
Dec 09 18:52:14 sasl_cyrus debug Got SASL error condition -20: user not found
Dec 09 18:52:14 sedur.intranet:saslauth debug sasl reply: <failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><undefined-condition/><text>user not found</text></failure>
Dec 09 18:52:14 c2s18d0b40 info Client disconnected: closed
Dec 09 18:52:14 c2s18d0b40 debug Destroying session for (unknown) ((unknown)@sedur.intranet): closed
Dec 09 18:52:14 socket debug server.lua: closed client handler and removed socket from list
Using testldapauth I can confirm saslauthd is correctly configured and running. Here is my /etc/saslauthd.conf
ldap_servers: ldap://10.x.x.x ldap://10.x.x.x
ldap_search_base: OU=DOMAIN,DC=my,DC=intranet
ldap_bind_dn: DOMAIN\app.admin
ldap_password: app.admin
ldap_use_sasl: no
ldap_start_tls: no
ldap_auth_method: bind
ldap_filter: (sAMAccountName=%u)