<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>AW: [En-Nut-Discussion] Different passwords with CGI</TITLE>
</HEAD>
<BODY dir=ltr>
<DIV>there was a base64 decode fix I submitted about a month ago, which is in
CVS now. dencode.c</DIV>
<DIV> </DIV>
<DIV>when password is decoded from what browser sent (which is in base64), it
was failing on certain length passwords. this may have been the real
reason why you had "<FONT size=2>authorization failure if the length of
("user:password") is not a multiple of 3"</FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> Adrian Slowik
[mailto:adrian@uni-paderborn.de] <BR><B>Sent:</B> Mon 22/12/2003 4:44 AM
<BR><B>To:</B> 'Ethernut User Chat (English)' <BR><B>Cc:</B>
<BR><B>Subject:</B> AW: [En-Nut-Discussion] Different passwords with
CGI<BR><BR></FONT></DIV>
<P><FONT size=2>Hi, <BR><BR>I mailed that problem (and a correction) half
a year ago (think it was<BR>Nut/OS 3.1). There is a problem in the
authorization code that produces<BR>a wrong number of padding bytes in some
cases. This leads to an<BR>authorization failure if the length of
("user:password") is not a multiple<BR>of 3. Thus "root:root" works, but
"root1:root1" does not.<BR><BR>Kind regards, Adrian<BR><BR>Thus a quick
workaround would be to use an extended username or password,<BR>For example
"ho:ho1"<BR><BR>-----Ursprüngliche Nachricht-----<BR>Von:
en-nut-discussion-bounces@egnite.de<BR>[<A
href="mailto:en-nut-discussion-bounces@egnite.de">mailto:en-nut-discussion-bounces@egnite.de</A>]
Im Auftrag von Lars Andersson<BR>Gesendet: Sonntag, 21. Dezember 2003
21:01<BR>An: en-nut-discussion@egnite.de<BR>Betreff: [En-Nut-Discussion]
Different passwords with CGI<BR><BR>Is there a way to do what I try to do
here:<BR><BR> NutRegisterAuth("cgi-bin/page1.cgi",
"xyzzy:xyzzy");<BR> NutRegisterAuth("cgi-bin/page2.cgi",
"ho:ho");<BR><BR>Best regards,<BR>Lars H.
Andersson<BR><BR><BR><BR>_______________________________________________<BR>En-Nut-Discussion
mailing list<BR>En-Nut-Discussion@egnite.de<BR><A
href="http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion">http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion</A><BR><BR><BR>_______________________________________________<BR>En-Nut-Discussion
mailing list<BR>En-Nut-Discussion@egnite.de<BR><A
href="http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion">http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion</A><BR></FONT></P></BLOCKQUOTE>
</BODY>
</HTML>