Здравствуйте.
Нужна помощь опытных jabber-админов и не очень опытных ;)
Поставил я на одну тачку (не подключеную к интернету) jabber и решил
проверить, как оно работает,
также для проверки поставил Gabber.
Запускаю: jabberd -h localhost -s /var/lib/jabber
и настраиваю Gabber на localhost порт 5222 он (Gabber) говорит, что нет
такой учетной записи и
предлагает ее создать, я, конечно, говорю 'Да', и он зацикливается на
этом вопросе.
Я смотрю логи
в /var/log/jabber/error.log:
--------------------------------------------------------------------------------------------------
20030123T10:15:22: [notice] (-internal): initializing server
20030123T10:17:53: [warn] (localhost): xdb_file failed to open file
/var/lib/jabber/localhost/kenobi.xml: No such file or directory
20030123T10:18:04: [notice] (MIO_XML_READ): socket from 127.0.0.1 is out
of karma
20030123T10:19:19: [notice] (MIO_XML_READ): socket from 127.0.0.1 is out
of karma
--------------------------------------------------------------------------------------------------
в /var/log/jabber/record.log:
---------------------------------------
...
20030123T10:17:53 [EMAIL PROTECTED] login fail 127.0.0.1 401 (null)
20030123T10:17:53 [EMAIL PROTECTED] login fail 127.0.0.1 401 Gabber
20030123T10:17:59 [EMAIL PROTECTED] login fail 127.0.0.1 401 Gabber
20030123T10:17:59 [EMAIL PROTECTED] login fail 127.0.0.1 401 Gabber
20030123T10:17:59 [EMAIL PROTECTED] login fail 127.0.0.1 401 Gabber
20030123T10:18:01 [EMAIL PROTECTED] login fail 127.0.0.1 401 Gabber
20030123T10:18:01 [EMAIL PROTECTED] login fail 127.0.0.1 401 Gabber
...
-----------------------------------------
файл kenobi.xml вроде есть:
------------------------------------------
ls -lF /var/lib/jabber/localhost/kenobi.xml
-rw------- 1 root root 227 Jan 23 16:19
/var/lib/jabber/localhost/kenobi.xml
-----------------------------------------
в файле /etc/jabber/jabber.xml ничего не трогал, а вот и он:
----------------------------------------------------------------------------------------------------------
<jabber>
<service id="sessions">
<host><jabberd:cmdline flag="h">localhost</jabberd:cmdline></host>
<jsm xmlns="jabber:config:jsm">
<filter>
<default/>
<max_size>100</max_size>
<allow>
<conditions>
<ns/> <!-- Matches if the iq's xmlns is the
same as the specified namespace -->
<unavailable/> <!-- Flag that matches when the
reciever is unavailable (offline) -->
<from/> <!-- Matches if the sender's jid is
the specified jid -->
<resource/> <!-- Matches if the sender's resource
(anything after the / in a jid) is the specified resource -->
<subject/> <!-- Matches if the message's subject
is the specified subject (no regex yet) -->
<body/> <!-- Matches if the message body is the
specified body (no regex yet) -->
<show/> <!-- Matches if the receiver's presence
has a show tag that is the same as the specified text -->
<type/> <!-- Matches if the type of the message
is the same as the specified text ("normal" is okay) -->
<roster/> <!-- Flag that matches when the sender
is in the receiver's roster -->
<group/> <!-- Matches when the sender is in the
specified group -->
</conditions>
<actions>
<error/> <!-- Sends back an error message to the
sender, with the specified text -->
<offline/> <!-- Flag that stores the message
offline -->
<forward/> <!-- forwards the message to the
specified jid -->
<reply/> <!-- Sends back a reply to the sender
with the specified text in the body -->
<continue/> <!-- Flag that continues rule matching,
after a rule matches -->
<settype/> <!-- Changes the type of message to the
specified type, before delivery to the receiver -->
</actions>
</allow>
</filter>
<!-- The server vCard -->
<vCard>
<FN>Jabber Server</FN>
<DESC>A Jabber Server on Debian GNU/Linux!</DESC>
<URL>http://www.debian.org/</URL>
</vCard>
<register notify="yes">
<instructions>Choose a username and password to register with
this server.</instructions>
<name/>
<email/>
</register>
<welcome>
<subject>Welcome!</subject>
<body>Welcome to the Jabber server -- 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>
<vcard2jud/>
<browse>
<service type="jud" jid="users.jabber.org" name="Jabber User
Directory">
<ns>jabber:iq:search</ns>
<ns>jabber:iq:register</ns>
</service>
</browse>
</jsm>
<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_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>
<xdb id="xdb">
<host/>
<load>
<xdb_file>./xdb_file/xdb_file.so</xdb_file>
</load>
<!-- BEWARE: do not add line breaks inside the <spool></spool>
tags -->
<xdb_file xmlns="jabber:config:xdb_file">
<spool><jabberd:cmdline
flag='s'>/var/lib/jabber</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>
<ip port="5222"/>
</pthcsock>
</service>
<log id='elogger'>
<host/>
<logtype/>
<format>%d: [%t] (%h): %s</format>
<file>/var/log/jabber/error.log</file>
<stderr/>
</log>
<log id='rlogger'>
<host/>
<logtype>record</logtype>
<format>%d %h %s</format>
<file>/var/log/jabber/record.log</file>
</log>
<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>
<io>
<rate points="5" time="25"/>
</io>
<pidfile>/var/run/jabber/jabber.pid</pidfile>
</jabber>
---------------------------------------------------
ps. я только учусь ;)