Comment 2 for bug 1280410

Revision history for this message
Galen Charlton (gmc) wrote :

Just for the record for anybody running into this: the workaround is clear - use only lowercase for domain names and ejabberd host defintions.

XMPP domains are supposed to be compared in a case-insensitive fashion [1], so it would be reasonable for OpenSRF's trusted domains checks to do the same. Using strcasecmp would be a quick fix, though it looks like a fully standards-compliant fix would use libidn [2] or the like.

[1] To oversimplify, nowadays -- see https://tools.ietf.org/html/rfc6122#section-2.2 for the truly gory details.
[2] http://www.gnu.org/software/libidn/