saslpasswd2: Couldn't update db
sam
sam.wun at authtec.net
Tue Oct 5 00:26:34 EDT 2004
Hi,
I found this problem is quite common in the cyrus-sasl user group. But I
don't find any firm resolution to this problem.
Unfortunately, I m now getting this problem as well.
Here is some info about the files:
# ls -l
sasldb2.db
-rw-rw---- 1 cyrus mail 16384 Oct 5 12:05 sasldb2.db
# saslpasswd2 -d
cyrus
# saslpasswd2 -c
cyrus
Password:
Again (for verification):
# file sasldb2.db
sasldb2.db: Berkeley DB 1.85 (Hash, version 2, native byte-order)
#
I don't know why the sasldb2.db file is BDB 1.85. I remember the DB
version I compiled in cyrus-imapd22 and cyrus-sasl-saslauth2 is DB4:
root at at [12:11pm] [...work/cyrus-sasl-2.1.19]# head -7
config.log
$ ./configure --sysconfdir=/usr/local/etc
--with-plugindir=/usr/local/lib/sasl2
--with-dbpath=/usr/local/etc/sasldb2 --includedir=/usr/local/include
--mandir=/usr/local/man --enable-static --enable-login
--enable-auth-sasldb --with-openssl=/usr/local --with-rc4=openssl
--with-saslauthd=/var/state/saslauthd
--with-bdb-incdir=/usr/local/include/*db42* --with-bdb=db-4.2
--with-dblib=berkeley --with-bdb-libdir=/usr/local/lib
--with-ldap=/usr/local --enable-gssapi --disable-krb4
--prefix=/usr/local i386-portbld-freebsd5.3
root at at [12:12pm] [...work/cyrus-imapd-2.2.8]#head -7 config.log
$ ./configure --sysconfdir=/usr/local/etc
--with-cyrus-prefix=/usr/local/cyrus --with-cyrus-user=cyrus
--with-cyrus-group=cyrus --with-sasl=/usr/local
--with-bdb-libdir=/usr/local/lib --with-com_err
--with-openssl=/usr/local --with-perl=/usr/local/bin/perl5.8.5
--with-bdb-incdir=/usr/local/include/*db42* --with-bdb=db-4.2
--with-idle=poll --with-snmp=no --with-auth=pts --with-pts=ldap
--with-ldap=/usr/local --prefix=/usr/local i386-portbld-freebsd5.3
root at at [12:13pm] [...work/cyrus-imapd-2.2.8]#
openldap-2.2.15:
...
configure:15966: cc -c -O -pipe -I/usr/local/include/db42
-I/usr/local/include conftest.c 1>&5
configure:17744: checking for db.h
configure:17754: cc -E -I/usr/local/include/db42 -I/usr/local/include
conftest.c >/dev/null 2>conftest.out
configure:17784: checking for Berkeley DB link (default)
configure:17841: cc -o conftest -O -pipe -I/usr/local/include/db42
-I/usr/local/include -L/usr/local/lib -rpath=/usr/local/lib conftest.c
-ldb-4.2 -pthread 1>&5
configure:19244: checking for Berkeley DB version match
configure:19292: cc -o conftest -O -pipe -I/usr/local/include/db42
-I/usr/local/include -L/usr/local/lib -rpath=/usr/local/lib conftest.c
-ldb-4.2 -pthread
1>&5
configure:19316: checking for Berkeley DB thread support
configure:19398: cc -o conftest -O -pipe -I/usr/local/include/db42
-I/usr/local/include -L/usr/local/lib -rpath=/usr/local/lib conftest.c
-ldb-4.2 -pthread 1>&5
configure:19460: checking Berkeley DB version for BDB backend
configure:20128: checking for tcpd.h
configure:20138: cc -E -I/usr/local/include/db42 -I/usr/local/include
conftest.c >/dev/null 2>conftest.out
configure:20160: checking for TCP wrappers library
configure:20179: cc -o conftest -O -pipe -I/usr/local/include/db42
-I/usr/local/include -L/usr/local/lib -rpath=/usr/local/lib conftest.c
-lwrap 1>&5
configure:20246: checking for openlog
configure:20275: cc -o conftest -O -pipe -I/usr/local/include/db42
-I/usr/local/include -L/usr/local/lib -rpath=/usr/local/lib conftest.c
1>&5
configure:20451: checking for sasl/sasl.h
configure:20461: cc -E -I/usr/local/include/db42 -I/usr/local/include
conftest.c >/dev/null 2>conftest.out
configure:20451: checking for sasl.h
configure:20461: cc -E -I/usr/local/include/db42 -I/usr/local/include
conftest.c >/dev/null 2>conftest.out
configure:20457:18: sasl.h: No such file or directory
configure: failed program was:
#line 20456 "configure"
#include "confdefs.h"
#include <sasl.h>
configure:20490: checking for sasl_client_init in -lsasl2
configure:20509: cc -o conftest -O -pipe -I/usr/local/include/db42
-I/usr/local/include -L/usr/local/lib -rpath=/usr/local/lib conftest.c
-lsasl2 1>&5
configure:20583: checking Cyrus SASL library version
configure:20638: checking for sasl_version
configure:20667: cc -o conftest -O -pipe -I/usr/local/include/db42
-I/usr/local/include -L/usr/local/lib -rpath=/usr/local/lib conftest.c
-lsasl2 1>&5
I don't know where to trace the cause of the error. Can anybody help??
Your suggestion will be highly appreciated.
Thanks
Sam
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus
mailing list