Authentication Scripts

This page lists contributed 'external authentication scripts' which can be used to authenticate users against systems that might be not yet supported out-of-the-box by ejabberd. For more information see "How can I authenticate my users against ... ?".

Please remember that if you use an external authentication script, your Jabber client must be configured to allow plaintext login, otherwise you can't login.

The external authentication system is described in the ejabberd Developers Guide, which is included with ejabberd in doc/dev.html.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I wrote up a simple C#

I wrote up a simple C# console app that will check an IMAP server for auth. You can view the source and download the latest binary here: https://git.teknik.io/Uncled1023/ejabberd-imap-auth

Feel free to make any edits you want. To configure it, run the exe once to generate the default config file, then you can modify that.

Here's a simple PHP library

Here's a simple PHP library to help get PHP dev's underway

https://github.com/leesherwood/ejabberd-php-auth

Update 19/04/2016: Added command collections to the library so you can have multiple authentication sources without mashing them up together into a single command runner.

Ejabberd External Auth Java

We've made a small framework for creating an external auth executable in java.
https://github.com/TeletronicsDotAe/EjabberdExternalAuthJava

Here a Go version, hopping

Here a Go version, hopping that it could be useful to somebody.
https://github.com/safchain/ejabberd-go-auth

Improved your solution

I made a tiny library based on your code:
https://github.com/shelomentsevd/ejabberd-go
Hope it will be useful.

Authentification php against imap server

I wrote a php script authentication (plain text, ssl, tls). I leave you it "as is" hoping it could be useful to someone.
https://intranet.xlinfo.fr/remote.php?file=upload/ejabberd_imap-auth.php

PHP bridging

I made a small framework for bridging external authentication with any PHP-based CMS, including some bundled bridges (Drupal, phpBB, SMF so far). The idea is to bootstrap the CMS and use its functions whenever possible, in favor of accessing its database directly.

Under development here: https://github.com/cburschka/ejabberd-auth-php

Authenticate against dovecot

Hello everybody,

I wrote a script that authenticates users against dovecot's databases.
You'll find it on my homepage:
http://teichert-ing.de/scripts/check-dovecot-perl/

Kind regards

Frederik Teichert

Modernized PHP authentication class

I implemented a modernized PHP class for external authentication, which can be found here:
https://github.com/deceze/ejabberd-extauth-PHP

Best,
David

PHP w/ multiple authentication backends

hi

i've written a new OOP PHP5 script which uses the PDO.
you're also able to create multiple authentication backends (e.g. to different/multiple databases for authentication).

where can I upload it?

-- domi

Re:

confirmIT wrote:

i've written a new OOP PHP5 script which uses the PDO.
you're also able to create multiple authentication backends (e.g. to different/multiple databases for authentication).

where can I upload it?

Upload to any site, like http://paste.jabbim.cz/ and comment here where to find it. I'll then copy the content to this site, and update the URL.

Wordpress Authentication

Hi,
I've written a script/plugin combo for authenticating with Wordpress:

http://www.cubehouse.org/blog/2010/06/21/authenticating-xmpp-ejabberd-wi...

Hope this helps people!

Created page for it

I've created a page for it, linked to your blog, and made local backups in case your blog is unavailable:
http://www.ejabberd.im/check_wordpress

Awesome, thanks for the

Awesome, thanks for the speedy write-up

I wrote a new external athentication script - where to pblish?

a new script, which uses apaches .htpasswd files for authentication.

You can publish in your

You can publish in your website, or in a site like http://paste.jabbim.cz/ or send me by email. When you provide your script, I'll upload a copy of it to this website and I'll create a page here for it.

Django User Backend

badlop wrote:

You can publish in your website, or in a site like http://paste.jabbim.cz/ or send me by email. When you provide your script, I'll upload a copy of it to this website and I'll create a page here for it.

Where do we email you at?

Here is my code for authing against a Django run application:

http://gitorious.org/tunnel/tunnel/blobs/master/src/tunnel/server/api/ma...

There is a bit of code specific to the project I'm working on in there, but it should be called out and/or easy to remove :-).

Page added

I've created a subpage for your script, and has a cool number: http://www.ejabberd.im/node/4000

You can edit and update it.

Syndicate content