/[smecontribs]/rpms/phpki/contribs7/phpki-0.82-ca_admin_users.patch
ViewVC logotype

Contents of /rpms/phpki/contribs7/phpki-0.82-ca_admin_users.patch

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


Revision 1.1 - (show annotations) (download)
Wed Jun 29 11:11:58 2011 UTC (13 years, 5 months ago) by vip-ire
Branch: MAIN
CVS Tags: phpki-0_82-16_el4_sme, phpki-0_82-15_el4_sme, phpki-0_82-14_el4_sme, HEAD
* Wed Jun 29 2011 Daniel B. <daniel@firewall-services.com> 0.82-14.sme
- Don't check issuer (everyone allowed to access /ca can manage
  all the certificates, access to /ca is controlled by apache)

1 diff -Nur phpki/phpki-0.82/ca/manage_certs.php phpki_mod/phpki-0.82/ca/manage_certs.php
2 --- phpki/phpki-0.82/ca/manage_certs.php 2011-06-29 13:07:14.000000000 +0200
3 +++ phpki_mod/phpki-0.82/ca/manage_certs.php 2011-06-29 13:08:22.000000000 +0200
4 @@ -20,12 +20,6 @@
5 $show_revoked = gpvar('show_revoked');
6 $show_expired = gpvar('show_expired');
7
8 -
9 -# Prevent handling certs that don't belong to user
10 -if ($serial && CAdb_issuer($serial) != $PHPki_user && ! in_array($PHPki_user, $PHPki_admins)) {
11 - $stage = 'goaway';
12 -}
13 -
14 if ( !($show_valid.$show_revoked.$show_expired) ) {
15 $show_valid = 'V';
16 $show_revoked = 'R';
17 @@ -366,12 +360,7 @@
18
19 $x = "^[$show_valid$show_revoked$show_expired]";
20
21 - if (in_array($PHPki_user, $PHPki_admins)) {
22 - $x = "$x.*$search";
23 - }
24 - else {
25 - $x = "$x.*$search.*$PHPki_user|$x.*$PHPki_user.*$search";
26 - }
27 + $x = "$x.*$search";
28
29 $db = csort(CAdb_to_array($x), $sortfield, ($ascdec=='A'?SORT_ASC:SORT_DESC));
30

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