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

Annotation of /rpms/smeserver-gitweb/contribs8/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 - (hide annotations) (download)
Fri Jun 10 07:19:52 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
* Thu Feb 18 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-4
- backport SME9 changes [SME: 9217]
- Removed chmod 644 /home/e-smith/db/networks from spec file as
  it is no longer required for gitweb.conf
- Changed the trypass function in 60ExportAuthHook to dynamically
  check for the location of pwauth so this becomes universal for
  SME8 and SME9.
- Remove runtime access to NetworkDB [SME: 9217]
- Some trailing whitespace cleanup

1 unnilennium 1.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