[JDEV] Newbie

Bill Farrell billfarr at ages.com
Mon May 7 10:25:09 CDT 2001


This message got rejected first-time-through for length, so I'll bust it up.
Thanks in advance!
Bill
---------------------------------------------------------------------

Wow, what a warm response!  Thanks, everyone!  I'm sure there's a config
problem somewhere, but darned if I can spot it.  Again, JUD snapped right in
just like the docs said it would.  I would really like to get conferencing
going if at all possible.  The AIM and ICQ transports can come in their time
(AIM transport failed to compile no matter what...)

In the interest of completeness, please forgive a really, really long email.
I *think* I understand most of the configuration (what's one more tagged
language amongst 500 others :-))).  What I don't understand is the reasoning
behind having different host names for each service.  I hope I completely
misunderstood that necessity, but it does seem odd and unusual.  Being a
good Borglet, I complied (see the DNS stuff below).

Y'all, I really, really appreciate the quick and numerous responses and
offer thanks in advance for the help.  Sometimes a second pair of eyes is
all ya need . . .

Best regards,
Bill

---------------------  Various Configs Follow -------------------------

----------- The External DNS Config -----------

ns1:/var/named # cat compuphrase.net
@       600     IN      SOA     ns1.compuphrase.net. admin.ilbfu.net. (
                        2001050401 ; serial
                        3600 ; refresh
                        900 ; retry
                        1209600 ; expire
                        43200 ; default_ttl
                        )
@       600     IN      MX      5       mail.compuphrase.net.
@       600     IN      NS      ns1.compuphrase.net.
...yadda-yadda...
www     600     IN      A       63.116.48.20
www     600     IN      A       63.116.48.13
wwa     600     IN      A       63.116.48.20
wwb     600     IN      A       63.116.48.13
;
;  Jabber "domains"
;
jabber          600     IN      A       63.116.48.20
conference      600     IN      CNAME   jabber
jud             600     IN      CNAME   jabber
icqreflect      600     IN      CNAME   jabber


-----------  The jabber.xml File -----------
<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 have comments and are easy to modify. You can find
  full instructions in the server howto, which is available at
  http://docs.jabber.org/. Note that when you see a tag like 
  "jabberd:cmdline", it's automatically replaced on startup 
  with the command line flag passed in to jabberd. This enables
  you to override parameters set in this configuration file if 
  necessary or desired. Also note as you comment things in and
  out that jabberd does not like comments within comments, so
  be careful with your XML. :)
  -->
  <service id="sessions">

    <!-- 
    Change hostname below to something other than "localhost", 
    i.e., to the hostname or IP address of your Jabber server. 
    Multiple <host/> entries are allowed - each one is for a 
    separate virtual server. Note that each host entry must 
    be on one line, the server doesn't like it otherwise! :)

    <host><jabberd:cmdline flag="h">localhost</jabberd:cmdline></host>
-->
	<host>jabber.compuphrase.net</host>

    <jsm xmlns="jabber:config:jsm">

      <filter>
          <default/>
          <max_size>100</max_size>
          <allow>
              <conditions>
                  <ns/>
                  <unavailable/>
                  <from/>
                  <resource/>
                  <subject/>
                  <body/>
                  <show/>
                  <type/>
                  <roster/>
                  <group/>
              </conditions>
              <actions>
                  <error/>
                  <offline/>
                  <forward/>
                  <reply/>
                  <continue/>
                  <settype/>
              </actions>
          </allow>
      </filter>

      <!-- The server vCard -->

      <vCard>
        <FN>Jabber Server</FN>
        <DESC>compuphrase Jabber Server</DESC>
        <URL>http://jabber.compuphrase.net</URL>
      </vCard>

      <register notify="yes">
        <instructions>
		Choose a username and password to register with this server.
		You can choose any handle you like so long as it's not
already taken.
	</instructions>
        <name/>
        <email/>
      </register>

      <welcome>
        <subject>Welcome!</subject>
        <body>Welcome to the Jabber server at jabber.compuphrase.net -- we
