<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(51, 51, 51); "><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: arial; font-size: small; ">2010/11/18 Boris Okner <span dir="ltr"><<a href="mailto:boris.okner@gmail.com">boris.okner@gmail.com</a>></span><br>

<div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<div class="im"><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(51, 51, 51); "><div>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.</div>

<div><span>T</span><span>h</span><span>a</span><span>t</span><span>'</span><span>s</span><span> </span><span>t</span><span>h</span><span>e</span><span> </span><span>g</span><span>e</span><span>n</span><span>e</span><span>r</span><span>a</span><span>l</span><span> </span><span>i</span><span>d</span><span>e</span><span>a</span><span>,</span><span> </span><span>h</span><span>o</span><span>p</span><span>e</span><span>f</span><span>u</span><span>l</span><span>l</span><span>y</span><span> </span><span>y</span><span>o</span><span>u</span><span> </span><span>will be able to work out details.</span></div>

</span></div></blockquote><div><br></div><div>Good call. I'll create another SASL mechanism that supports proxy authorization so users can login using their e-mail address. The</div><div>mechanism will then authenticate and return their JID instead.</div>

<div><br></div><div>Thanks,</div><div>William</div></div></span></div></span>