[ejabberd] Intercepting authentication packets

Boris Okner boris.okner at gmail.com
Thu Nov 18 07:54:47 MSK 2010

Brief implementation plan: You can parse email within your module that  
implements your custom SASL mechanism, similar to what cyrsasl_plain  
does; register your SASL module, then just encode the username based  
on the email to your liking and create a property list following  
cyrsasl_plain code. The auth module code that you attach to your  
mechanism will work with "encoded" email.
That's the general idea, hopefully you will be able to work out details.


Sent from my iPhone

On 2010-11-17, at 18:53, William Key <williamkey at gmail.com> wrote:

> Hey all,
> I'm currently mitigating from another XMPP server. We modified our  
> current XMPP server to accept an e-mail when
> authenticating with SASL instead of the user's username. There  
> doesn't seem to be anyway to do this on Ejabberd
> via an authentication script as crysasl check_credentials calls  
> jlib:nodeprep which will fail on an e-mail
> address. Is there any possible way to do this without modifying  
> Ejabberd's core?
> Thanks,
> William
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20101117/e2e89ad7/attachment-0001.html>

More information about the ejabberd mailing list