Erich Buri wrote:
Hello,

I would like to write a component that handles the authentication for
jabberd2.


I have the book Jabber Developer's Handbook where Moore & Wright explain
how to do this for jabberd 1.4 but this seems to me not possible with
jabberd2, is this right?

Is there another way to write a personal authentication service?

You could write an auth_*.c authentication module for jabberd2, and set autocreate, so that if a user is authenticated through whatever scheme, the session manager will create the user automatically on first login.


Or you could use authreg_pipe and provide your own external authentication handler. All that's assuming that you have an external authentication database.

My idea was to add new users directly in the authreg.db (since i use
BerkeleyDB). Although it works, it has some draw backs. Therefor I would
rather like to have a component.

It might be easier to use the mysql or postgresql storage, and update the back-end database.


Further I will have to add contacts to the roster of some users. Is it
possible to do this with a component or do I have to access the Database
directly?

There isn't a standardised way of doing this yet, but there are a few 3rd-party utilities that maintain rosters in various ways through the database.


Regards
Stephen

_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mail.jabber.org/mailman/listinfo/jdev

Reply via email to