[Date Prev][Date Next] [Chronological] [Thread] [Top]

Why slapd can't use sasldb?



Hi, *
I'm trying to use openldap on Redhat8.0.

Seems something wrong with my slapd instance. (Maybe the setup process
wasn't completed.) It always report,
/SASL [conn=0] Error: unable to open Berkeley db /etc/sasldb2: No such
file or directory/
Then I touch a file /etc/sasldb2 but of cause it didn't work.

FYI. I attached client and server side screen dump.
Thanks a lot.

Calvin

*Client side:*
[liuyh@marathon bin]$ ./ldapadd -D "cn=Manager, dc=scer, dc=sun, dc=com"
-W < test.ldif
Enter LDAP Password:
SASL/DIGEST-MD5 authentication started
ldap_sasl_interactive_bind_s: Internal (implementation specific) error (80)
additional info: SASL(-13): user not found: no secret in database

*Server side:*
[root@marathon libexec]# ./slapd -f ../etc/openldap/slapd.conf -d 32
daemon: socket() failed errno=97 (Address family not supported by protocol)
bdb_initialize: Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001)
bdb_db_init: Initializing BDB database
slapd starting
str2filter "(objectclass=*)"
begin get_filter
PRESENT
end get_filter 0
begin get_filter
PRESENT
end get_filter 0
=> test_filter
PRESENT
<= test_filter 6
ber_flush: 62 bytes to sd 12
ber_flush: 14 bytes to sd 12
ber_flush: 199 bytes to sd 12
deferring operation
SASL [conn=0] Error: unable to open Berkeley db /etc/sasldb2: No such
file or directory
SASL [conn=0] Error: unable to open Berkeley db /etc/sasldb2: No such
file or directory
SASL [conn=0] Error: unable to open Berkeley db /etc/sasldb2: No such
file or directory
SASL [conn=0] Failure: no secret in database
ber_flush: 62 bytes to sd 12
begin get_filter
PRESENT
end get_filter 0
=> test_filter
PRESENT
<= test_filter 6
ber_flush: 62 bytes to sd 12
ber_flush: 14 bytes to sd 12
ber_flush: 199 bytes to sd 12
SASL [conn=1] Error: unable to open Berkeley db /etc/sasldb2: Invalid
argument
SASL [conn=1] Error: unable to open Berkeley db /etc/sasldb2: Invalid
argument
SASL [conn=1] Error: unable to open Berkeley db /etc/sasldb2: Invalid
argument
SASL [conn=1] Failure: no secret in database
ber_flush: 62 bytes to sd 12