[smokeping-users] how to enforce username/password logons to access smokeping

Peter Kristolaitis alter3d at alter3d.ca
Wed Mar 21 19:25:42 CET 2012


This isn't really a SmokePing specific issue;  it's a webserver-level thing.

That said, I don't see a "Require" directive anywhere in your config.   
Try adding "Require valid-user" to your <Directory ...> block.

- Pete



On 12-03-21 02:20 PM, Murray Davis wrote:
> I am trying to set up user-based access to smokeping on a system with 
> the following characteristics:
>
> 2.6.32-39-generic Linux Ubuntu 10.04.1 LTS \n \l
> apache2  2.2.14-5ubuntu8
> smokeping  2.3.6-5
>
> I have modified /etc/apache2/conf.d/smokeping as folllows...and 
> restarted apache and smokeping.
>
> ScriptAlias /smokeping/smokeping.cgi 
> /usr/share/smokeping/cgi-bin/smokeping.cgi
> Alias /smokeping /usr/share/smokeping/www
>
> <Directory "/usr/share/smokeping/www">
>     Options FollowSymLinks
>     AllowOverride AuthConfig
>     AuthType Basic
>     AuthName "Password Required"
>     AuthUserFile /etc/passwd
> </Directory>
>
> However, when I go to http://servername/smokeping, I am taken directly 
> to the smokeping home page.
>
> I then added an .htaccess file to:
>
> /usr/share/smokeping/cgi-bin...the location of smokeping.cgi.
>
> /usr/share/smokeping/www, the Alias referenced 
> in  /etc/apache2/conf.d/smokeping.
>
> The .htaccess file contains:
>
> AuthType Basic
> AuthName "Password Required"
> AuthUserFile /etc/passwd
>
> Even with these .htaccess files, I still am not prompted for a 
> username and password. I would like to specify a specific local user, 
> but any local username would be sufficient.
>
> What do I need to do to get this working?
>
>
>
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20120321/be2f305d/attachment-0001.htm 


More information about the smokeping-users mailing list