Thanks for ejabberd, but here I have a view questions, because I want a very special kind of user add/change, so:
I am programming on a website for handball players and I want to give registered users the opportunity to chat with each other.
The way it should work:
user registration finished: -> ejabberdctl should be called over python script to create this user as well in mnesia
user changes password -> ejabberdctl should be called to change this users password
that's the way I would prefer it.
I am running a Linux (Ubuntu) machine, lighttpd sqlite and a couple of cgi-scripts.
I already figured out that there's a cookie which may be used to call ejabberdctl as a 'normal' (www-data:www-data) user. The problem I run in is, that I have no idea how to call ejabberdctl with a python-script to get calls like:
register user host passwd
change_password user host passwd
and so on.
This is a feature a lot of people would like to have, but I did not find any proper solution.
Any help highly appreciated...
If your python program is
If your python program is running in the same machine that ejabberd, you can tell python to execute the ejabberdctl shell script, as if you called "uname", or "whoami", or any other program: "ejabberdctl register user host password".
If your python program is running in a different machine, then you can install ejabberd_xmlrpc, and tell python to send an XMLRPC query to ejabberd to execute the "register" command.