ejabberd - Comments for "Ejabbered Mysql Database Authentication from diffent Database rather default given in mysql.sql" https://www.ejabberd.im/node/895 en Extauth + odbc https://www.ejabberd.im/node/895#comment-3472 <p>I also have problems with users authorization using MySQL database. I use roster_odbc. All other odbc things are not interesting for me. Also I need to authorize users using other database. I made perl script for extauth, but in case I don't define odbc auth for my domain - contact list from rosterusers &amp; rostergroups table are not available. But if I define:<br /> {host_config, "myhost.com", [{auth_method, [external, odbc]}]}.<br /> it become possible to login simply defining some string as a password.</p> <p>Could you help me in this case?</p> <p>Alouette.</p> Wed, 04 Apr 2007 15:28:23 +0000 alouette comment 3472 at https://www.ejabberd.im server.com/announce/all does https://www.ejabberd.im/node/895#comment-1948 <p>server.com/announce/all does not work at all<br /> server.com/announce/online works as expected</p> <p>Thanks sander. I will use it with my next problem. I will keep this problem in one place for now.</p> Wed, 28 Jun 2006 16:25:24 +0000 Martel comment 1948 at https://www.ejabberd.im Re: First of all, thanks for https://www.ejabberd.im/node/895#comment-1931 <div class="quote-msg"> <div class="quote-author"><em>Martel</em> wrote:</div> <p>Can we discuss it further by email? My address is martel [at] post.pl</p></div> <p>You can try the <noindex><a href="http://lists.jabber.ru/mailman/listinfo/ejabberd" rel="nofollow" >ejabberd mailing list</a></noindex>.</p> Tue, 27 Jun 2006 15:33:54 +0000 sander comment 1931 at https://www.ejabberd.im First of all, thanks for https://www.ejabberd.im/node/895#comment-1929 <p>First of all, thanks for your reply badlop.</p> <p>I'll try to describe it in more detail. I have an ejabberd server with extauth enabled on internal database. And because of this I have a hard time debugging it myself since I'm not familiar with erlang or it's mnesia database. </p> <p>My extauth script asks my own mysql database for user credentials. This database is used only for this purpose - authenticating a user.</p> <p>The problems I'm having are really strange sometimes. I will describe them in detail and as verbose as I can. </p> <p>One day I was talking to other local user for a while when suddenly he gone offline. After this happened, every single message I have sent to him came back to me as a message in another window (gajim client).</p> <p>There are times when two people try to subscribe to each other and both of them have subscribes pending and, as you probably guessed already, they don't receive each other's requests. ut when I login to webadmin I see some entries I can validate by hand. Observed mainly on Pandion but also on PSI and JAJC.</p> <p>And some questions:</p> <p>What happens when a person who is logged on tries to subscribe to another person who haven't logged to the system yet? I mean not even once. But is a valid user if asked through an extauth script?</p> <p>And what happens to messages for those people? </p> <p>You're telling me that a zero registered users is a normal thing for an auth script. Why is it normal? You have to keep some data for those clients in ejabberd database so in my opinion it should at least report which clients have a working structure already. How is it supposed to know if the offline message has a valid recipient if it doesn't know if he's registered or not?</p> <p>More to come.</p> <p>Can we discuss it further by email? My address is martel [at] post.pl</p> Tue, 27 Jun 2006 13:35:20 +0000 Martel comment 1929 at https://www.ejabberd.im Re: You can build your custom https://www.ejabberd.im/node/895#comment-1928 <div class="quote-msg"> <div class="quote-author"><em>Martel</em> wrote:</div> <p>I have it running and now I have 6 users online and ZERO registered users.</p></div> <p>That's normal, since there are no users registered on ejabberd itself.</p> <div class="quote-msg"> <div class="quote-author"><em>Martel</em> wrote:</div> <p>There are many problems with presence and authorization between clients.</p></div> <p>That isn't normal. Obviously, it should work correctly, and I'm sure because I use a virtual server with extauth and it works. </p> <p>Those problems are probably not related to your extauth script, so they are either a strange bug on ejabberd, or a problem in the system. For example, maybe it's a problem with the MySQL database, either its fault, or ejabberd's fault.</p> <div class="quote-msg"> <div class="quote-author"><em>Martel</em> wrote:</div> <p>Not to mention offline messages aren't stored because there are no registered users on the server at all.</p> <p>Check it out:</p> <p><noindex><a href="http://aie.pl/img/temp/ejabberd-online-users.png" title="http://aie.pl/img/temp/ejabberd-online-users.png" rel="nofollow" >http://aie.pl/img/temp/ejabberd-online-users.png</a></noindex><br /> http://aie.pl/img/temp/ejabberd-users.png</p></div> <p>This should work, since offline messages are stored on the database as I verified on an ejabberd server.</p> <div class="quote-msg"> <div class="quote-author"><em>Martel</em> wrote:</div> <p>Shouldn't it create a correct user structure for each authenticated user? </p></div> <p>Yes, and it should work correctly: roster, vcard, offline messages...</p> <div class="quote-msg"> <div class="quote-author"><em>Martel</em> wrote:</div> <p>Or even ask the extauth script for a list of registered users on some server events? </p> <p>And the last and most important question for me:</p> <p>Are you guys working on enhancing extauth or is it a low priority stuff? In the latter case I will simply move to other Jabeer server software and won't bug you again :)</p> <p>But please, give me some info so I can plan on what to do next.</p></div> <p>If there are bugs that prevent extauth-enabled servers from working correctly (not offline messages, wacky rosters...) obviously it should be fixed.</p> <p>But this time it seems more like a database problem, or the problem is mixing mysql + extauth.</p> <p>Summarizing: if you make some experiments (for example, internal database+extauth, or mysql database without extauth) and find any solution, or you advance a little further on the deffinition of the possible bug... comment it here.</p> <p>Otherwise, try another Jabber server.</p> Tue, 27 Jun 2006 12:10:02 +0000 mfoss comment 1928 at https://www.ejabberd.im Re: You can build your custom https://www.ejabberd.im/node/895#comment-1910 <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>You can build your custom auth script and tell ejabberd to use it as extauth. You can write that script in any language, and there are several examples: <noindex><a href="/extauth" rel="nofollow" >Authentication Scripts</a></noindex>.</p></div> <p>This creates a lot more problems. I have it running and now I have 6 users online and ZERO registered users. There are many problems with presence and authorization between clients. Not to mention offline messages aren't stored because there are no registered users on the server at all.</p> <p>Check it out:</p> <p><noindex><a href="http://aie.pl/img/temp/ejabberd-online-users.png" title="http://aie.pl/img/temp/ejabberd-online-users.png" rel="nofollow" >http://aie.pl/img/temp/ejabberd-online-users.png</a></noindex><br /> <noindex><a href="http://aie.pl/img/temp/ejabberd-users.png" title="http://aie.pl/img/temp/ejabberd-users.png" rel="nofollow" >http://aie.pl/img/temp/ejabberd-users.png</a></noindex></p> <p>Shouldn't it create a correct user structure for each authenticated user? Or even ask the extauth script for a list of registered users on some server events? </p> <p>And the last and most important question for me:</p> <p>Are you guys working on enhancing extauth or is it a low priority stuff? In the latter case I will simply move to other Jabeer server software and won't bug you again :)</p> <p>But please, give me some info so I can plan on what to do next.</p> Sat, 24 Jun 2006 12:21:26 +0000 Martel comment 1910 at https://www.ejabberd.im You can build your custom https://www.ejabberd.im/node/895#comment-1878 <p>You can build your custom auth script and tell ejabberd to use it as extauth. You can write that script in any language, and there are several examples: <noindex><a href="/extauth" rel="nofollow" >Authentication Scripts</a></noindex>.</p> Sun, 18 Jun 2006 09:45:16 +0000 mfoss comment 1878 at https://www.ejabberd.im