Re: [squid-users] ldap_auth

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Mon, 02 Jun 2008 22:36:59 +0200

On mån, 2008-06-02 at 15:19 -0400, Chris Riggins wrote:
> Sorry, it never matches when I do it. eg.
>
> (0)[slash]/opt/home/p36wk $ echo -n "p36wk:Realm:passw0rd" | md5sum
> 3acaf7548c911426be232de30c802233 -

$ echo -n "p36wk:Realm:passw0rd" | md5sum
336326719e5c087aa1016fe5a3c871d4 -

> $ /opt/apache/bin/htdigest -c passwd.htdigest p36wk Realm

wrong order.. shouldbe Realm p36wk

> (0)[slash]/opt/home/p36wk $ cat passwd.htdigest
> Realm:p36wk:828cadb12e66abf15ed07a7db267d3ea

$ htdigest -c test.pwd p36wk Realm
$ cat test.pwd
p36wk:Realm:336326719e5c087aa1016fe5a3c871d4

> My squid 3.0.5 proxy is running on Solaris 9, & the above test
> was done on Solaris 10. The md5sum results don't match on either
> machine.

Maybe your echo doesn't support -n?

In my shell echo -n is echo without newline. "echo -n Hello; echo There"
produces the string HelloThere

> I also tested the unchanged htdigest output file as the input to
> digest_pw_auth under 3.0.5, and it fails to work.

Hmm... should work. Let me check.

Seems to work just fine here in manual test.

Regards
Henrik

Received on Mon Jun 02 2008 - 20:37:04 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 04 2008 - 12:00:02 MDT