Re: [SPAM] RE: [vqadmin] [SPAM] vQadmin - problem

Przemek Kuzioła <[email protected]> Tue, 22 Jan 2013 16:24:40 +0100
Newsgroups gmane.mail.vqadmin
Organization Bauhaus
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------040109040405060108050404
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Thx for your answer. It WORKS :-)
But I had to do it with .htaccess file. Didn't work the other way.
I've made it in a kind of "new way"

#httpd.conf

<Directory /srv/httpd/cgi-bin/vqadmin>

Options +ExecCGI

AllowOverride AuthConfig

</Directory>

#.htaccess

AuthType Basic

AuthUserFile /etc/httpd/vqadmin.passwd

AuthName vQadmin

<RequireAny>
     require valid-user
require ip 192.168.0.0/24
</RequireAny>

And had to start with bare minimal httpd.conf file, adding modules and 
directives step by step.
My standard httpd.conf didn't allow to authorize with .htaccess and I 
couldn't find out what is wrong.
Once again thanks a lot.

Pozdrawiam
/Przemek Kuzioła/
W dniu 2013-01-21 16:09, Michael Ross pisze:
>
> If this is a fresh install of slackware, can we assume slackware 14? 
> If that’s the case, you’re also running httpd-2.4.3, right? Best way 
> to do it:
>
> 1.Get rid of the .htaccess file in cgi-bin/vqadmin
>
> 2.in your httpd.conf remove the directive “order deny,allow” and 
> replace it with “require valid-user”
>
> 3.apachectl -k restart
>
> old way:
>
> #httpd.conf
>
> <Directory /srv/httpd/cgi-bin/vqadmin>
>
> deny from all
>
> Options ExecCGI
>
> AllowOverride AuthConfig
>
> Order deny,allow
>
> </Directory>
>
> #.htaccess
>
> AuthType Basic
>
> AuthUserFile /etc/httpd/vqadmin.passwd
>
> AuthName vQadmin
>
> require valid-user
>
> satisfy any
>
> new way
>
> #httpd.conf
>
> <Directory /srv/httpd/cgi-bin/vqadmin>
>
> Options +ExecCGI
>
> AllowOverride AuthConfig
>
> AuthType Basic
>
> AuthName vQadmin
>
> <RequireAll>
>
> Require valid-user
>
> Require ip 192.168.0.0/24
>
> </RequireAll>
>
> </Directory>
>
>
> Technically, you could split some of those directives into an 
> .htaccess file, but 1. The larger your passwd file, the bigger the 
> performance hit 2. If you have permission to install qmail on the box, 
> you should prolly also have permission to edit httpd.conf.
>
> Hope this helps.
>
> *From:*Przemek Kuzioła [mailto:[email protected]]
> *Sent:* Monday, January 21, 2013 8:44 AM
> *To:* [email protected]
> *Subject:* [vqadmin] [SPAM] vQadmin - problem
>
> Hi,
> I've a problem with login to vqadmin.
> Every time I get:
>
> -----------------------------------------------------
> Authentication Failed Username unknown
>   
>   
> vQadmin was unable to determine your username, which
> means your webserver is improperly configured to run
> with this CGI.  For security reasons, this script
> will not run without Apache htaccess lists.
> ------------------------------------------------
>
> It is a fresh installation. The system is Slackware.
> There is  a .htaccess file and corresponding password file (made with 
> htpasswd).
> But it doesn't work. I've checked apache modules and it looked like 
> all were loaded.
> Even tried to delete password file and the message was still the same. 
> It had no effect.
> No errors in apache error.log
> I'm stuck.
> Regards
>
> -- 
> Pozdrawiam
> /Przemek Kuzioła/
>
>  



!DSPAM:50fe941a34141839518368!

