Tigase XMPP Server Board

Tigase server administration: RE: Implementing XEP-0136

Tue, 12/16/2014 - 01:39

Thank you for help

Categories: Tigase Forums

Tigase server development: RE: Tigase client certificate authentication failed -not-authorized

Tue, 12/16/2014 - 01:37

Added.

my new init.properties is like this.
--comp-class-1 = tigase.muc.MUCComponent --virt-hosts = interdev.xmpp.lk --user-db-uri = jdbc:mysql://localhost/tigasedb?user=tigase&password=tigase12 --user-db = mysql --admins = admin@interdev.xmpp.lk --comp-name-4 = message-archive --comp-name-3 = proxy config-type = --gen-config-def --comp-name-2 = pubsub --comp-name-1 = muc --cluster-mode = true --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 --debug = server,xmpp --vhost-tls-required=true c2s/clientCertCA=/root/tigase/certs/ssCA.pem --ssl-certs-location = /root/tigase/certs basic-conf/auth-repo-params/sasl-mechs=PLAIN,DIGEST-MD5 --comp-class-4 = tigase.archive.MessageArchiveComponent --comp-class-3 = tigase.socks5.Socks5ProxyComponent --comp-class-2 = tigase.pubsub.PubSubComponent sess-man/plugins-conf/callbackhandler-EXTERNAL=tigase.auth.impl.CertBasedCallbackHandler

but still jitsi client doesn't connect to the server. This time it gives an xmpp failure error "condition: invalid-authzid".

i have checked for log files and below exception is thrown.

Request: from=c2s@interdev.xmpp.lk/10.20.34.18_5222_10.20.34.26_59590, to=sess-man@interdev.xmpp.lk, DATA=<auth mechanism="EXTERNAL" xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>, SIZE=69, XMLNS=urn:ietf:params:xml:ns:xmpp-sasl, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null, conn: user_jid=null, packets=2, connectioId=c2s@interdev.xmpp.lk/10.20.34.18_5222_10.20.34.26_59590, domain=interdev.xmpp.lk, authState=NOT_AUTHORIZED, isAnon=false, isTmp=false, authorization: null 2014-12-16 14:44:06.612 [urn:ietf:params:xml:ns:xmpp-sasl Queue Worker 1] SaslAuth.process() FINER: SASL unsuccessful tigase.auth.XmppSaslException at tigase.auth.mechanisms.SaslEXTERNAL.evaluateResponse(SaslEXTERNAL.java:45) at tigase.xmpp.impl.SaslAuth.process(SaslAuth.java:308) at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2689) at tigase.util.WorkerThread.run(WorkerThread.java:132)
please find the log files i have attached for more info..
Categories: Tigase Forums

Tigase server administration: RE: Support for privacy lists - XEP-0016

Tue, 12/16/2014 - 00:15

Peter Rajcani wrote:

We have a requirement to restrict messaging only to an authorized group of users. I'd like to use privacy lists for this but I cannot find any documentation on how to create / maintain a privacy list. Is there an HTTP API for this? By searching the site I found out that Tigase server supports privacy lists (XEP-0016) but I could not find any more documentation on how these lists are supported.

For now there is no support in HTTP API to modify privacy lists (XEP-0016) but it is possible to add this new feature to HTTP API.

Peter Rajcani wrote:

I created the following privacy list to allow user1 and user2 and block test2:

<iq from='' type='set' id='edit1'>
<query xmlns='jabber:iq:privacy'>
<list name='public'>
<item type='jid'
value=''
action='allow'
order='1'/>
<item type='jid'
value=''
action='allow'
order='2'/>
<item type='jid'
value=''
action='deny'
order='3'/>
</list>
</query>
</iq>

I can see the correct settings in PSI client under Modify Account -> Privacy -> Advanced, however the messages from test2 still reach test1 even though test1 has blocked test2. Is there any specific configuration setting to enable privacy lists?

Support for privacy lists is enabled in Tigase XMPP Server by default, however if you create list by manually (using XMPP stanza) you need to remember that you need to activate privacy list to make it work. Only one privacy list may be active at a time. In you case you would need:
<iq type='set' id='active1'> <query xmlns='jabber:iq:privacy'> <active name='public'/> </query> </iq> to activate this privacy list.

Also after reconnection default privacy list is always activated - this default privacy list can also be changed.

This is described in XEP-0016 - 2.4 Managing Active List and in XEP-0016 - 2.5 Managing the Default List

Categories: Tigase Forums

Tigase server administration: RE: Support for privacy lists - XEP-0016

Mon, 12/15/2014 - 15:29

I created the following privacy list to allow user1 and user2 and block test2:

<iq from='' type='set' id='edit1'>
<query xmlns='jabber:iq:privacy'>
<list name='public'>
<item type='jid'
value=''
action='allow'
order='1'/>
<item type='jid'
value=''
action='allow'
order='2'/>
<item type='jid'
value=''
action='deny'
order='3'/>
</list>
</query>
</iq>

I can see the correct settings in PSI client under Modify Account -> Privacy -> Advanced, however the messages from test2 still reach test1 even though test1 has blocked test2. Is there any specific configuration setting to enable privacy lists?

Categories: Tigase Forums

Tigase server administration: Support for privacy lists - XEP-0016

Mon, 12/15/2014 - 14:18

We have a requirement to restrict messaging only to an authorized group of users. I'd like to use privacy lists for this but I cannot find any documentation on how to create / maintain a privacy list. Is there an HTTP API for this? By searching the site I found out that Tigase server supports privacy lists (XEP-0016) but I could not find any more documentation on how these lists are supported.

Categories: Tigase Forums

Tigase server development: Got a c2s/Socket Overflow, while in/out queue wait show zero values

Mon, 12/15/2014 - 09:14

I am investigating an issue on our XMPP deployment. We have an occurrence of Socket Overflow in c2s component. c2s/out queue wait had zero packets.
I've checked the source code of SocketIO class, from where this variable is set. SocketIO line 416:

if (!dataToSend.offer(buff)) {
++buffOverflow;
++totalBuffOverflow;
}

What I am not sure is, what are all the possible reasons of failure at this point: dataToSend.offer(buff)

Server specs:
Version: 5.2.0
OS: Amazon Linux AMI release 2014.03 (64 bit)
Heap : 7-12 GB

Please let me know if you require any additional information.
Thanks.

Categories: Tigase Forums

Tigase server development: Best Strategy for Timeouts

Mon, 12/15/2014 - 06:54

Hi there,

I am implementing a timeout strategy, whose meaning is "If a message wasn't delivered by X seconds, then add a tag to the original message and send a notification message".

I am thinking about implementing this in a component using addTimerTask(TimerTask task, long delay, TimeUnit unit);

Is this the correct way to do it, setting a timer for each received message ?
What about stopping one of those timers ? Imagine this operation should trigger in 15 seconds, but after 5 I can deliver the message, how can I get the TimerTask and call a .cancel() method because I no longer need that operation to be executed ?

Thanks in advance,
Luca

Categories: Tigase Forums

Tigase server development: RE: Components

Mon, 12/15/2014 - 02:11

Thank you so much.

I didn't figured out that the --comp-class-1 value should be set with full package, so:

--comp-name-1=test --comp-class-1=com.acme.package.TestComponent

Thanks for your help,
Luca

Categories: Tigase Forums

Tigase server administration: How to get acknowledgment for send/receive message

Mon, 12/15/2014 - 01:29

Hi Team,

How to know that message is deliver to other user. can we get any acknowledgment?.Kindly help me.

regards
Sridhar

Categories: Tigase Forums

Tigase server development: Run custom SQL query in tigase component

Mon, 12/15/2014 - 00:27

