Home
ejabberd
ejabberd@conference.jabber.ru
Tuesday, 2 October 2007< ^ >
badlop has set the subject to: Здесь говорят только по-английски! | Only english here! | website: http://www.ejabberd.im/
Room Configuration

GMT+4
[00:12:54] bbiel leaves the room
[01:14:36] astol joins the room
[01:14:42] <astol> hey all
[01:15:12] <astol> I've got a problem with external auth module, it just refuses to run
[01:15:50] <astol> can you help me please? log message says {badarg,[{extauth,call_port,2}, and stuff
[01:17:05] badlop joins the room
[01:17:22] <astol> hi badlop!
[01:17:38] <astol> you're familiar with extauth?
[01:17:43] <badlop> no
[01:18:00] <badlop> anyway, show the first error message you see
[01:19:13] <astol> here, http://pastebin.ca/722247
[01:20:37] <astol> I've got a simple shell script at /etc/ejabberd/test, # su ejabberd -c ./test does what it should do
[01:21:11] <astol> but it doesn't gets run when user connects, and I can't figure out how do I ask ejabberd to run it
[01:21:35] <badlop> before that error message, do you see anything strange?
[01:22:02] <astol> no, just =INFO REPORT= about Accepting connection
[01:22:20] <astol> each connection attemp ends up in these 2 messages, first INFO then ERROR
[01:24:13] <badlop> maybe missing permission to execute the file?
[01:24:16] sanderd joins the room
[01:25:07] <astol> as far as I can see ejabberd service runs as ejabberd user, and su to this user runs the script perfectly, syslogs everything it should
[01:25:41] <badlop> did you put full path or local to the script in ejabberd.cfg?
[01:25:45] <sanderd> version_server ya.ru
[01:25:45] <sulci> sanderd: ya.ru is running yabberd 1.0 (unix/linux 2.6.18)
[01:26:06] <sanderd> seems to be a new XMPP server implementation :-)
[01:26:46] <badlop> sanderd: not that new:
[01:26:58] <badlop> yabberd jabber server
Derived from ejabberd project
Copyright (c) 2002-2006 Alexey Shchepin
Copyright (c) 2006-2007 Yandex Team
[01:27:19] <sanderd> where do you find that information?
[01:27:27] <badlop> the server vcard :)
[01:27:32] <sanderd> heh
[01:27:33] <astol> I've put full path,
{auth_method, external}.
{extauth_program, "/etc/ejabberd/test"}.
[01:27:55] <badlop> astol: did you try using the example script?
[01:27:59] <sanderd> so they did what Google should have done :o)
[01:28:31] <badlop> sanderd: yes, they did what you wanted Google to do :P
[01:28:32] <astol> badlop: no, what's its name?
[01:29:12] <badlop> astol: http://svn.process-one.net/ejabberd/trunk/examples/extauth/
[01:31:12] <badlop> sanderd: that's the first news i see about that server, how did you find it? :)
[01:31:17] <astol> trying it, thanks
[01:33:38] <astol> the same error
[01:36:06] <badlop> try to give X permission to all
[01:36:13] <astol> oh, wait, I used bundled script, it lacks permissions and owner
[01:42:38] <astol> *sigh* still bad luck
[01:43:13] <deryni> Do you have multiple hosts set up? With different auth mechanisms? Are you trying to log in with the correct user@host?
[01:43:25] kostix joins the room
[01:45:40] <astol> no, single host, in fact, cfg is pretty much the same as the original in example, I've changed only admin name, hostname and ip to listen on for all "listen" entries. with internal auth I am able to login two different users and chat them
[01:46:02] <astol> and external auth doesn't seem to run at all
[01:47:14] <deryni> Could you pastebin the config?
[01:47:28] <astol> sure
[01:50:32] <astol> here it is http://pastebin.ca/722282
[01:50:41] <astol> sample script, config, log
[01:53:08] <deryni> Your script needs to loop. It shouldn't ever finish.
[01:53:36] <deryni> But you said you got the same error with check_pass_null.pl right?
[01:54:51] <astol> not really .pl but .php on community site, yes, the same error. and after all even it doesn't loop and doesn't make anything to achieve correct work, it should've been at least run and create that file in /tmp?
[01:55:05] <astol> *even if it
[01:55:16] <astol> but no file, alas
[01:57:18] <kostix> does anyone knows about jabber webchat more simplistic that jwchat? I mean: no "web 2.0" stuff", something like Ralf's chat or cgiirc.
[01:58:11] <deryni> So you didn't try with check_pass_nul.pl? Can you try that?
[01:59:02] <badlop> kostix: i think yaws includes some example chat app
[01:59:29] <astol> it gets deeper :) .pl doesn't run, Can't locate Unix/Syslog.pm, guess it's simple to solve but I've got virtually no perl experience
[02:00:13] <astol> went googling
[02:00:18] kostix leaves the room
[02:00:26] <deryni> You can try commenting out the lines with 'syslog' on them for now.
[02:02:03] sanderd leaves the room
[02:03:12] kostix joins the room
[02:06:57] <kostix> badlop: uhm... written in erlang? :P
[02:06:58] <kostix> (sorry, disconnected)
[02:07:56] <astol> seems like I did it
[02:08:06] <astol> oh badlop, deryni, you're gods
[02:08:09] <astol> thanks a lot
[02:08:19] <deryni> What was it?
[02:08:22] <badlop> kostix: may i confused a yaws chat app with this: http://jabberworld.org/
[02:08:49] <astol> the problem is, as I see it, that broken script will return this error
[02:09:09] <astol> how broken exactly is to find out, but perl script ran ok
[02:10:01] <kostix> badlop: no, seems ajax thing also :\
[02:10:03] <astol> a mystery though why that file wasn't created
[02:11:11] <deryni> astol: If you remove the space between the #! and the /bin/sh does that work? (This is a tremendous long shot as it shouldn't matter, but who knows.)
[02:12:04] <astol> hah
[02:12:18] <astol> it was that space :)
[02:13:14] <deryni> I have no idea why that matters, but ok.
[02:13:15] <badlop> astol: so,your problem with extauth is solved?
[02:13:35] <astol> badlop: yes, thanks a lot, but please don't kick me now though :)
[02:14:21] <badlop> let's summarize the mistakes: i'll write a page in the FAQ
[02:14:49] <badlop> what was the reason of your problem, and how did you solve it?
[02:18:22] <astol> I found the main reason, it doesn't works if file hasn't chmod 777
[02:18:53] <badlop> it needs write permission too?
[02:18:59] <astol> so I think it gets run not as ejabberd or root, but as who, thats the question
[02:19:09] <astol> no, it doesn't work with even 755
[02:19:35] <deryni> Even after you fixed the space issue?
[02:21:09] <astol> no, wait, it's stupid me, forgot to change config back
[02:21:19] <astol> it does works with 755
[02:21:54] <astol> so I conclude its only my own lameness :)
[02:23:20] <badlop> so, that error message may indicate a bug in the extauth script
[02:23:32] <astol> a line in faq reminding about permissions for newbies like me will be helpful though
[02:23:55] <badlop> for example, your hand-written script had a space in the #! line, right?
[02:24:12] <badlop> what permissions are required? 500?
[02:24:50] kostix leaves the room
[02:28:00] <astol> yes, the error is still the same, {badarg,[{extauth,call_port,2}, and stuff, but it gets run with with u=rx
[02:28:47] <astol> and server needs to be restarted after you change permissions, I don't know if its normal for linux
[02:29:45] <deryni> You need to restart the server to get ejabberd to try to spawn the process again.
[02:30:07] <deryni> What are you trying to auth against anyway, out of curiosity?
[02:30:44] <astol> aah, I see, if I change script I should restart server, too
[02:30:50] <astol> trying to auth against mysql
[02:31:32] <astol> a cluster of mysqls by specific rule depending on username, to be precise
[02:31:57] <deryni> Ah, which is why you can't use the built in mysql auth stuff.
[02:33:26] <astol> yep, I wish I could
[02:40:45] legoscia leaves the room
[03:55:51] badlop leaves the room
[04:24:31] astol leaves the room
[04:52:35] Christian leaves the room
[04:58:25] Christian joins the room
[05:48:28] Christian leaves the room
[09:57:50] fox_a35 joins the room
[09:58:08] <fox_a35> oh
[11:16:34] kolargol joins the room
[11:16:56] kolargol leaves the room
[12:02:04] badlop joins the room
[12:36:15] fox_a35 leaves the room: offline
[12:43:33] legoscia joins the room
[13:25:09] d.k.Brazz joins the room
[13:25:27] d.k.Brazz leaves the room
[15:04:10] kostix joins the room
[15:49:07] kolargol joins the room
[15:50:20] kolargol leaves the room
[15:55:26] astol joins the room
[15:55:32] <astol> hey all
[16:17:05] Christian joins the room
[16:17:39] kostix leaves the room
[16:19:41] kostix joins the room
[16:34:44] <astol> how do I know my ejabberd version?
[16:35:28] <badlop> looking at the ChangeLog file?
[16:36:11] <astol> :) and after I built & installed it? just to check that no conflict takes place
[16:37:14] <badlop> look at the server's vcard
[16:37:45] <astol> it won't tell it, just name and copyright info
[16:38:31] <badlop> server_version jabber.ru
[16:39:26] <badlop> version_server jabber.ru
[16:39:26] <sulci> badlop: jabber.ru is running ejabberd 1.1.2 (unix/linux 2.6.12)
[16:40:03] <astol> version_server 192.168.0.1 :)
[16:40:03] <sulci> astol: invalid server name
[17:00:20] mr_coccinella joins the room
[17:07:44] <astol> just in case someone will search google like I did:
to solve ejabberd MySQL connection failed: connect_failed you need to ./configure --enable-odbc
to solve ejabberd MySQL connection failed: timeout you need to change default timeout value in ejabberd-modules/mysql/trunk/src/mysql_conn.erl, default of 5000 secs wasn't enough for me (don't know, maybe it could be done easier with config)
[17:10:13] <astol> *5000 msecs
[17:37:27] mr_coccinella leaves the room
[17:46:24] astol leaves the room
[18:20:18] mhterres joins the room
[18:29:08] badlop leaves the room
[18:29:11] <mhterres> hello
[18:29:19] <mhterres> I have a doubt with ejabberd. Is it possible to authenticate the users in LDAP and use MySQL to store roster, offline and other things ?
[18:29:27] <mhterres> I'm using ejabberd 1.1.4
[18:36:25] badlop joins the room
[18:38:29] <badlop> mhterres: no idea, i just found this: http://www.ejabberd.im/node/803
[18:39:36] <mhterres> Yes, I read this too
[18:39:56] <mhterres> this is and old question
[18:40:06] <mhterres> but looks like the problem persists :-/
[18:46:56] <mhterres> I hope that anybody here could help me with this problem
[18:47:00] <deryni> Given a really quick look at the code (code I know nothing about mind you) it looks like maybe the only module that actually starts the right odbc process is mod_auth_odbc and that the other _odbc modules just use the same connection.
[18:47:05] <deryni> But I could be incredibly wrong.
[18:47:11] <mhterres> maybe it is not a problem, just a misconfiguration
[18:47:48] <mhterres> I read that if you enable the auth method using odbc, everything else works great
[18:48:02] <mhterres> the problem is that I need to use ldap to authenticate
[18:48:10] <mhterres> cause all users are in ldap
[18:59:21] <badlop> deryni: here is the FAQ page for the extauth problem of yesterday: http://www.ejabberd.im/node/2644
[19:01:12] <deryni> Looks good, though there is one typo "diesn't" in the Explanation.
[19:02:33] <badlop> fixed
[19:06:25] zapw joins the room
[19:06:45] <zapw> ad-hook commands can only work on the server that runs ejabberd yes?
[19:06:59] <zapw> i mean it cant do anything on the client computers connected to the servers
[19:07:17] <deryni> It can if the client is the one implementing the ad-hoc command.
[19:07:40] <zapw> how do i do that?
[19:08:02] <deryni> You need a client that advertises ad-hoc commands.
[19:08:37] <zapw> i want for example , that if a specific user in a group executes an ad-hoc command on a user a specific system command will be executed on this client pc
[19:08:41] <zapw> hmm
[19:08:48] <zapw> ok
[19:10:44] <zapw> thanks
[19:11:23] <zapw> do you use gajim?
[19:11:45] <zapw> says it supports it
[19:12:28] <badlop> tkabber svn, psi svn also provide some ad-hoc commands
[19:14:32] <zapw> yes, there is an execute command on the users
[19:14:41] <zapw> does that mean it supports ad-hoc?
[19:21:29] <kostix> badlop: I think tkaber 0.10 stable supports them
[19:22:51] <badlop> ah, maybe... since i always run svn, i forget :)
[19:38:14] <zapw> gajim gajim
[19:38:41] zapw leaves the room: offline
[19:40:18] zapw joins the room
[21:52:23] zapw leaves the room
[22:12:53] kostix leaves the room
[22:30:46] badlop leaves the room
[22:34:27] badlop joins the room
[22:48:22] er4z0r joins the room
[22:48:50] <er4z0r> hi
[22:50:42] <er4z0r> legoscia: do you know anything about mod_proxy / mod_proxy65
[22:50:49] <er4z0r> it is not in the online-howto
[22:51:03] <er4z0r> the official operation-guide I mean
[22:51:38] <badlop> er4z0r: http://svn.process-one.net/ejabberd/trunk/doc/guide.html#htoc42
[22:52:00] <badlop> the module is only available in SVN, so you need to refer to the SVN guide, right? :)
[22:52:30] <er4z0r> badlop: ah ok. I had only read the name somewhere
[22:53:07] <er4z0r> will it run with, say 1.1.3? (yes I know 1.1.4 is out)
[22:55:18] <badlop> no idea
[22:55:39] <er4z0r> badlop: hmm, are there any alternatives to set up a proxy?
[23:13:32] rmrf joins the room
[23:14:52] <rmrf> hi.have problem. I have two AD domains and I'm trying to setup two virtual hosts with separate auth_ldap authentication. ejabberd 1.1.4 under windows
[23:17:04] <rmrf> Before ejabberd worked only with one domain
[23:17:44] <rmrf> right now it is still work like nothing happened - it fail all authentications through additional virtual server
[23:17:50] <rmrf> here is my part of config:
[23:17:56] <rmrf> {host_config, "domaina", [
{auth_method, ldap},
{ldap_servers, ["server.domaina"]},
{ldap_port, 3268},
{ldap_base, "DC=domaina"},
{ldap_rootdn, "DOMAINA\user"},
{ldap_password, "supapupa"},
{ldap_uidattr, "sAMAccountName"},
{ldap_rfilter, "(&(memberOf=*))"}
]}.
{host_config, "domainb", [
{auth_method, ldap},
{ldap_servers, ["server.domaib"]},
{ldap_base, "DC=domainb"},
{ldap_rootdn, "DOMAINB\user"},
{ldap_password, "muhaha"},
{ldap_uidattr, "sAMAccountName"},
{ldap_rfilter, "(&(memberOf=Domain Users))"}
]}.
[23:26:38] rmrf leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!