/[smecontribs]/rpms/smeserver-gitweb/contribs9/smeserver-gitweb-1.1.0-runtime_search_for_pwauth.patch
ViewVC logotype

Contents of /rpms/smeserver-gitweb/contribs9/smeserver-gitweb-1.1.0-runtime_search_for_pwauth.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Feb 17 01:10:50 2016 UTC (8 years, 8 months ago) by marcohess
Branch: MAIN
CVS Tags: smeserver-gitweb-1_1_0-5_el6_sme, smeserver-gitweb-1_1_0-11_el6_sme, smeserver-gitweb-1_1_0-12_el6_sme, smeserver-gitweb-1_1_0-3_el6_sme, smeserver-gitweb-1_1_0-6_el6_sme, smeserver-gitweb-1_1_0-9_el6_sme, smeserver-gitweb-1_1_0-10_el6_sme, smeserver-gitweb-1_1_0-8_el6_sme, smeserver-gitweb-1_1_0-4_el6_sme, smeserver-gitweb-1_1_0-7_el6_sme, HEAD
Error occurred while calculating annotation data.
* Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-3
- Changed the trypass function in 60ExportAuthHook to dynamically
  check for the location of pwauth so this becomes universal for
  SME8 and SME9.

1 diff -urN smeserver-gitweb-1.1.0.org/root/etc/e-smith/templates/etc/gitweb.conf/60ExportAuthHook smeserver-gitweb-1.1.0/root/etc/e-smith/templates/etc/gitweb.conf/60ExportAuthHook
2 --- smeserver-gitweb-1.1.0.org/root/etc/e-smith/templates/etc/gitweb.conf/60ExportAuthHook 2016-02-17 11:23:06.448465220 +1030
3 +++ smeserver-gitweb-1.1.0/root/etc/e-smith/templates/etc/gitweb.conf/60ExportAuthHook 2016-02-17 11:23:58.430574814 +1030
4 @@ -2,11 +2,21 @@
5 # Password Check - Returns 0 when password validated OK, or !0 otherwise
6 #
7
8 -$pwauth_path= "/usr/bin/pwauth";
9 sub trypass \{
10 my $userid= $_[0];
11 my $passwd= $_[1];
12
13 + # Find the pwauth program. It is in a different location in SME8 and SME9
14 + if( -f "/usr/bin/pwauth" ) \{
15 + $pwauth_path= "/usr/bin/pwauth";
16 + \}
17 + elsif( -f "/usr/lib/httpd/modules/pwauth" ) \{
18 + $pwauth_path= "/usr/lib/httpd/modules/pwauth";
19 + \}
20 + else \{
21 + $pwauth_path = "";
22 + \}
23 +
24 open PWAUTH, "|$pwauth_path" or die("Could not run $pwauth_path");
25 print PWAUTH "$userid\n$passwd\n";
26 close PWAUTH;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed