Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
humba #1
Member since Feb 2020 · 23 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 · 4449 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 · 23 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 · 4449 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;
humba #5
Member since Feb 2020 · 23 posts
Group memberships: Members
Show profile · Link to this post
Unfortunately, this didn't help. Still can't log in and Cisco is not being very helpful :(
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Do you have Xml logs which may show more details on the auth error?

Alex
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: