Quantcast
Channel: Ignite Realtime : Discussion List - Openfire Dev
Viewing all 957 articles
Browse latest View live

How do I add SASL External to my openfire server (s2s communication)

$
0
0

Hello,

 

I would greatly appreciate any insight or help on this aspect.

 

I have installed and have been running Openfire servers (2 of them running 3.6.4) successfully for sometime now. For s2s communications it was unencrypted and now I want it encrypted, so I have been trying to add encryption.

 

i created certificates for both from StartSSL.com and added them into the servers succesffully. Looks like these certificates are being provided to each other.

 

I set the following properties:

xmpp.server.tls.enabled = true.

xmpp.server.certificate.verify=false. (Tried with true also and had teh same result).

xmpp.server.dialback = false.

 

The TLS negotiation goes well and succeeds but then the sending openfire server tries to use SASL and looks like the receiving openfire server does not offer EXTERNAL SASL.

 

I added the <sasl><mechs>PLAIN,ANONYMOUS,EXTERNAL</mechs></sasl> to the config file and that presents the EXTERNAL thing as an option to clients, however my s2s logs still complains that EXTERNAL is not being offerered.

 

What am I missing, is there some other configuration that I need to do or perform some other things to get this to accept the certificates...or is it not supported ?

 

Thanks

Nagesh


[Bug] Presence probe for local user leaks information.

$
0
0

Hi,

 

in my opinion there is a bug (at least an inconsistency) in presence probes code for local users in OF.

I am using my custom integration scenario. I populate users' rosters via userservice plugin.

 

Let's have a following setting:

  • OpenFire server 3.9.3.
  • Two local users, Alice, Eve.
  • User Alice has empty roster.
  • User Eve has 1 item in roster, Alice, presence type=BOTH.
  • PrivacyLists are empty (not used here).

 

When presence session is created for Eve (she sends initial presence), she receives Alice's presence state from the OF even if she is not allowed to. Any subsequent Alice's status updates are not routed to Eve (what is correct), but initial status probe is performed and succeeds.

 

RFC 6121 specifies behavior for presence probes in section "4.3.2.  Server Processing of Inbound Presence Probe".

In particular: "If the contact account does not exist or the user's bare JID is

       in the contact's roster with a subscription state other than

       "From", "From + Pending Out", or "Both" (as explained under

       Appendix A), then the contact's server SHOULD return a presence

       stanza of type "unsubscribed" in response to the presence probe".

 

So in order to be consistent in both local and remote user scenarios, OF (in my opinion) should follow this RFC specification and Eve should not be able to obtain presence information of Alice.

 

In my opinion, problem is here:

  • PresenceUpdateHandler.initSession(), line calling presenceManager.probePresence(session.getAddress(), item.getJid());
  • PresenceManagerImpl.probePresence(JID prober, JID probee). In local case (server.isLocal(probee)) it does not perform check of the probee's roster and hapilly provides presence information to prober. Although routine for handling presence probe packets, PresenceManagerImpl.handleProbe(Presence packet), performs aforementioned roster check.

 

My suggestion how to fix this is to call PresenceManagerImpl.canProbePresence(JID prober, String probee) inside PresenceManagerImpl.probePresence and check if the probe should be permitted.

 

Temporary workaround is to use PrivacyLists and whitelist presence updates only for users in probee's roster, block everything not in the whitelist.

 

Thanks for considering my suggestion.

Feature Request: XEP-0198 Stream Management

$
0
0

Now that there is a Feature request bug for SMACK ( http://issues.igniterealtime.org/browse/SMACK-333 ), it would be nice to add a bug for openfire too.

I know that Stream Management is not easy to implement on Server side, therefore it will take a while to accomplish. But once it is there, it would attract more mobile users to use openfire as their XMPP server.

 

Flow

Multi User Chat - Room join invitation throws error 406

$
0
0

Hello ,

 

     We are implement MUC chat in one android application using Asmack library .I create one room .I send invitation to another user .

 

Where vijay sends invitation to rajesh. Using android app.

 

Asmack (Android) code :

 

public void joinGroup123() {

 

        try {

            // Xmpp Connection object

            XMPPConnection connection = XMPPLogic.getInstance().getConnection();

 

            //Create Multi User Chat object for group/room    "abc@conference.mysite.co"

            MultiUserChat muc = new MultiUserChat(connection,"abc@conference.mysite.co");

 

            //Invited person rajesh@mysite.co

            muc.invite("rajesh@mysite.co", "Invitation Message");

 

        } catch (Exception e) {

 

            e.printStackTrace();

            Log.e(TAG, "erro Invite time " + e.toString());

        }

 

    }

 

 

Invitation Request :

 

C2S - RECV (1559343451): <message id="tyrHW-11" to="abc@conference.mysite.co"><x xmlns="http://jabber.org/protocol/muc#user"><invite  to="rajesh@mysite.co/Smack"><reason>Join me for a group chat! testing again</reason></invite></x></message>

 

Server Response :

 

C2S - SENT (1559343451): <message id="tyrHW-11" to="vijay@mysite.co/Smack" from="abc@conference.mysite.co" type="error"><x xmlns="http://jabber.org/protocol/muc#user"><invite to="rajesh@mysite.co/Smack"><reason>Join me for a group chat! testing again</reason></invite></x><error code="406" type="modify"><not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></message>

 

 

in server response i get error . i cant understand what this error says. please help .

Add user to shared group (XEP-0140)

$
0
0

We are creating custom XMPP-client and are using OpenFire server 3.9.3. Question is: does OpenFire fully support standart XEP-0140: Shared Groups (http://xmpp.org/extensions/xep-0140.html) or a newer standart XEP-0144: Roster Item Exchange (http://xmpp.org/extensions/xep-0144.html)?

 

We are able to programmatically create new users using XEP-0133 (http://xmpp.org/extensions/xep-0133.html#add-user), but we are unable to add them to a shared group using XEP-0140 (http://xmpp.org/extensions/xep-0140.html#add).

 

Used XMPP-query example:

 

<iqtype='set'
   
from='bofh@example.com/daygig'
   
to='pubsub.example.com'
   
id='sub1'>
 
<pubsubxmlns='http://jabber.org/protocol/pubsub'>
   
<entitiesnode='groups/Marketing/Europe'>
     
<entityjid='alice@example.com'
             
affiliation='none'
             
subscription='subscribed'/>
   
</entities>
 
</pubsub>
</iq>

 

For this server returns:

 

<error code="400" type="modify">

    <bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"></bad-request>

</error>

 

Standart XEP-0144 doesn't work either, or it even can't be used for this purpose...

 

Any ideas / suggestions?

Move openfire svn to github 31 March

$
0
0

Hello,

 

I would like to proceed with moving openfire's development to igniterealtime's github account on 31 March.

 

If you think this is a terrible idea, please try to convince me otherwise   I know we don't have a formal governance policy with big changes like this, but I am pulling the community dictactor title with this one and wish to move forward.

 

daryl

Is Openfire supports searching of users?

$
0
0

 

Hello All,

 

 

              I want to provide user search facilty in my chat server so that other user can search user based on some their interest, locations etc. Is there is some way to implement such feature.. and can we search user by name or id ?:| .

 

 

waiting 4 reply...

 

 

Thanks in advance  

 

 

Future of Openfire development

$
0
0

Now that we have done the first step and migrated Openfire from SVN to git we should discuss how we should proceed. There was already a similiar discussion, called Thoughts on Openfire 4.0 that had a lot of good ideas. But honestly, I consider most of those ideas whishful thinking. In the past, development activity was very low and the developers where poorly connected and very unresponsive.

 

I'd like to see that changed, and given the recent momentum Openfire developed gained from migrating to github, think that that now is the ideal time trying to change it. Therefore I propose a few measures to improve the development situation:

 

1. Nightly development snapshots that produce .deb packages

2. Establish development guidelines and a policy

3. Invite more developers to your MUC

3. Establish a page to motivate developers of every skill level to contribute

 

 

1) I consider this very important and it's something every open source project should have. If we provide a fast and convinient way to test openfire's 'master' branch, then I expect more users to grab the latest snapshot, e.g. because they want to test a new features, and report regressions and bugs back. Unfortunately, this process has happened in the past with releases, that why it was necessary after the last two releases another bugfix release was pushed only a few days later.

 

2) We need to agree on some common policy regarding development and create a document where this is all written down. For example: "How do we name releases?", "How do we handle branches?", "What is the relase process?", "Commit messages should contain the issue key", "We prefer rebasing pull requests instead of merging them if possible", "When is it ok to commit something into the master branch?", "At least X developers should give '+1' for pull requests before they are merged" and so on

 

3) Currently it's only darly and me who idle around in open_chat@conference.igniterealtime.org. It would be great if more contributors would join this room. Chat's always help to spread information faster und discussing ideas and problems in an informal environment such as an chat produces usually better results then using a forum.

 

