[prev in list] [next in list] [prev in thread] [next in thread]
List: cyrus-sasl
Subject: Re: saslpasswd2->"Couldn't update db" ./client -> bad digest-uri sasldb2 not found
From: "murugesan" <mukeshgct () hotpop ! com>
Date: 2004-07-28 14:28:03
Message-ID: 20f101c474ae$81cf8950$2b0110ac () munco
[Download RAW message or body]
Thanks for the mail alexey,
I got it solved, but followed a long build steps...............
will send it later tomorrow....
Regards,
Murugesan
----- Original Message -----
From: Alexey Melnikov
To: murugesan
Cc: cyrus-sasl
Sent: Wednesday, July 28, 2004 7:32 PM
Subject: Re: saslpasswd2->"Couldn't update db" ./client -> bad digest-uri sasldb2 \
not found
murugesan wrote:
> 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
This suggests that you are using ndbm or similar. You should try to
build with Sleepycat instead.
Do you still see the warnings after running saslpasswd2 once?
Can you try to create more than one account and send me the output of
sasldblistusers2?
>
> 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="XW9bCUNRfAH1DANN2Rjvqzbi7yEkWofruvWmHzG \
7fVk=",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
This would be difficult to debug without instrumenting DIGEST-MD5 plugin.
> 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 ).
This is definitely not a proper fix. You effectively disabled the
digesturi check.
> Any ways to resolve these 2 errors ?
Alexey
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks for the mail alexey,</FONT></DIV>
<DIV><FONT face=Arial size=2>I got it solved, but followed a long build
steps...............</FONT></DIV>
<DIV><FONT face=Arial size=2>will send it later tomorrow....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Murugesan</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original Message \
----- </DIV> <DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Alexey.Melnikov@isode.com
href="mailto:Alexey.Melnikov@isode.com">Alexey Melnikov</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=mukeshgct@hotpop.com
href="mailto:mukeshgct@hotpop.com">murugesan</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A
title=cyrus-sasl@lists.andrew.cmu.edu
href="mailto:cyrus-sasl@lists.andrew.cmu.edu">cyrus-sasl</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, July 28, 2004 7:32
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: saslpasswd2->"Couldn't
update db" ./client -> bad digest-uri sasldb2 not found</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>murugesan wrote:<BR><BR>>
Hello all,<BR>> <BR>> When running
saslpasswd2 I am getting the log error messages<BR>> <BR>> Jul 17
10:01:12 krishna syslog: OTP: set secret for murugesh<BR>> Jul 17 10:01:12
krishna syslog: OTP: set secret for murugesh<BR>> Jul 17 10:01:12 krishna
syslog: Couldn't update db<BR>> Jul 17 10:01:12 krishna syslog: Couldn't
update db<BR>><BR>> I have deleted /etc/sasldb2 by
mistake.<BR>> <BR>> How can I retrieve sasldb2 file / clear the
log errors ?<BR>> <BR>> Also I tried<BR>> <BR>> touch
/etc/sasldb2<BR>> chmod *** ( All possibilities )<BR>> rm
/etc/sasldb2<BR>> Still I am not able to get it ( even after searching the
archives ) .<BR>> <BR>> But after running saslpasswd2 I am able to
get the following files ( <BR>> created ) .<BR>> <BR>>
/etc/sasldb2.dir /etc/sasldb2.pag<BR><BR>This suggests that you are
using ndbm or similar. You should try to <BR>build with Sleepycat
instead.<BR><BR>Do you still see the warnings after running saslpasswd2
once?<BR>Can you try to create more than one account and send me the output of
<BR>sasldblistusers2?<BR><BR>> <BR>> And for the client program I
am getting the following error ( I guess <BR>> when sasldb2 problem gets
solved this too will be solved )<BR>> <BR>> /client -m DIGEST-MD5
localhost<BR>> # ./client -m DIGEST-MD5 localhost<BR>> receiving
capability list... recv: {46}<BR>> ANONYMOUS PLAIN GSSAPI OTP DIGEST-MD5
CRAM-MD5<BR>> ANONYMOUS PLAIN GSSAPI OTP DIGEST-MD5 CRAM-MD5<BR>> send:
{10}<BR>> DIGEST-MD5<BR>> send: {1}<BR>> N<BR>> recv:
{112}<BR>>
nonce="XW9bCUNRfAH1DANN2Rjvqzbi7yEkWofruvWmHzG7fVk=",realm="krishna",qop="auth",charset=utf-8,algorithm=md5-sess<BR>> \
please enter an authentication id: murugesh<BR>> please enter an
authorization id: murugesh<BR>> Password:<BR>> send: {233}<BR>>
username="murugesh",realm="krishna",nonce="XW9bCUNRfAH1DANN2Rjvqzbi7yEkWofruvWmHzG7f \
Vk=",cnonce="XW9bCUNRfAH1DANN2Rjvqzbi7yEkWofruvWmHzG7fVk=",nc=00000001,qop=auth,digest-uri="rcmd/localhost",response=8f9a0059a60bdd4bc446569d87736a74<BR>> \
authentication failed<BR>> closing connection<BR>> and in error
log<BR>> Jul 17 10:00:40 krishna syslog: bad digest-uri: doesn't match
service<BR>> Jul 17 10:00:40 krishna syslog: bad digest-uri: doesn't match
service<BR><BR>This would be difficult to debug without instrumenting
DIGEST-MD5 plugin.<BR><BR>> After debugging the program,<BR>>
<BR>>
2116
if (strncasecmp(digesturi, sparams->service, <BR>> service_len)
||<BR>>
2117 \
digesturi[service_len] != '/') {<BR>><BR>> On a wild guess I changed
this to<BR>> <BR>>
2116
if (strncasecmp(digesturi, sparams->service, <BR>> service_len)
||<BR>>
2117 \
digesturi[service_len - 1 ] != '/')<BR>> <BR>> and that
worked........ for ./client -m DIGEST-MD5 localhost ( I guess <BR>> that
this method is wrong ).<BR><BR>This is definitely not a proper fix. You
effectively disabled the <BR>digesturi check.<BR><BR>> Any ways to resolve
these 2 errors ?<BR><BR>Alexey</BLOCKQUOTE></BODY></HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic