[JDEV] jpolld configuration

Vijay Kumar vijay at dsfinternet.com
Thu Dec 14 06:58:19 CST 2000


Hi all,
         Well I am not able to run the jpolld outside the machine of jabberd
.

        I am clue less about this . If any one has any idea what to do or
anyone has configured jpolld in other machine then
        jabberd then Pl do help me out .

     when I run jpolld with jabberd on the same machine it works perfectly
     with follwing configuration
     in jabber.xml I changed  complete c2s section to following :

  <service id="c2s">
         <host>jpolld.192.168.1.7</host>
         <accept>
             <ip/>
             <port>5225</port>
             <secret>test</secret>
         </accept>
   </service>
when   jabberd is on 192.168.1.7 & jpolld is also on 192.168.1.7


but when I run jpolld on different machine such as 192.168.1.29 & jpolld on
192.168.1.7
with c2s in jabber.xml as :
  <service id="c2s">
         <host>jpolld.192.168.1.29</host>
         <accept>
             <ip/>
             <port>5225</port>
             <secret>test</secret>
         </accept>
   </service>

& run jpollld as
jpolld -h 192.168.1.7 -d 5225 -n c2s -s test
from 192.168.1.29 .

   It got connected to jabberd but when I connect to jpolld with client it
gives me error (Server Configuration Er
ror) such as not able to establish session .



Wed Dec 13 19:27:08 2000  base_accept.c:328 io read event for 11
Wed Dec 13 19:27:08 2000  base_accept.c:213 base_accept: <route type='auth'
from
='2 at c2s/134584456' to='r0003 at 192.168.1.29'><iq type='set' id='1'><query
xmlns='j
abber:iq:register'><username>r0003</username><password>r0003</password><reso
urce
>r976717130</resource></query></iq></route>
Wed Dec 13 19:27:08 2000  deliver.c:472 DELIVER 4:192.168.1.29 <route
type='auth
' from='2 at c2s/134584456' to='r0003 at 192.168.1.29'><iq type='set'
id='1'><query xm
lns='jabber:iq:register'><username>r0003</username><password>r0003</password
><re
source>r976717130</resource></query></iq></route>
Wed Dec 13 19:27:08 2000  deliver.c:278 delivery failed (Server
Configuration Er
ror)
Wed Dec 13 19:27:08 2000  log.c:105 <log type='notice'
from='192.168.1.29'>bounc
ing a routed packet to r0003 at 192.168.1.29 from 2 at c2s/134584456: Server
Configura
tion Error</log>
Wed Dec 13 19:27:08 2000  deliver.c:472 DELIVER 3:192.168.1.29 <log
type='notice
' from='192.168.1.29'>bouncing a routed packet to r0003 at 192.168.1.29 from
2 at c2s/
134584456: Server Configuration Error</log>
Wed Dec 13 19:27:08 2000  deliver.c:344 delivering to instance 'logger'
20001213T13:57:08: [notice] (192.168.1.29): bouncing a routed packet to
r0003 at 19
2.168.1.29 from 2 at c2s/134584456: Server Configuration Error
Wed Dec 13 19:27:08 2000  deliver.c:472 DELIVER 4:c2s <route type='error'
from='
r0003 at 192.168.1.29' to='2 at c2s/134584456' error='Server Configuration
Error'><iq
type='set' id='1'><query
xmlns='jabber:iq:register'><username>r0003</username><p
assword>r0003</password><resource>r976717130</resource></query></iq></route>
Wed Dec 13 19:27:08 2000  deliver.c:344 delivering to instance 'c2s'
Wed Dec 13 19:27:08 2000  base_accept.c:341 io incoming message event for 11
Wed Dec 13 19:27:08 2000  base_accept.c:328 io read event for 11




& mine jabber.xml file is



<jabber>


  <!--
  This is the Jabber Server configuration file.
  The file is broken into different sections based on the services being
managed by jabberd, the server daemon.
  Most of the important sections are commented on and easy to modify, full
instructions are contained at http://docs.jabber.org/.
  When you see a tag like "jabberd:cmdline", it's automatically replaced on
startup with the command line flag to jabberd.
  -->


  <!-- This section is for the session manager, the most important component
within the server. -->
  <service id="sessions">

    <!--
    Change hostname below to something other than "localhost", or use the
"jabberd -h hostname" command line flag.
    Multiple <host>...</host> entries are allowed, each one is a seperate
virtual server.
    -->
    <host>localhost</host>
<host>oracle.dsf</host>
 <host>192.168.1.7</host>
    <host><jabberd:cmdline flag="h"/></host>

    <!-- This is the custom configuration section for the session
manager. -->
    <jsm xmlns="jabber:config:jsm">

      <info>
        <name>Jabber Server</name>
        <description>A Jabber Server!</description>
        <url>http://foo.bar/</url>
      </info>

      <register>
        <instructions>Choose a username and password to register with this
server.</instructions>
        <name/><email/>
      </register>

      <agents>

        <!-- This is the default agent for the master jabber user directory,