4) I think we should create a "Volunteer offers" page and set up prominent points on igniterealtime.org to the page. The goal should be to motivite developers of every skill level to contribute to Openfire. E.g. "We are looking for someone who impelements nighlty snapshots .deb packages of openfire and helps us packaging Openfire. Contact Flow for more information"


Error Building from Eclipse

$
0
0

Hi folks,

 

I'm trying to build a custom AuthProvider and trying to get the source to build in Eclipse.

 

I followed the build instructions for Ant from the commandline and that works fine; however, when I try to build using Ant in Eclipse, I am getting the following error:

 

Buildfile: C:\Users\Charles\eclipse\workspace\Openfire XMPP Server\build.xml  [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.


BUILD FAILED
C:\Users\Charles\eclipse\workspace\Openfire XMPP Server\build.xml:35: taskdef class org.jivesoftware.ant.SubDirInfoTask cannot be found
 using the classloader AntClassLoader[]


Total time: 308 milliseconds

 

I am completely new to Eclipse so I've been following the guide here: http://community.igniterealtime.org/docs/DOC-1020 but I am stuck at this point.

 

Any guidance would be much appreciated.  Apologies for such a noob question, but I've been coddled by Visual Studio -_-

Best suited IDE for Openfire Plugin Development

$
0
0

Hi,

I'm new to Openfire Development and Java EE also.

What IDE do you advise to import Openfire,develop plugin for it and build? I have used eclipse (actually ADT) for android develoment. I'm looking for an IDE that openfire project is developed on, and start plugin development after downoad source, in an OUT OF THE BOX manner, and debug easily.

 

Thanks a lot

Add Reliable Voip service to Openfire(SIP or Jingle?)

$
0
0

Hi,

I'm intrested to add a reliable voice/video call feature to my xmpp service run on Openfire server.

After some search and investigate on this topic I finally reached the solution described bellow,

Please read and give your suggestion on it as it would be helpful for others and Also Openfire development.

Here are the steps of my solution:

1- Run an SIP server (eg. kamailio) next to openfire Jabber server.

2- Write an openfire plugin to add account to SIP server for any Openfire user with the same username and password.

3- In the client side, develop application parts to work with SIP. and login to SIP account next to the Jabber account Login.

4- Whenever client want a voice/video call try to connect to SIP server and request call using that server.

 

Is it a good and simple solution for having reliable and good qualilty voice and video call in an XMPP service? Or you prefer using Jingle Extension to do so?

Or you prefer another solution that I forgot to explain?

 

Please discuss on this topic and give your opinions on the following fields:

1- Why you prefer one method over another?

2- What is the steps to make that solution?

3- What resources and sample code could you give to make that solution?

4- Is there any working example of that solution?

 

Thanks for your contribution on this topic

Best Regards

How to Set Group profile image in openfire like VCard of individual user .

$
0
0

Here we get one story for setting profile image for group . Is there any options to set profile image of group in openfire ? I am using Asmack at client side .

Images are Bouncing when the user is offline in Openfire

$
0
0

I am newbie to openfire server, There is an iOS app using this server, All the text/image messages are delivering to end user properly when the receiver user is online, But in when the receiver is offline, Only the text messages getting delivered when he comes online But the images are bouncing.

As I can only find the /etc/openfire where openfire.xml is located, Do i need to edit this file, The file looks like this

 

 

 

I am newbie to openfire server, There is an iOS app using this server, All the text/image messages are delivering to end user properly when the receiver user is online, But in when the receiver is offline, Only the text messages getting delivered when he comes online But the images are bouncing.

 

 

As I can only find the `/etc/openfire` where `openfire.xml` is located, Do i need to edit this file, The file looks like this

 

 

    <?xml version="1.0" encoding="UTF-8"?>

   

    <!--

        This file stores bootstrap properties needed by Openfire.

        Property names must be in the format: "prop.name.is.blah=value"

        That will be stored as:

            <prop>

                <name>

                    <is>

                        <blah>value</blah>

                    </is>

                </name>

            </prop>

   

        Most properties are stored in the Openfire database. A

        property viewer and editor is included in the admin console.

    -->

    <!-- root element, all properties must be under this element -->

    <jive>

      <adminConsole>

        <!-- Disable either port by setting the value to -1 --> 

        <port>9090</port> 

        <securePort>9091</securePort>

      </adminConsole> 

      <locale>en</locale> 

      <!-- Network settings. By default, Openfire will bind to all network interfaces.

          Alternatively, you can specify a specific network interfaces that the server

          will listen on. For example, 127.0.0.1. This setting is generally only useful

           on multi-homed servers. --> 

      <!--

        <network>

            <interface></interface>

        </network>

        --> 

      <connectionProvider>

        <className>org.jivesoftware.database.DefaultConnectionProvider</className>

      </connectionProvider> 

      <database>

        <defaultProvider>

          <driver>com.mysql.jdbc.Driver</driver> 

          <serverURL>jdbc:mysql://localhost:3306/openfire?rewriteBatchedStatements=true</ serverURL> 

          <username>root</username> 

          <password>mypwd</password> 

          <testSQL>select 1</testSQL> 

          <testBeforeUse>false</testBeforeUse> 

          <testAfterUse>false</testAfterUse> 

          <minConnections>5</minConnections> 

          <maxConnections>25</maxConnections> 

          <connectionTimeout>1.0</connectionTimeout>

        </defaultProvider>

      </database> 

      <setup>true</setup>

    </jive>

 

 

 

 

How to resolve this issue.

Group chat issue

$
0
0

There are three users (A,B,C) . Where A creates group and invites B and C . There B and C accept invitations .

There are total three members in room. All are chating in group. But in middle C are going offine .That time A and B countinuesly chat .After some times C comes online and rejoins group.

There is an issue that when C comes online C gets last message of group in every 5 minuts. Why this is happening ?

 

Where group name is testing.

A send message in group : 1234567890

 

C2S - SENT (338454169): <message id="49" to="C@mysite.co/Smack" from="testing@mysite.co/A" type="groupchat"><subject>1234567890</subject><body>1234567890</body><request xmlns="urn:xmpp:receipts"/><delay xmlns="urn:xmpp:delay" stamp="2014-06-18T11:15:13.539Z"/><x xmlns="jabber:x:delay" stamp="20140618T11:15:13"/></message>

Error for starting openfire

$
0
0

Hi I'm a new developer for openfire. I have build and init(seting datebase and admin) openfire successfully.

 

But after that, the following exception happened:

 

Console:

 

java.lang.NullPointerException    at org.jivesoftware.openfire.XMPPServer$1.run(XMPPServer.java:433)

 

Log:

 

2014.06.20 17:55:20 org.jivesoftware.openfire.container.PluginManager - Error loading plugin: C:\Users\Worksap\Openfire\target\openfire\plugins\admin
java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool    at java.lang.Class.getDeclaredConstructors0(Native Method)    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)    at java.lang.Class.getConstructor0(Unknown Source)    at java.lang.Class.newInstance(Unknown Source)    at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:418)    at org.jivesoftware.openfire.container.PluginManager.access$1(PluginManager.java:282)    at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManager.java:1072)    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)    at java.util.concurrent.FutureTask.runAndReset(Unknown Source)    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.thread.ThreadPool    at java.net.URLClassLoader$1.run(Unknown Source)    at java.net.URLClassLoader$1.run(Unknown Source)    at java.security.AccessController.doPrivileged(Native Method)    at java.net.URLClassLoader.findClass(Unknown Source)    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:427)    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:389)    ... 14 more

 

