|
From: Jamie C. <jca...@we...> - 2006-10-27 02:30:02
|
On 26/Oct/2006 16:37 Grant Peel wrote .. <blockquote type=3D"cite"> <div><font size=3D"2" face=3D"Arial">Hi all,</font></div> <div><font size=3D"2" face=3D"Arial"></font>=A0</div> <div><font size=3D"2" face=3D"Arial">I came accross a strange one today...</font></div> <div><font size=3D"2" face=3D"Arial"></font>=A0</div> <div><font size=3D"2" face=3D"Arial">While using the "Protected Web Directories" module in Usermin 1.230 (Webmin Version 1.300), apache-2.2.0</font></div> <div><font size=3D"2" face=3D"Arial"></font>=A0</div> <div><font size=3D"2" face=3D"Arial">Findong the web dir through the panel went OK, adding the .htacces + .htpasswd files went OK, but I could not log in using the passwd I specified in the setup.</font></div> <div><font size=3D"2" face=3D"Arial"></font>=A0</div> <div><font size=3D"2" face=3D"Arial">Upon further investigation, I noticed when I read the .htaccess file, an extra line:</font></div> <div><font size=3D"2" face=3D"Arial"></font>=A0</div> <div><font size=3D"2" face=3D"Arial">"require user" showed up</font></div> <div><font size=3D"2" face=3D"Arial"></font>=A0</div> <div><font size=3D"2" face=3D"Arial">when I remove it, all works well.</font></div> <div><font size=3D"2" face=3D"Arial"></font>=A0</div> <div><font size=3D"2" face=3D"Arial">Can I, Should I remove this from some template file somewhere?</font></div> <div><font size=3D"2" face=3D"Arial"></font>=A0</div> <div><font size=3D"2" face=3D"Arial">-doesn't work-</font></div> <div><font size=3D"2" face=3D"Arial">AuthUserFile "/home/domain.com/www/dir-to-protect/.htpasswd"<br />AuthType Basic<br />AuthName "Me Only"<br />require user<br />require myrealusernamehere</font></div> <div><font size=3D"2" face=3D"Arial"></font>=A0</div> <div> <div><font size=3D"2" face=3D"Arial">-does work-</font></div> <div><font size=3D"2" face=3D"Arial">AuthUserFile "/home/domain.com/www/dir-to-protect/.htpasswd"<br />AuthType Basic<br />AuthName "Me Only"<br />require myrealusernamehere</font></div></div></blockquote>This is actually a bug in Usermin .. when you select to only allow certain users, it should<br />be adding a line like :<br /><br />require user myrealusernamehere someotheruser<br /><br />I'll fix it in the next release..<br /><br />=A0- Jamie<br /><br /> |