|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Andreas Winkelmann (ml
awinkelmann.de)
Date: Mon Nov 26 2007 - 14:42:56 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Montag, 26. November 2007, Kirk Strauser wrote:
> > Time to whip out a debugger and see what Berkeley DB is up to (assuming
> > this is Berkeley DB of course).
>
> OK, I'm now moving deeper than my comfort level.
>
> > What is $default_database_type? Is sasldb a "btree" or a "hash"?
>
> $ postconf | grep default_database
> default_database_type = hash
> $ sudo file sasldb2
> sasldb2: Berkeley DB (Hash, version 8, native byte-order)
>
> And for comparison:
>
> $ file virtual.db
> virtual.db: Berkeley DB (Hash, version 8, native byte-order)
Check with db_dump what the difference of these databases is. db_dump is a
tool from the Berkeley-Utilities. Maybe already installed on your system.
# db_dump -p sasldb2
# db_dump -p virtual.db
Here it shows with some sample-Data:
# db_dump -p /etc/postfix/sasldbtest.db
VERSION=3
format=print
type=hash
h_nelem=4097
db_pagesize=4096
HEADER=END
user\00
password\00
DATA=END
# db_dump -p /etc/sasldb2
VERSION=3
format=print
type=hash
db_pagesize=4096
HEADER=END
user\00domain.tld\00userPassword
secret
DATA=END
--
Andreas
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]