From: murugesan (mukeshgct at hotpop dot com)
Date: Sat Jul 17 2004 - 01:03:34 EDT
Hello all,
When running saslpasswd2 I am getting the log error messages
Jul 17 10:01:12 krishna syslog: OTP: set secret for murugesh
Jul 17 10:01:12 krishna syslog: OTP: set secret for murugesh
Jul 17 10:01:12 krishna syslog: Couldn't update db
Jul 17 10:01:12 krishna syslog: Couldn't update db
I have deleted /etc/sasldb2 by mistake.
How can I retrieve sasldb2 file / clear the log errors ?
Also I tried
touch /etc/sasldb2
chmod *** ( All possibilities )
rm /etc/sasldb2
Still I am not able to get it ( even after searching the archives ) .
But after running saslpasswd2 I am able to get the following files ( created ) .
/etc/sasldb2.dir /etc/sasldb2.pag
And for the client program I am getting the following error ( I guess when sasldb2 problem gets solved this too will be solved )
/client -m DIGEST-MD5 localhost
# ./client -m DIGEST-MD5 localhost
receiving capability list... recv: {46}
ANONYMOUS PLAIN GSSAPI OTP DIGEST-MD5 CRAM-MD5
ANONYMOUS PLAIN GSSAPI OTP DIGEST-MD5 CRAM-MD5
send: {10}
DIGEST-MD5
send: {1}
N
recv: {112}
nonce="XW9bCUNRfAH1DANN2Rjvqzbi7yEkWofruvWmHzG7fVk=",realm="krishna",qop="auth",charset=utf-8,algorithm=md5-sess
please enter an authentication id: murugesh
please enter an authorization id: murugesh
Password:
send: {233}
username="murugesh",realm="krishna",nonce="XW9bCUNRfAH1DANN2Rjvqzbi7yEkWofruvWmHzG7fVk=",cnonce="XW9bCUNRfAH1DANN2Rjvqzbi7yEkWofruvWmHzG7fVk=",nc=00000001,qop=auth,digest-uri="rcmd/localhost",response=8f9a0059a60bdd4bc446569d87736a74
authentication failed
closing connection
and in error log
Jul 17 10:00:40 krishna syslog: bad digest-uri: doesn't match service
Jul 17 10:00:40 krishna syslog: bad digest-uri: doesn't match service
After debugging the program,
2116 if (strncasecmp(digesturi, sparams->service, service_len) ||
2117 digesturi[service_len] != '/') {
On a wild guess I changed this to
2116 if (strncasecmp(digesturi, sparams->service, service_len) ||
2117 digesturi[service_len - 1 ] != '/')
and that worked........ for ./client -m DIGEST-MD5 localhost ( I guess that this method is wrong ).
Any ways to resolve these 2 errors ?
-Thanks in advance
Murugesan
|
|
|