User talk:Jbilyk: Difference between revisions

From Alpine Linux
m (noticed fping needs setuid to work properly)
(Added NTLM single sign-on under Apache)
Line 2: Line 2:
|<div style="font-size: 1.5em; font-weight:bold;"> [[Image:Underconstruction_clock_icon_gray.svg‎|64px|left|link=]] This page is a work in progress ... </div><p style="text-align: center; font-size: 87%;">This page is still being developed.</p>
|<div style="font-size: 1.5em; font-weight:bold;"> [[Image:Underconstruction_clock_icon_gray.svg‎|64px|left|link=]] This page is a work in progress ... </div><p style="text-align: center; font-size: 87%;">This page is still being developed.</p>
|}
|}
Setting_up_Smokeping_to_Monitor__Network_Latency<br />
NTLM single sign on under Apache
Notes for smokeping and smoketrace (need edge/testing repo to install smokeping):
Prereqs:
From http://samba.org/ftp/unpacked/lorikeet/mod_auth_ntlm_winbind/:
mod_auth_ntlm_winbind.c
configure.in
Makefile.in
-----
autoconf
alpine-sdk
apache-dev
apr-util-dev
apr-dev
samba (joined to a Windows Domain) with winbind running


after install, enable mod_cgi in lighttpd<br />
Steps:
Assign cgi to run with /usr/bin/perl in mod_cgi (by default it's only in cgi-bin virtual host)<br />
working dir is where the above 3 source files are
Softlink /usr/share/webapps/smokeping -> /var/www/localhost/htdocs/smokeping<br />
autoconf
Softlink /var/lib/smokeping/.simg -> /var/www/localhost/htdocs/img<br />
./configure
 
make
/usr/share/perl5/vendor_perl/Qooxdoo/Services/Tr.pm<br />
add to httpd.conf (module section):
line 34: add "sudo", to beginning, add path to traceroute /usr/bin/<br />
LoadModule auth_ntlm_winbind_module lib/apache2/mod_auth_ntlm_winbind.so
This is because in Alpine, regular user can't run a traceroute, but I
add to httpd.conf (virtual host):
don't think people would want this by default (some don't like sudo on
AuthType NTLM
system at all)
NTLMauth on
 
NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
/etc/sudoers<br />
Require user jbilyk
add lighttpd ALL=(ALL) NOPASSWD: /usr/bin/traceroute<br />
-----
 
Restart apache and test
If using lighttpd, change permissions on /var/lib/smokeping/.simg to 777. <br />
Set fping to using setuid: chmod u+s /usr/sbin/fping<br />
Add hosts to be monitored in /etc/smokeping/config <br />
 
<br />

Revision as of 07:46, 4 August 2010

This page is a work in progress ...

This page is still being developed.

NTLM single sign on under Apache Prereqs: From http://samba.org/ftp/unpacked/lorikeet/mod_auth_ntlm_winbind/: mod_auth_ntlm_winbind.c configure.in Makefile.in


autoconf alpine-sdk apache-dev apr-util-dev apr-dev samba (joined to a Windows Domain) with winbind running

Steps: working dir is where the above 3 source files are autoconf ./configure make add to httpd.conf (module section): LoadModule auth_ntlm_winbind_module lib/apache2/mod_auth_ntlm_winbind.so add to httpd.conf (virtual host): AuthType NTLM NTLMauth on NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp" Require user jbilyk


Restart apache and test