If I restart openfire (startup a openfire has been inited). Except for the second exception, it tells me another exception about the address alreeady in use:

 

Console:

Openfire 3.10.0 Alpha [Jun 20, 2014 6:00:33 PM]

Error creating server listener on port 5269: Address already in use: JVM_Bind

Openfire 3.10.0 Alpha [Jun 20, 2014 6:00:34 PM]

Error starting server listener on port 5269: null

Admin console listening at:

  http://wap-chenxiao1:9090

  https://wap-chenxiao1:9091

Error starting XMPP listener on port 5222: Address already in use: bind

Error starting SSL XMPP listener on port 5223: Address already in use: bind

Log:

 

java.net.BindException: Address already in use: bind    at sun.nio.ch.Net.bind0(Native Method)    at sun.nio.ch.Net.bind(Unknown Source)    at sun.nio.ch.Net.bind(Unknown Source)    at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)    at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)    at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:363)    at org.apache.mina.transport.socket.nio.SocketAcceptor.access$800(SocketAcceptor.java:55)    at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:222)    at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)    at java.lang.Thread.run(Unknown Source)
2014.06.20 18:00:34 org.jivesoftware.openfire.spi.ConnectionManagerImpl - Could not setup SSL socket
java.net.BindException: Address already in use: bind    at sun.nio.ch.Net.bind0(Native Method)    at sun.nio.ch.Net.bind(Unknown Source)    at sun.nio.ch.Net.bind(Unknown Source)    at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)    at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)    at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:363)    at org.apache.mina.transport.socket.nio.SocketAcceptor.access$800(SocketAcceptor.java:55)    at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:222)    at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)    at java.lang.Thread.run(Unknown Source)

 

I am really confused about it. Dose anybody can help me?

 

Thanks!


Chartset problem with Monitoring Service plugin

$
0
0

Hi to you all.

I installed Monitoring Service  pluging for openfire , now conevsations in Arabic or Persian languages are archived but in "???????" format !

I added UTF-8 to MySql database . No problem in other parts in Openfire .

 

I realized that the pluging calls for conversations through javascript inner.Html function to show it as a frame,targeted "conversation-viewer.jsp?conversationID=" + conversationID;" . When i open this page with an ID in a seperate window i can see the generated html doesnt contain any charset setting . How can i find and add charset to this page (conversation-viewr.jsp)? Thank you

Can't build latest Git source in NetBeans

$
0
0

I'm pulling new changes from Git into my local clone as they appear in Fisheye's rss feed. But i'm not trying to build the project often. So i can't say when it went wrong, but now when i'm trying to build it, i get errors about not existing packages (attached). Maybe i should build some new plugins before building the main project?

 

Another question: i see that this was merged recently by Dele https://github.com/igniterealtime/Openfire/pull/48

But i don't remember anything about it in the forums, nor a ticket in JIRA for this.

Connect from Java Application to Openfire Server

$
0
0

Good day to you all.

 

I managed to get the Openfire server working with my own database.

 

I have developed an application where I login with a user and I use some methods of changing data.

Right now, I would like to allow a user to see which contacts that he/she has are also logged in, so I can develop a chat among them.

 

My problem is that I do not know how to login the user from my Java application into the Openfire server.

 

I am searching through the Java Docs and I cannot find any method that allows me to do that,

to login a user that is already in the database into Openfire from my own application.

 

Would you mind lending me a hand with this, please?

 

Thank you very much and have a nice day.

Will Openfire host my Google Cloud Messaging Server?

$
0
0

Although I am developing Android apps, I am a newbie to the world of Java servers.  My apps have been using internal SMS messaging to allow the phones to talk to each other.  This worked wonderfully until KitKat broke all that.  Now I'm looking at GoogleCloudMessaging (GCM) using Cloud Connection Server that uses XMPP.

 

The Google docs cover about everything I would need to know except that they, mysteriously, stay away from telling how to actually implement my GCM XMPP server.  (See https://developer.android.com/google/gcm/ccs.html

 

All the other tutorials on the internet also avoid covering this issue.

 

So, my questions are:  Is Openfire a platform that would be good for hosting my GCM CCS XMPP Server?  Has anyone used Openfire for this purpose?

 

While testing I would want to host on my dev box but soon I would need a commercial server hoster.

Thanks,

Gary

What is returned by getOccupants() method of MultiUserChat class ?

$
0
0

i know getOccupants() method returns java.util.List<java.lang.String> .

 

But i want to know about getOccupants() method returns all occupants of room or only ONLINE occupants of room ?

Viewing all 957 articles
Browse latest View live




Latest Images