Project

General

Profile

use anonymous not login

王飞 王
Added over 3 years ago

hi,

 i use connection.loginAnonymously(); system out :
2015-10-28 18:23:31.740 [in_36-sess-man]   SessionManager.walk()              FINEST:   XMPPProcessorIfc: JabberIqAuth (jabber:iq:auth)Request: from=c2s@kaola-20150821i/127.0.0.1_5222_127.0.0.1_56182, to=sess-man@kaola-20150821i, DATA=<iq id="6n11r-0" xmlns="jabber:client" type="set"><query xmlns="jabber:iq:auth"/></iq>, SIZE=86, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=set, conn: XMPPResourceConnection=[user_jid=null, packets=2, connectioId=c2s@kaola-20150821i/127.0.0.1_5222_127.0.0.1_56182, domain=localhost, authState=NOT_AUTHORIZED, isAnon=false, isTmp=false]
2015-10-28 18:23:31.740 [in_36-sess-man]   SessionManager.processPacket()     FINEST:   Packet processed by: [jabber:iq:auth]
2015-10-28 18:23:31.742 [jabber:iq:auth Queue Worker 0]  JabberIqAuth.doAuth()  WARNING: Can't authenticate with given CallbackHandler
java.lang.IllegalArgumentException
    at javax.security.auth.callback.NameCallback.<init>(NameCallback.java:90)
    at tigase.xmpp.impl.JabberIqAuth.doAuth(JabberIqAuth.java:314)
    at tigase.xmpp.impl.JabberIqAuth.process(JabberIqAuth.java:237)
    at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2440)
    at tigase.util.WorkerThread.run(WorkerThread.java:128)
why can you help me?

my init.properties content :
--comp-class-1 = tigase.muc.MUCComponent
--virt-hosts = localhost
--user-db-uri = mongodb://10.10.2.212/tigasedb
--admins = admin@localhost
--test=true
--comp-name-6 = message-archive
--comp-name-5 = http
#--comp-name-4 = stun
--comp-name-3 = proxy
config-type = --gen-config-all
--comp-name-2 = pubsub
--comp-name-1 = conference
--cluster-mode = false
--sm-plugins = +message-archive-xep-0136,+jabber:iq:auth,+urn:ietf:params:xml:ns:xmpp-sasl,+urn:ietf:params:xml:ns:xmpp-bind,+urn:ietf:params:xml:ns:xmpp-session,+jabber:iq:register,+jabber:iq:roster,+presence,+jabber:iq:privacy,+jabber:iq:version,+http://jabber.org/protocol/stats,+starttls,+msgoffline,+vcard-temp,+http://jabber.org/protocol/commands,+jabber:iq:private,+urn:xmpp:ping,+basic-filter,+domain-filter,+pep,-zlib
--comp-class-6 = tigase.archive.MessageArchiveComponent
--debug = server,db
http/port[I] = 8888
--comp-class-5 = tigase.http.HttpMessageReceiver
#--comp-class-4 = tigase.stun.StunComponent
--comp-class-3 = tigase.socks5.Socks5ProxyComponent
--comp-class-2 = tigase.pubsub.PubSubComponent
--comp-class-1= tigase.muc.MUCComponent
muc/history-db-uri=mongodb://10.10.2.212/tigasedb
muc/history-db=tigase.mongodb.muc.MongoHistoryProvider
pubsub/pubsub-repo-url=mongodb://10.10.2.212/tigasedb
pubsub/pubsub-repo-class=tigase.mongodb.pubsub.PubSubDAOMongo
message-archive/archive-repo-uri=mongodb://10.10.2.212/tigasedb
message-archive/archive-repo-class=tigase.mongodb.archive.MongoMessageArchiveRepository
--net-buff-high-throughput = 256k
--net-buff-standard = 1024k
--cm-traffic-throttling = xmpp:10000:0:disc,bin:100m:0:disc
--cm-ht-traffic-throttling = xmpp:1024k:0:disc,bin:200m:0:disc
--vhost-max-users=0

Replies (4)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam over 3 years ago

I do not know what

does, but looking at XMPP stanza sent it looks like it uses "XEP-0078: Non-SASL Authentication":http://xmpp.org/extensions/xep-0078.html which do not support ANONYMOUS authentication.
ANONYMOUS authentication mechanism is part of "RFC3290: SASL Authentication":http://xmpp.org/rfcs/rfc3920.html#sasl so in this case it looks like library you used sent wrong authentication stanza for ANONYMOUSE authentication

Added by 王飞 王 over 3 years ago

I want to know how config tigase by anonymous login?

Added by Wojciech Kapcia TigaseTeam over 3 years ago

王飞 王 wrote:

I want to know how config tigase by anonymous login?

You don't have to make any additional configuration in the server - SASL-Anonymous is supported by default. As Andrzej already pointed out - you are trying to use different specification which DOES NOT support Anonymous authentication.

Added by 王飞 王 over 3 years ago

thanks!

    (1-4/4)