this section can be duplicated for additional user custom/company
directories. -->
        <agent jid="users.jabber.org">
          <name>Jabber User Directory</name>
          <description>You may register and create a public searchable
profile, and search for other registered Jabber users.</description>
          <service>jud</service>
          <register/>
          <search/>
        </agent>

        <!-- These are just examples, you will receive instructions on what
to place here when you install a real agent.
        <agent jid="aim.jabber.org">
          <name>AIM Transport</name>
          <description>This is the AIM Transport</description>
          <transport>AIM/AOL ScreenName</transport>
          <service>aim</service>
          <register/>
        </agent>
        <agent jid="icq.jabber.org">
          <name>ICQ Transport</name>
          <description>This is the ICQ Transport</description>
          <transport>ICQ#</transport>
          <service>icq</service>
          <register/>
        </agent>
        <agent jid="conference.jabber.org">
          <name>Group Conferencing</name>
          <description>You can create and participate in private
chatrooms.</description>
          <service>privatechat</service>
          <groupchat/>
          <register/>
        </agent>
        -->

      </agents>

      <!-- Session log file -->
      <log>
        <file>session.log</file>
        <type>session</type>
      </log>

      <!-- List of IDs with administrative access, all will receive
administrator messages
      <admin>
        <read>support at localhost</read>
        <write>admin at localhost</write>
      </admin>
      -->

      <!-- Server version update notification, set to the server name so
that all administrators (above) will be notified, or set to any ID -->
      <update><jabberd:cmdline flag="h"/></update>

    </jsm>

    <!-- This section dynamically loads the session manager, remove or
comment out modules to disable them. -->
    <load main="jsm">
      <jsm>./jsm/jsm.so</jsm>
      <mod_echo>./jsm/jsm.so</mod_echo>
      <mod_roster>./jsm/jsm.so</mod_roster>
      <mod_time>./jsm/jsm.so</mod_time>
      <mod_vcard>./jsm/jsm.so</mod_vcard>
      <mod_version>./jsm/jsm.so</mod_version>
      <mod_announce>./jsm/jsm.so</mod_announce>
      <mod_agents>./jsm/jsm.so</mod_agents>
      <mod_admin>./jsm/jsm.so</mod_admin>
      <mod_private>./jsm/jsm.so</mod_private>
      <mod_filter>./jsm/jsm.so</mod_filter>
      <mod_presence>./jsm/jsm.so</mod_presence>
      <mod_auth_plain>./jsm/jsm.so</mod_auth_plain>
      <mod_auth_digest>./jsm/jsm.so</mod_auth_digest>
      <mod_auth_0k>./jsm/jsm.so</mod_auth_0k>
      <mod_register>./jsm/jsm.so</mod_register>
      <mod_log>./jsm/jsm.so</mod_log>
    </load>

  </service>


  <!-- This component handles all data storage, using the filesystem. -->
  <xdb id="xdb">
    <host/>
    <load><xdb_file>./xdb_file/xdb_file.so</xdb_file></load>
    <xdb_file
xmlns="jabber:config:xdb_file"><spool>/opt/jabber/spool</spool></xdb_file>
  </xdb>


  <!-- Service to manage incoming client socket connections.
  <service id="c2s">

<load><pthsock_client>./pthsock/pthsock_client.so</pthsock_client></load>
    <pthcsock xmlns='jabber:config:pth-csock'>
      <authtime/>
      <rate time="5" points="25"/>
      <karma>
        <max>10</max>
        <inc>1</inc>
        <dec>1</dec>
        <restore>5</restore>
        <penalty>-5</penalty>
      </karma>
    </pthcsock>
  </service>
-->


  <service id="c2s">
         <host>jpolld.192.168.1.29</host>
         <accept>
             <ip/>
             <port>5225</port>
             <secret>test</secret>
         </accept>
   </service>



  <!-- Default server logging component, copies to a file and STDERR. -->
  <log id='logger'>
    <host/>
    <format>%d: [%t] (%h): %s</format>
    <file>error.log</file>
    <stderr/>
  </log>


  <!-- The following two services are for handling server to server
traffic. -->


  <!-- External asychronous DNS resolver -->
  <service id="dnsrv">
    <host/>
    <load><dnsrv>./dnsrv/dnsrv.so</dnsrv></load>
    <dnsrv xmlns="jabber:config:dnsrv">
     <resend service="_jabber._tcp">s2s</resend> <!-- for supporting SRV
records -->
     <resend>s2s</resend>
    </dnsrv>
  </service>


  <!-- Handles server connections and dialback hostname verification -->
  <service id="s2s">

<load><pthsock_server>./pthsock/pthsock_server.so</pthsock_server></load>
    <pthssock xmlns='jabber:config:pth-ssock'>
      <legacy/>
      <rate time="5" points="25"/>

      <karma>
        <max>30</max>
        <inc>2</inc>
        <dec>1</dec>
        <restore>15</restore>
        <penalty>-1</penalty>
      </karma>
    </pthssock>
  </service>

</jabber>


vijay





More information about the JDev mailing list