Not logged in. · Lost password · Register
Forum: MatriX RSS
humba #1
Member since Feb 2020 · 13 posts
Group memberships: Members
Show profile · Link to this post
Subject: Logging in when the login itself contains an @
Has anybody managed to login when the loginname is in UPN format (userid@domain)? I'm trying to do this on a Cisco CIMP but am failing miserably. I suspect somehow my login gets turned into a userid@domain@presencedomain jid which of course is not a valid jid.
Avatar
Alex #2
Member since Feb 2003 · 4407 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You have to use Jid escaping. The Jid class has members for this.

See also XEP-0106
https://xmpp.org/extensions/xep-0106.html

Alex
humba #3
Member since Feb 2020 · 13 posts
Group memberships: Members
Show profile · Link to this post
So you mean?

  1. xmppClient.Username = Jid.PrepareUser("myuser@mydomain.com");
Avatar
Alex #4
Member since Feb 2003 · 4407 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
yes, or:

  1. var myJid = new Jid();
  2. myJid.SetUser("myuser@mydomain.com");
  3. xmppClient.Username = myJid.User;
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS