ejabberd - Comments for "External auth program not being called" https://www.ejabberd.im/node/3384 en I know this post is 6 years https://www.ejabberd.im/node/3384#comment-65593 <p>I know this post is 6 years old, but I just ran into the same problem using an external auth perl script. It was apparently working to authenticate using an oauth2 endpoint, but was emitting no logs.</p> <p>Fixed it by turning on autoflush for my file handle. see:<br /> <noindex><a href="http://www.perlmonks.org/?node_id=280025" title="http://www.perlmonks.org/?node_id=280025" rel="nofollow" >http://www.perlmonks.org/?node_id=280025</a></noindex></p> Tue, 19 May 2015 15:17:55 +0000 scags9876 comment 65593 at https://www.ejabberd.im Checked... permissions are OK https://www.ejabberd.im/node/3384#comment-54037 <p>Make sure you also check permissions of the authentication script itself, it must be executable. It wouldn't be strange to miss this, when you write for the web you don't need to take care of this, but in cli mode you do.</p> <p>Further each time you edit the script or permissions, restart ejabberd or you won't get any change.</p> Tue, 24 Feb 2009 16:56:50 +0000 paolo comment 54037 at https://www.ejabberd.im Checked... permissions are OK https://www.ejabberd.im/node/3384#comment-54008 <p>Hi, thanks for your reply!</p> <p>I've double checked permissions for the log file and it's 666 (everyone can write and read). Also, if ejabberd didn't have permissions to write in the logfile, i should probably see something in it's log but there is no signs of nothing happening when i try to authenticate.</p> <p>I think that the problem might be somewhere else. I forgot to mention that i'm using the standard ubuntu's repository ejabberd version. I'll try to download it from the trunk and see what happens...</p> Tue, 10 Feb 2009 09:33:08 +0000 ggalmazor comment 54008 at https://www.ejabberd.im write permissions to write log file https://www.ejabberd.im/node/3384#comment-54000 <div class="quote-msg"> <div class="quote-author"><em>ggalmazor</em> wrote:</div> <p>When i try to log in (web or IM client) i see lines in /var/log/ejabberd/ejabberd.log but none in /var/log/JabberAuth.log (the script's log file).</p></div> <p>Maybe the problem is permissions to write log file? I tried that script with ejabberd trunk SVN and works.</p> <p>To get it to log, I changed the line to</p> <pre> public $logfile = '/tmp/JabberAuth.log';</pre><p> When ejabberd starts, it starts the script for each different vhost you have. In my case I have two vhosts in ejabberd.cfg, so I see:</p> <pre> $ ps -C JabberAuth.class.php PID TTY TIME CMD 6122 ? 00:00:00 JabberAuth.clas 6123 ? 00:00:00 JabberAuth.clas </pre><p> When I try to login with a Jabber client, the script log file is created with some lines:</p> <pre> $ cat JabberAuth.log 2009-02-08 22:58:03 Reading 30 bytes ... 2009-02-08 22:58:03 IN: auth:badlop:localhost:pass123 2009-02-08 22:58:03 GO: auth:badlop:localhost:pass123 2009-02-08 22:58:03 data length is : 30 </pre> Sun, 08 Feb 2009 22:01:05 +0000 mfoss comment 54000 at https://www.ejabberd.im