hope you enjoy this service! For information about how to use Jabber, visit
the Jabber User's Guide at http://docs.jabber.org/</body>
      </welcome>

	<update>jabber.compuphrase.net</update>

      <vcard2jud/>

      <browse>

        <service type="jud" jid="users.jabber.org" name="Jabber User
Directory">
          <ns>jabber:iq:search</ns>
          <ns>jabber:iq:register</ns>
        </service>

<!-- The local "JUD" transport" -->

         <service type="jud" jid="jud.compuphrase.net" name="Compuphrase
Jabber User Directory">
           <ns>jabber:iq:search</ns>
           <ns>jabber:iq:register</ns>
         </service>

<!-- The local Public Chat Rooms -->

	<conference type="public" jid="conference.compuphrase.net"
name="Conferencing"/>

<!-- The local ICQ Transport -->

        <service type="icq" jid="icqreflect.compuphrase.net"
name="ICQ_Transport">
                <ns>jabber:iq:gateway</ns>
                <ns>jabber:iq:register</ns>
                <!-- <ns>jabber:iq:search></ns> -->
        </service>


      </browse>

    </jsm>

    <!--
    The following section dynamically loads the individual
    modules that make up the session manager. Remove or 
    comment out modules to disable them. Note that the order
    of modules is important, since packets are delivered 
    based on the following order!!
    -->

    <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_last>./jsm/jsm.so</mod_last>
      <mod_version>./jsm/jsm.so</mod_version>
      <mod_announce>./jsm/jsm.so</mod_announce>
      <mod_agents>./jsm/jsm.so</mod_agents>
      <mod_browse>./jsm/jsm.so</mod_browse>
      <mod_admin>./jsm/jsm.so</mod_admin>
      <mod_filter>./jsm/jsm.so</mod_filter>
      <mod_offline>./jsm/jsm.so</mod_offline>
      <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_log>./jsm/jsm.so</mod_log>
      <mod_register>./jsm/jsm.so</mod_register>
      <mod_xml>./jsm/jsm.so</mod_xml>
    </load>

  </service>

  <!-- OK, we've finished defining the Jabber Session Manager. -->

  <!-- The <xdb/> 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><jabberd:cmdline flag='s'>./spool</jabberd:cmdline></spool>
    </xdb_file>
  </xdb>

  <service id="c2s">
    <load>
      <pthsock_client>./pthsock/pthsock_client.so</pthsock_client>
    </load>
    <pthcsock xmlns='jabber:config:pth-csock'>
      <authtime/>
      <karma>
        <init>10</init>
        <max>10</max>
        <inc>1</inc>
        <dec>1</dec>
        <penalty>-6</penalty>
        <restore>10</restore>
      </karma>

      <!-- 
      Use these to listen on particular addresses and/or ports.
      <ip port="5222">127.0.0.1</ip>
      -->
      <ip port="5222"/>

      <!--
      The <ssl/> tag acts pretty much like the <ip/> tag,
      except it defines that SSL is to be used on the 
      ports and IP addresses specified. You must specify
      an IP address here, or the connections will fail.
      <ssl port='5223'>127.0.0.1</ssl>
      <ssl port='5224'>192.168.1.100</ssl>
      -->

    </pthcsock>
  </service>

  <!-- 
  This is the default server error logging component, 
  which copies to a file and to STDERR. 
  -->

  <log id='elogger'>
    <host/>
    <logtype/>
    <format>%d: [%t] (%h): %s</format>
    <file>error.log</file>
    <stderr/>
  </log>

  <!-- 
  This is the default server record logging component, 
  which logs general statistical/tracking data. 
  -->

  <log id='rlogger'>
    <host/>
    <logtype>record</logtype>
    <format>%d %h %s</format>
    <file>record.log</file>
  </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>

  <service id="s2s">
    <load>
      <dialback>./dialback/dialback.so</dialback>
    </load>
    <dialback xmlns='jabber:config:dialback'>
      <legacy/>
      <!-- Use these to listen on particular addresses and/or ports.
      <ip port="7000"/>
      <ip port="5269">127.0.0.1</ip>
      -->
      <ip port="5269"/>
      <karma>
        <init>50</init>
        <max>50</max>
        <inc>4</inc>
        <dec>1</dec>
        <penalty>-5</penalty>
        <restore>50</restore>
      </karma>
    </dialback>
  </service>

<!-- the local JUD definition -->
	<service id="jud.compuphrase.net">
	  <host>jud.compuphrase.net</host>
	
<load><jud>/usr/lib/jabber/jabber-1.4.1/jud-0.4/jud.so</jud></load>
	  <jud xmlns="jabber:config:jud">
	    <vCard>
	      <FN>Private User Directory</FN>
	      <DESC>This is the ILBFU/compuphrase JUD directory
service.</DESC>
	      <URL>http://jabber.compuphrase.net/</URL>
	    </vCard>
	  </jud>
	</service>


<!-- the ICQ transport -->
    <service id="icqreflect.compuphrase.net">

            <icqtrans xmlns="jabber:config:icqtrans">
                    <instructions>
                            Please enter your ICQ number (in the "username"
field),
                            nickname, and password.  If you want to create a
new
                            ICQ number, leave the "username" field blank.
                    </instructions>
<!-- commenting-out made zero difference
                    <search>Search for ICQ users</search>
-->
                    <vCard>
                            <FN>ICQ Transport</FN>
                            <DESC>Transport to connect with ICQ</DESC>
                            <URL>http://icqreflect.compuphrase.net</URL>
                    </vCard>

                    <prime>4093</prime>

                    <ports>
                            <min>2000</min>
                            <max>3000</max>
                    </ports>

            </icqtrans>

            <load>
 
<icqtrans>/usr/lib/jabber/jabber-1.4.1/icq-transport-0.9/icqtrans.so</icqtra
ns>
            </load>
    </service>


<!-- Chatroom Transport -->

<service id="conference.compuphrase.net">

	<load>
	
<conference>/usr/lib/jabber/jabber-1.4.1/conference-0.4.1/conference.so</con
ference>
	</load>

	<conference xmlns="jabber:config:conference">

		<vCard>
			<FN>Compuphrase Public Chatrooms</FN>
			<DESC>Find a buddy in the Compuphrase Public
Chatrooms.</DESC>
			<URL>http://jabber.compuphrase.net/</URL>
		</vCard>

		<history>20</history>

		<notice>
			<join> is now logged into Jabber.</join>
			<leave> has left the Jabber system.</leave>
			<rename> is now known as </rename>
		</notice>

		<room jid="help at conference.compuphrase.net">
			<name>Assistance Zone</name>
			<privacy/>
		</room>

		<room jid="admin at conference.compuphrase.net">
			<name>Adminz only</name>
			<secret>success</secret>
			<notice>
				<join> just rocks!</join>
				<leave> gets lost</leave>
				<rename> is now known as </rename>
			</notice>
		</room>

		<room jid="greens at conference.compuphrase.net">
			<name>Broward Green Party</name>
			<notice>
				<join> just joined.</join>
				<leave> just left.</leave>
				<rename> takes the handle </rename>
			</notice>
		</room>

		<room jid="celtic at conference.compuphrase.net">
			<name>Celtic Music and Resources</name>
			<notice>
				<join> just joined.</join>
				<leave> just strolled away.</leave>
				<rename> feels it is more important to be
known as </rename>
			</notice>
		</room>

	</conference>
</service>
-->

  <!--
  The following <io/> config initializes the top-level
  I/O, otherwise known as MIO (Managed Input/Output).
  -->

  <io>

    <!-- Set the default karma for *all* sockets -->

    <rate points="5" time="25"/>

  </io>

  <!--
  This specifies the file to store the pid of the process in.
  -->
  <pidfile>./jabber.pid</pidfile>


</jabber>



More information about the JDev mailing list