--------------040109040405060108050404
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Thx for your answer. It WORKS :-)<br>
      But I had to do it with .htaccess file. Didn't work the other way.<br>
      I've made it in a kind of "new way"<br>
      <br>
      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">#httpd.conf<o:p></o:p></span></p>
      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">&lt;Directory
          /srv/httpd/cgi-bin/vqadmin&gt;<o:p></o:p></span></p>
      <span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">               
        Options +ExecCGI<o:p></o:p></span>
      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">               
          AllowOverride AuthConfig<o:p></o:p></span></p>
      <span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">&lt;/Directory&gt;</span><br>
      <br>
      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">#.htaccess<o:p></o:p></span></p>
      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">AuthType
          Basic<o:p></o:p></span></p>
      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">AuthUserFile
          /etc/httpd/vqadmin.passwd<o:p></o:p></span></p>
      <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">AuthName
          vQadmin<o:p></o:p></span></p>
      <span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">&lt;RequireAny&gt;</span><br>
      <span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">   
            require valid-user</span><br>
            <small>require ip 192.168.0.0/24<br>
        &lt;/RequireAny&gt;</small><br>
      <br>
      And had to start with bare minimal httpd.conf file, adding modules
      and directives step by step.<br>
      My standard httpd.conf didn't allow to authorize with .htaccess
      and I couldn't find out what is wrong.<br>
      Once again thanks a lot.<br>
      <br>
      <div class="moz-signature">Pozdrawiam<br>
        <i>Przemek Kuzioła</i> </div>
      W dniu 2013-01-21 16:09, Michael Ross pisze:<br>
    </div>
    <blockquote
      cite="mid:[email protected]"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	color:black;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";
	color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	color:black;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:"Consolas","serif";
	color:black;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:black;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:1437016922;
	mso-list-type:hybrid;
	mso-list-template-ids:1802813510 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">If
            this is a fresh install of slackware, can we assume
            slackware 14? If that’s the case, you’re also running
            httpd-2.4.3, right? Best way to do it:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><o:p> </o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><span
              style="mso-list:Ignore">1.<span style="font:7.0pt
                &quot;Times New Roman&quot;">       </span></span></span><!--[endif]--><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">Get
            rid of the .htaccess file in cgi-bin/vqadmin<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><span
              style="mso-list:Ignore">2.<span style="font:7.0pt
                &quot;Times New Roman&quot;">       </span></span></span><!--[endif]--><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">in
            your httpd.conf remove the directive “order deny,allow” and
            replace it with “require valid-user”<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><span
              style="mso-list:Ignore">3.<span style="font:7.0pt
                &quot;Times New Roman&quot;">       </span></span></span><!--[endif]--><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">apachectl
            -k restart<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">old
            way:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">#httpd.conf<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">&lt;Directory
            /srv/httpd/cgi-bin/vqadmin&gt;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">               
            deny from all<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">               
            Options ExecCGI<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">               
            AllowOverride AuthConfig<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">               
            Order deny,allow<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">&lt;/Directory&gt;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">#.htaccess<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">AuthType
            Basic<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">AuthUserFile
            /etc/httpd/vqadmin.passwd<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">AuthName
            vQadmin<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">require
            valid-user<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">satisfy
            any<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">new
            way<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">#httpd.conf<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">&lt;Directory
            /srv/httpd/cgi-bin/vqadmin&gt;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">               
            Options +ExecCGI<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">               
            AllowOverride AuthConfig<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">               
            AuthType Basic<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">               
            AuthName vQadmin<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">               
            &lt;RequireAll&gt;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">                               
            Require valid-user<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">                               
            Require ip 192.168.0.0/24<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">               
            &lt;/RequireAll&gt;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">&lt;/Directory&gt;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><br>
            Technically, you could split some of those directives into
            an .htaccess file, but 1. The larger your passwd file, the
            bigger the performance hit 2. If you have permission to
            install qmail on the box, you should prolly also have
            permission to edit httpd.conf.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">Hope
            this helps.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">
                Przemek Kuzioła [<a class="moz-txt-link-freetext" href="mailto:[email protected]">mailto:[email protected]</a>] <br>
                <b>Sent:</b> Monday, January 21, 2013 8:44 AM<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a><br>
                <b>Subject:</b> [vqadmin] [SPAM] vQadmin - problem<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Hi,<br>
          I've a problem with login to vqadmin.<br>
          Every time I get:<o:p></o:p></p>
        <pre>-----------------------------------------------------<o:p></o:p></pre>
        <pre>Authentication Failed Username unknown<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>vQadmin was unable to determine your username, which<o:p></o:p></pre>
        <pre>means your webserver is improperly configured to run<o:p></o:p></pre>
        <pre>with this CGI.  For security reasons, this script<o:p></o:p></pre>
        <pre>will not run without Apache htaccess lists.<o:p></o:p></pre>
        <pre>------------------------------------------------<o:p></o:p></pre>
        <p class="MsoNormal">It is a fresh installation. The system is
          Slackware.<br>
          There is  a .htaccess file and corresponding password file
          (made with htpasswd).<br>
          But it doesn't work. I've checked apache modules and it looked
          like all were loaded.<br>
          Even tried to delete password file and the message was still
          the same. It had no effect.<br>
          No errors in apache error.log<br>
          I'm stuck.<br>
          Regards<o:p></o:p></p>
        <div>
          <p class="MsoNormal">-- <br>
            Pozdrawiam<br>
            <i>Przemek Kuzioła</i> <o:p></o:p></p>
        </div>
        <p class="MsoNormal"> <o:p></o:p></p>
      </div>
      
    </blockquote>
    <br>
  
!DSPAM:50fe941a34141839518368!

</body>
</html>



--------------040109040405060108050404--