Dnia 2012-03-21, śro o godzinie 17:39 -0500, Ladar Levison pisze:
> I use a custom authreg plugin for authentication that uses the same
> auth database as the rest of my website

BTW, this is intentionally hidden feature, but you're able to define DB
queries for RDBMS authreg plugins in c2s.xml config file, without
modyfing jabberd2 code.

Just define
authreg.mysql.sql.create
authreg.mysql.sql.select
authreg.mysql.sql.setpassword
authreg.mysql.sql.delete

See
https://github.com/Jabberd2/jabberd2/blob/master/storage/authreg_mysql.c#L476
or
https://github.com/Jabberd2/jabberd2/blob/master/storage/authreg_pgsql.c#L443 
for default queries and work from there.


> While I have your attention, I noticed the link to the ChangeLog at 
> http://codex.xiaoka.com/wiki/jabberd2:start uses the wrong Github 
> account 

Thanks for the info. Fixed.


-- 
Tomasz Sterna
Instant Messaging Consultant : Open Source Developer
http://tomasz.sterna.tv/  http://www.xiaoka.com/portfolio



Reply via email to