Whats the easiest way to run custom SQL queries from a Component?

Categories: Tigase Forums

Tigase server administration: RE: Implementing XEP-0136

Sun, 12/14/2014 - 23:23

Message Archive messages are stored in tig_ma_messages tables (and there is one more related table - tig_ma_jids). Please bare in mind, that user need to explicitly enable storing of the messages or you need to configure it globally (either for the whole server or on VHost basis): Configuration

Categories: Tigase Forums

Tigase server development: RE: Can I run tigase-server with oracle database?

Sun, 12/14/2014 - 23:19

Currently we don't support oracle database. For now only MySQL, Derby, PostgreSQL and MS SQL is supported.

Categories: Tigase Forums

Tigase server development: RE: Tigase client certificate authentication failed -not-authorized

Sun, 12/14/2014 - 22:08

Please add to you init.properties:
sess-man/plugins-conf/callbackhandler-EXTERNAL=tigase.auth.impl.CertBasedCallbackHandler

Categories: Tigase Forums

Tigase server administration: RE: Implementing XEP-0136

Sat, 12/13/2014 - 23:25

Thank you for reply.

All the offline messages are stored in the "msg_history" table in MySQL database and that is great, but I can not find "chat history" table for online messages. May I ask where I can find the chat history for online users?

Thank you again for help

Categories: Tigase Forums

Tigase server development: Can I run tigase-server with oracle database?

Sat, 12/13/2014 - 21:38

Can I run tigase-server with oracle database? Where to get create-db sql script for oracle?

Categories: Tigase Forums

Tigase server administration: RE: Implementing XEP-0136

Sat, 12/13/2014 - 06:52

You have to activate both, the plugin and the component in order for the message archive to work.

The chat history (message archive XEP-0136) stores only messages for online users which were delivered to a user. In order words messages that were seen by a user. Messages for offline users are stored elsewhere.

Categories: Tigase Forums

Tigase server development: RE: File transfer through Tigase

Sat, 12/13/2014 - 06:28

Thanks a lot for the reply Artur.

Yes I did have a look at the connection managers for Websockets and BOSH. I will dig in further and get back.

Regarding the client I just thought I could make a wrapper over client like SMACK which convert from XML to a binary format but retains the same structure of elements as with XMPP to help streamline the process.

Rehards,
Prashanth

Categories: Tigase Forums

Tigase server administration: Implementing XEP-0136

Sat, 12/13/2014 - 03:02

Hi,

Sorry if I am asking a very basic question.
Is it possible to store all online & offline users' messages based on XEP-0136?
As I checked the Tigase documentations, we can activate xep-0136 as a plugin --sm-plugins = +message-archive-xep-0136 or as a component --comp-name-6 = message-archive

If I want to activate xep-0136; Should I enable both in plugin and component in init.properties? or just one of them?

Thank you in advance for help

Categories: Tigase Forums

Tigase server development: RE: Server Configuration Properties dialog in PSI missing or coding er...

Sat, 12/13/2014 - 01:32

Thank you Artur! I had't realized it was a special component (I was expecting it to be somewhere in my component) and I completely missed it in the service discovery.

Cheers,
Gabriel

Categories: Tigase Forums

Tigase server development: RE: Server Configuration Properties dialog in PSI missing or coding er...

Fri, 12/12/2014 - 21:28

I have attached a few screenshots from Psi showing step by step how it works.

Categories: Tigase Forums

Pages

Get in touch

We provide software products, consulting and custom development services

Tigase, Inc.
100 Pine Street, Suite 1250
San Francisco, CA 94111, USA
Phone: (415) 315 9771

Follow us on:

Twitter

  • @tigase Is Desktop Sharing with Tigase XMPP Server possible? 1 week 4 days ago
  • Tigase Messenger.To enable or disable the account, please just type and hold on the selected account name. http://t.co/HIOjY6Zkyq 1 week 4 days ago
Back to Top