You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by bu...@apache.org on 2002/08/07 12:50:38 UTC
DO NOT REPLY [Bug 11527] New: -
Modify DIGEST support for IIS server
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11527>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11527
Modify DIGEST support for IIS server
Summary: Modify DIGEST support for IIS server
Product: Slide
Version: Nightly
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: WebDAV client
AssignedTo: slide-dev@jakarta.apache.org
ReportedBy: eurrow@sas.com
The DIGEST authentication support needs some small changes to work with IIS.
The patch is included.
--- Authenticator.cvs.java 2002-08-07 11:37:42.000000000 +0100
+++ Authenticator.java 2002-08-07 11:28:19.000000000 +0100
@@ -195,7 +195,7 @@
else if (aFieldName.equalsIgnoreCase("qop")) qop =
aFieldValue;
else if (aFieldName.equalsIgnoreCase("opaque")) opaque =
aFieldValue;
}
- if (!algorithm.equalsIgnoreCase("md5")) return null;
+ if ( algorithm.length()>0 && !algorithm.equalsIgnoreCase("md5"))
return null;
MD5Encoder md5enc = new MD5Encoder();
String A1 = user+":"+realm+":"+pw;
@@ -211,12 +211,12 @@
String request_digest = md5enc.encode(request_digest_bytes);
StringBuffer retStr = new StringBuffer("Digest
username=\""+user+"\",realm=\""+realm+
- "\",nonce=\""+nonce+"\",uri=\""+uri+"\"");
+ "\",algorithm=\"MD5
\",nonce=\""+nonce+"\",uri=\""+uri+"\"");
if (!qop.equals(""))
{
- retStr.append(",qop=");
+ retStr.append(",qop=\"");
retStr.append(qop);
- retStr.append(",nc=\"");
+ retStr.append("\",nc=\"");
retStr.append(nonceCount);
retStr.append("\",cnonce=\"");
retStr.append(CNonce);
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>