Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Invalid UserJID when using email as user login. #14

Closed
tlyng opened this Issue · 6 comments

2 participants

@tlyng

If Plone is setup to use the user email as login name the getUserJID fails:

Module jarn.xmpp.core.subscribers.user_management, line 33, in onUserCreation
Module jarn.xmpp.core.settings, line 21, in getUserJID
Module twisted.words.protocols.jabber.jid, line 137, in init
Module twisted.words.protocols.jabber.jid, line 65, in parse
Module twisted.words.protocols.jabber.jid, line 95, in prep
InvalidFormat: Invalid character in hostname

A possible solution is to transform the @ in principal_id to something that is not causing an invalid hostname for JID

@ggozad
Owner

Ah yes. Feel free to fix it as you suggest and I will merge it.
However I am aware of the problem but was waiting to get the time to do external authentication of ejabberd through plone.
There is a branch already (ejabberd_extauth) where I have started doing that but do not have time atm to complete it.
This has other advantages:
You would not need to store a db of user passwords.
You could login to ejabberd with your plone password.
If you are interested in working on it, I am more than happy to walk you through the logic and what's there already. Poke me on irc ;)

@tlyng

I'll try to work on patch some time next week. Having ejabberd authenticate against Plone seems like a much better alternative as the solution at this day is kinda limited (compared to the advanced software stack it actually requires).

@ggozad
Owner

Another solution is to html-encode the user ids. This will make ejabberd happy.

@ggozad
Owner

Indeed! XEP-0106 is there for ejabberd, but not for strophe. Care to hunt it down at https://github.com/metajack/strophejs ?

@ggozad
Owner

Should be handled by #28

@ggozad ggozad closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.