[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-misc
Subject:    Re: vmod basic auth on varnish 4
From:       Tim Dunphy <bluethundr () gmail ! com>
Date:       2015-07-29 14:51:58
Message-ID: CAOZy0ekLAHUP1EbCYHn6=c8+qZdUCYZmEozMRPMbzb9y-s02uA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Lasse,

 I was able to work out how to do this. All I had to do was download the
varnish 4.0.3 source code, do autogen.sh, configure and make. But not a
make install.

Then I went to the vmod basic auth directory I had downloaded and expanded
earlier. Went through autogen.sh, configure, make && make install there.
While pointing to my vmods directory in the configure script.

Works perfectly! And that is apparently the way to do it. However it would
be a lot easier if I could have done this through a yum install. Apparently
this is not possible currently.

This vmod was appealing because with this there is no need to enter in the
user name and password of the auth user using a base64 hash. You simply
point it to a file you create with htpasswd somewhere on your file system.
It's a little better that way I think.

Thanks
Tim

On Wed, Jul 29, 2015 at 7:42 AM, Lasse Karstensen <
lkarsten@varnish-software.com> wrote:

> On Tue, Jul 28, 2015 at 01:49:30PM -0400, Tim Dunphy wrote:
> > I've just upgraded my varnish setup from version 3 to version 4. I've
> successfully ported almost my entire default.vcl file to the new syntax.
> [cut]
> > But I need to use Apache basic auth. The new version requires you to
> install a module for this.
>
> I'm not familiar with any change in this regard between 3.0 and 4.0. Basic
> auth is just a static header.
> Set bereq.http.Authorization and you should be good to go?
>
>
> --
> Lasse Karstensen
> Varnish Software AS
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

[Attachment #5 (text/html)]

<div dir="ltr">Hi Lasse,<div><br></div><div>  I was able to work out how to do this. \
All I had to do was download the varnish 4.0.3 source code, do autogen.sh, configure \
and make. But not a make install.  </div><div><br></div><div>Then I went to the vmod \
basic auth directory I had downloaded and expanded earlier. Went through autogen.sh, \
configure, make &amp;&amp; make install there. While pointing to my vmods directory \
in the configure script.</div><div><br></div><div>Works perfectly! And that is \
apparently the way to do it. However it would be a lot easier if I could have done \
this through a yum install. Apparently this is not possible currently.<br><br>This \
vmod was appealing because with this there is no need to enter in the user name and \
password of the auth user using a base64 hash. You simply point it to a file you \
create with htpasswd somewhere on your file system. It&#39;s a little better that way \
I think.</div><div><br></div><div>Thanks</div><div>Tim</div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 29, 2015 at 7:42 AM, \
Lasse Karstensen <span dir="ltr">&lt;<a href="mailto:lkarsten@varnish-software.com" \
target="_blank">lkarsten@varnish-software.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span class="">On Tue, Jul 28, 2015 at 01:49:30PM -0400, Tim \
Dunphy wrote:<br> &gt; I&#39;ve just upgraded my varnish setup from version 3 to \
version 4. I&#39;ve successfully ported almost my entire default.vcl file to the new \
syntax.<br> </span>[cut]<br>
<span class="">&gt; But I need to use Apache basic auth. The new version requires you \
to install a module for this.<br> <br>
</span>I&#39;m not familiar with any change in this regard between 3.0 and 4.0. Basic \
auth is just a static header.<br> Set bereq.http.Authorization and you should be good \
to go?<br> <span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Lasse Karstensen<br>
Varnish Software AS<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="gmail_signature">GPG me!!<br><br>gpg --keyserver <a \
href="http://pool.sks-keyservers.net" target="_blank">pool.sks-keyservers.net</a> \
--recv-keys F186197B<br><br></div> </div>



_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic