Search squid archive

Re: ldap_auth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



     I found that the method below did not work, actually.  I still
have not figured out just how Apache's "htdigest" is joining the
several inputs to create the md5 hash, but it isn't
"user:realm:password" | md5sum.

     I finally got digest auth to work by doing the following (the
"-c" creates the passwd file):

# htdigest -c <passwd_file> <realm> <username>

which requested a password.  I provided it twice, and it generated the
following line in the file:

<username>:<realm>:md5-hash

     Now that format isn't usable by squid, so take out the <realm> &
one of its colons, leaving
just:

<username>:md5-hash

     That works for squid--I'm posting this via that very proxy--and
the md5-hash does NOT match the hash made from the command:

echo -n "<username>:<realm>:<password>"

I haven't yet figured out just what htdigest is doing, but I hope to
do so shortly.  (To reply to the other request:  yes, I'll gladly
update the wiki just as soon as I've figured this all out).

     Sorry for the slow reply.  I had the weekend off!

Chris

On Sun, Jun 1, 2008 at 6:49 PM, Henrik Nordstrom
<henrik@xxxxxxxxxxxxxxxxxxx> wrote:
> On sön, 2008-06-01 at 13:23 -0700, Lawrence Anthony wrote:
>> Can someone point me to how to encode the passwords using the helper?
>
> Here is one:
>
> echo -n "user:realm:password" | md5sum
>
> Using Apache htdigest is another..
>
> Regards
> Henrik
>


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux