/[smeserver]/rpms/e-smith-base/sme10/e-smith-base-5.8.1-bz11624-altdomains.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme10/e-smith-base-5.8.1-bz11624-altdomains.patch

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


Revision 1.1 - (hide annotations) (download)
Sun Jun 6 20:49:50 2021 UTC (3 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-base-5_8_1-8_el7_sme, e-smith-base-5_8_1-5_el7_sme, e-smith-base-5_8_1-29_el7_sme, e-smith-base-5_8_1-12_el7_sme, e-smith-base-5_8_1-31_el7_sme, e-smith-base-5_8_1-28_el7_sme, e-smith-base-5_8_1-13_el7_sme, e-smith-base-5_8_1-21_el7_sme, e-smith-base-5_8_1-24_el7_sme, e-smith-base-5_8_1-4_el7_sme, e-smith-base-5_8_1-7_el7_sme, e-smith-base-5_8_1-18_el7_sme, e-smith-base-5_8_1-6_el7_sme, e-smith-base-5_8_1-3_el7_sme, e-smith-base-5_8_1-9_el7_sme, e-smith-base-5_8_1-10_el7_sme, e-smith-base-5_8_1-23_el7_sme, e-smith-base-5_8_1-17_el7_sme, e-smith-base-5_8_1-14_el7_sme, e-smith-base-5_8_1-11_el7_sme, e-smith-base-5_8_1-22_el7_sme, e-smith-base-5_8_1-15_el7_sme, e-smith-base-5_8_1-16_el7_sme, e-smith-base-5_8_1-19_el7_sme, e-smith-base-5_8_1-2_el7_sme, e-smith-base-5_8_1-26_el7_sme, e-smith-base-5_8_1-1_el7_sme, e-smith-base-5_8_1-25_el7_sme, e-smith-base-5_8_1-27_el7_sme, e-smith-base-5_8_1-20_el7_sme, e-smith-base-5_8_1-30_el7_sme, HEAD
* Sun Jun 06 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.8.1-1.sme
- add local domains in self signed cert alt subjects [SME: 11624]
  add local hosts in self signed cert alt subjects
  modSSL property to disable hosts domains addition : AddDomains AddHosts
  default is enabled when empty

1 jpp 1.1 diff -Nur --no-dereference e-smith-base-5.8.1.old/root/sbin/e-smith/generate-subjectaltnames e-smith-base-5.8.1/root/sbin/e-smith/generate-subjectaltnames
2     --- e-smith-base-5.8.1.old/root/sbin/e-smith/generate-subjectaltnames 2021-06-06 16:30:37.000000000 -0400
3     +++ e-smith-base-5.8.1/root/sbin/e-smith/generate-subjectaltnames 2021-06-06 16:46:09.625000000 -0400
4     @@ -20,6 +20,11 @@
5    
6     my $configuration = esmith::ConfigDB->open_ro('configuration')
7     or die "Couldn't open configuration DB\n";
8     +my $domains = esmith::ConfigDB->open_ro('domains')
9     + or die "Couldn't open domains DB\n";
10     +
11     +my $hosts = esmith::ConfigDB->open_ro('hosts')
12     + or die "Couldn't open domains DB\n";
13    
14     my %results_dict = ();
15    
16     @@ -62,10 +67,34 @@
17     }
18    
19     #----------------------------------------------------------------------
20     +# Add all domains defined
21     +#----------------------------------------------------------------------
22     +my $modSSL = $configuration->get('modSSL');
23     +my $AddDomains = $modSSL->prop('AddDomains') || "enabled";
24     +if ( $AddDomains eq "enabled" )
25     +{
26     + foreach my $domain ( $domains->get_all_by_prop(type => 'domain') )
27     + {
28     + $results_dict{$domain->key} = 1;
29     + }
30     +}
31     +
32     +#----------------------------------------------------------------------
33     +# Add all domains defined
34     +#----------------------------------------------------------------------
35     +my $AddHosts = $modSSL->prop('AddHosts') || "enabled";
36     +if ( $AddHosts eq "enabled" )
37     +{
38     + foreach my $host ( $hosts->get_all_by_prop(type => 'host') )
39     + {
40     + $results_dict{$host->key} = 1;
41     + }
42     +}
43     +
44     +#----------------------------------------------------------------------
45     # Add any alternate names specified in the modSSL config DB.
46     #----------------------------------------------------------------------
47    
48     -$modSSL = $configuration->get('modSSL');
49     if ($modSSL)
50     {
51     $AlternateNames = $modSSL->prop('AlternateNames');

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