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

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

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


Revision 1.1 - (show annotations) (download)
Sat Jun 11 19:06:31 2016 UTC (8 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-gitweb-1_1_0-11_el6_sme, smeserver-gitweb-1_1_0-12_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-7_el6_sme, HEAD
Error occurred while calculating annotation data.
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-6.sme
- fix auth from remote IP [SME: 9202]

1 diff -Nur smeserver-gitweb-1.1.0.old/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.old/root/etc/e-smith/templates/etc/gitweb.conf/60ExportAuthHook 2016-06-11 14:58:21.172000000 -0400
3 +++ smeserver-gitweb-1.1.0/root/etc/e-smith/templates/etc/gitweb.conf/60ExportAuthHook 2016-06-11 15:04:39.360000000 -0400
4 @@ -124,7 +124,7 @@
5 # to have world read permissions to allow this to work.
6 my $effective_pull_users = $git_db->effective_users_list_from( $properties\{'pull_groups'\},
7 $properties\{'pull_users'\} );
8 - if( @http_digest[0] ~~ $effective_pull_users ) \{
9 + if( @http_digest[0] ~~ split( / /,$effective_pull_users) ) \{
10 # USER IN AUTHORISED LIST -> CHECK PASSWORD
11 if( trypass( @http_digest[0], @http_digest[1] ) == 0 ) \{
12 return 1; # EXIT USER IS AUTHORISED -> REPOSITORY VIEW ALLOWED

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