/[smeserver]/rpms/e-smith-base/sme8/e-smith-base-5.2.0-fix_group_create_with_ldap_auth.patch
ViewVC logotype

Contents of /rpms/e-smith-base/sme8/e-smith-base-5.2.0-fix_group_create_with_ldap_auth.patch

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


Revision 1.1 - (show annotations) (download)
Fri Jun 14 10:32:43 2013 UTC (11 years ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-base-5_2_0-80_el5_sme, e-smith-base-5_2_0-85_el5_sme, e-smith-base-5_2_0-86_el5_sme, e-smith-base-5_2_0-83_el5_sme, e-smith-base-5_2_0-84_el5_sme, e-smith-base-5_2_0-78_el5_sme, e-smith-base-5_2_0-88_el5_sme, e-smith-base-5_2_0-81_el5_sme, e-smith-base-5_2_0-82_el5_sme, e-smith-base-5_2_0-76_el5_sme, e-smith-base-5_2_0-89_el5_sme, e-smith-base-5_2_0-77_el5_sme, e-smith-base-5_2_0-79_el5_sme, e-smith-base-5_2_0-90_el5_sme, e-smith-base-5_2_0-87_el5_sme
* Fri Jun 14 2013 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-76.sme
- Fix group creation/modification when LDAP auth is enabled [SME: 7049]

1 diff -Nur e-smith-base-5.2.0/root/etc/e-smith/events/actions/group-create-unix e-smith-base-5.2.0-apache_vs_www/root/etc/e-smith/events/actions/group-create-unix
2 --- e-smith-base-5.2.0/root/etc/e-smith/events/actions/group-create-unix 2013-06-14 08:50:49.742759238 +0200
3 +++ e-smith-base-5.2.0-apache_vs_www/root/etc/e-smith/events/actions/group-create-unix 2013-06-14 08:58:16.805767551 +0200
4 @@ -167,6 +167,8 @@
5
6 my @groupList = split (/\s+/, $groups);
7 @groupList = grep (!/^$member$/, @groupList);
8 + # Apache is an alias for www
9 + @groupList= map { $_ =~ s/^apache$/www/g; $_ } @groupList;
10
11 push @groupList, $groupName;
12
13 diff -Nur e-smith-base-5.2.0/root/etc/e-smith/events/actions/group-modify-unix e-smith-base-5.2.0-apache_vs_www/root/etc/e-smith/events/actions/group-modify-unix
14 --- e-smith-base-5.2.0/root/etc/e-smith/events/actions/group-modify-unix 2013-06-14 08:50:49.742759238 +0200
15 +++ e-smith-base-5.2.0-apache_vs_www/root/etc/e-smith/events/actions/group-modify-unix 2013-06-14 08:59:12.251000367 +0200
16 @@ -138,6 +138,8 @@
17
18 my @groupList = split (/\s+/, $groups);
19 @groupList = grep (!/^$member$/, @groupList);
20 + # Apache is an alias for www
21 + @groupList= map { $_ =~ s/^apache$/www/g; $_ } @groupList;
22
23 if ($oldMembers{$member})
24 {
25 diff -Nur e-smith-base-5.2.0/root/etc/e-smith/events/actions/init-accounts e-smith-base-5.2.0-apache_vs_www/root/etc/e-smith/events/actions/init-accounts
26 --- e-smith-base-5.2.0/root/etc/e-smith/events/actions/init-accounts 2013-06-14 08:50:49.742759238 +0200
27 +++ e-smith-base-5.2.0-apache_vs_www/root/etc/e-smith/events/actions/init-accounts 2013-06-14 09:19:15.858585579 +0200
28 @@ -89,7 +89,7 @@
29 @groupList = grep (!/^admin$/, @groupList);
30 @groupList = grep (!/^root$/, @groupList);
31 @groupList = grep (!/^shared$/, @groupList);
32 - @groupList = grep (!/^www$/, @groupList);
33 + @groupList = grep (!/^(www|apache)$/, @groupList);
34
35 push @groupList, 'shared', 'www';
36
37 @@ -164,7 +164,7 @@
38 # are listed exactly once each.
39 #--------------------------------------------------
40
41 - @groupList = grep (!/^www$/, @groupList);
42 + @groupList = grep (!/^(www|apache)$/, @groupList);
43 @groupList = grep (!/^shared$/, @groupList);
44
45 push @groupList, 'shared';

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