[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>&nbsp;</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>&nbsp;</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-&gt;"Couldn't 
  update db" ./client -&gt; bad digest-uri sasldb2 not found</DIV>
  <DIV><FONT face=Arial size=2></FONT><BR></DIV>murugesan wrote:<BR><BR>&gt; 
  Hello all,<BR>&gt;&nbsp; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; When running 
  saslpasswd2 I am getting the log error messages<BR>&gt;&nbsp; <BR>&gt; Jul 17 
  10:01:12 krishna syslog: OTP: set secret for murugesh<BR>&gt; Jul 17 10:01:12 
  krishna syslog: OTP: set secret for murugesh<BR>&gt; Jul 17 10:01:12 krishna 
  syslog: Couldn't update db<BR>&gt; Jul 17 10:01:12 krishna syslog: Couldn't 
  update db<BR>&gt;<BR>&gt; I have deleted /etc/sasldb2 by 
  mistake.<BR>&gt;&nbsp; <BR>&gt; How can I retrieve sasldb2 file / clear the 
  log errors ?<BR>&gt;&nbsp; <BR>&gt; Also I tried<BR>&gt;&nbsp; <BR>&gt; touch 
  /etc/sasldb2<BR>&gt; chmod *** ( All possibilities )<BR>&gt; rm 
  /etc/sasldb2<BR>&gt; Still I am not able to get it ( even after searching the 
  archives ) .<BR>&gt;&nbsp; <BR>&gt; But after running saslpasswd2 I am able to 
  get the following files ( <BR>&gt; created ) .<BR>&gt;&nbsp; <BR>&gt; 
  /etc/sasldb2.dir&nbsp; /etc/sasldb2.pag<BR><BR>This suggests that you are 
  using ndbm or similar.&nbsp; 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>&gt;&nbsp; <BR>&gt; And for the client program I 
  am getting the following error ( I guess <BR>&gt; when sasldb2 problem gets 
  solved this too will be solved )<BR>&gt;&nbsp; <BR>&gt; /client -m DIGEST-MD5 
  localhost<BR>&gt; # ./client -m DIGEST-MD5 localhost<BR>&gt; receiving 
  capability list... recv: {46}<BR>&gt; ANONYMOUS PLAIN GSSAPI OTP DIGEST-MD5 
  CRAM-MD5<BR>&gt; ANONYMOUS PLAIN GSSAPI OTP DIGEST-MD5 CRAM-MD5<BR>&gt; send: 
  {10}<BR>&gt; DIGEST-MD5<BR>&gt; send: {1}<BR>&gt; N<BR>&gt; recv: 
  {112}<BR>&gt; 
  nonce="XW9bCUNRfAH1DANN2Rjvqzbi7yEkWofruvWmHzG7fVk=",realm="krishna",qop="auth",charset=utf-8,algorithm=md5-sess<BR>&gt; \
  please enter an authentication id: murugesh<BR>&gt; please enter an 
  authorization id: murugesh<BR>&gt; Password:<BR>&gt; send: {233}<BR>&gt; 
  username="murugesh",realm="krishna",nonce="XW9bCUNRfAH1DANN2Rjvqzbi7yEkWofruvWmHzG7f \
Vk=",cnonce="XW9bCUNRfAH1DANN2Rjvqzbi7yEkWofruvWmHzG7fVk=",nc=00000001,qop=auth,digest-uri="rcmd/localhost",response=8f9a0059a60bdd4bc446569d87736a74<BR>&gt; \
  authentication failed<BR>&gt; closing connection<BR>&gt; and in error 
  log<BR>&gt; Jul 17 10:00:40 krishna syslog: bad digest-uri: doesn't match 
  service<BR>&gt; 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>&gt; After debugging the program,<BR>&gt;&nbsp; 
  <BR>&gt;&nbsp;&nbsp; 
  2116&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  if (strncasecmp(digesturi, sparams-&gt;service, <BR>&gt; service_len) 
  ||<BR>&gt;&nbsp;&nbsp; 
  2117&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  digesturi[service_len] != '/') {<BR>&gt;<BR>&gt; On a wild guess I changed 
  this to<BR>&gt;&nbsp; <BR>&gt;&nbsp;&nbsp; 
  2116&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  if (strncasecmp(digesturi, sparams-&gt;service, <BR>&gt; service_len) 
  ||<BR>&gt;&nbsp;&nbsp; 
  2117&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  digesturi[service_len - 1 ] != '/')<BR>&gt;&nbsp; <BR>&gt; and that 
  worked........ for ./client -m DIGEST-MD5 localhost ( I guess <BR>&gt; that 
  this method is wrong ).<BR><BR>This is definitely not a proper fix. You 
  effectively disabled the <BR>digesturi check.<BR><BR>&gt; 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