[ejabberd] Parallelel external authentication?

Yao Ko koyao at raptr.com
Tue Jun 15 21:20:20 MSD 2010


On Tue, Jun 15, 2010 at 8:10 AM, Andy Skelton <skeltoac at gmail.com> wrote:
>> Just wondering ... Can Ejabberd do external authentications in
>> parallel?
>
> Ejabberd's extauth module opens exactly one port to your Python
> script. So no, it's not possible to make that parallel without hacking
> extauth.erl.
>
> For greater control over our external auth system, I created a module
> named ejabberd_auth_wpcom and added it to our host_config:
> {auth_method, [wpcom,anonymous]}.
>
> The module mimics the behavior of the ejabberd auth modules. It
> interfaces with my auth system via php_app [1] which spawns several
> instances of the auth program (WordPress in my case) in PHP.
>
> It wasn't hard to create the auth module. You might even find it easy
> enough to do the webservice calls in erlang and skip the Python.

Ah! That is a great idea!  I'll give it a try!

Thanks,
Yao


More information about the ejabberd mailing list