On Mon, 07 Apr 2008 12:05:47 -0700
Scott Baker <[EMAIL PROTECTED]> wrote:

> Harald Braumann wrote:
> >> This is from my brand new Fedora 8 Jabberd2 installation:
> >>
> >> :perl bdbdump.pl authreg.db
> >> bdbdump.pl: open db authreg.db ...
> >> bdbdump.pl: OK
> >> bdbdump.pl: walking sub dbs ...
> >> <sm-bdb>
> >> bdbdump.pl: found sub db jabber.perturb.org
> >> bdbdump.pl: dump db jabber.perturb.org ...
> >> bdbdump.pl: Error opening authreg.db/jabber.perturb.org: 
> >> jabber.perturb.org: unsupported hash version: 9
> >>
> > Yeah, it only dumps sm storage, not authreg.
> 
> :perl bdbdump.pl sm.db
> bdbdump.pl: open db sm.db ...
> bdbdump.pl: OK
> bdbdump.pl: walking sub dbs ...
> <sm-bdb>
> bdbdump.pl: found sub db active
> bdbdump.pl: dump db active ...
> bdbdump.pl: Error opening sm.db/active: active: unsupported hash 
> version: 9
> 
> In fact I can't find ANY tools that will read any of the BD files I 
> have. All about usupported hash type 9. I'd happily write a BDB -> 
> Sqlite conversion tool if I could read the BDB files.
OK, I'll look into it. Can you please tell me your jabberd and berkeley
db version, so I have a chance to reproduce it.

BTW. The script is really simple, so I guess it could be easily
extended to support authreg, as well. It outputs an XML file which can
be converted to whatever you want by an XSLT. I've published one once,
which outputs an SQL script for MySQL, but can't find it anymore so
I attach it for your convenience. You could also write one for authreg
for SQLite or LDAP or whatever.

Cheers,
harry

Attachment: load-mysql.xslt
Description: XML document

Attachment: signature.asc
Description: PGP signature

Reply via email to