/[smeserver]/rpms/e-smith-samba/sme8/e-smith-samba-2.2.0-fix_modify.patch
ViewVC logotype

Contents of /rpms/e-smith-samba/sme8/e-smith-samba-2.2.0-fix_modify.patch

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


Revision 1.1 - (show annotations) (download)
Wed Oct 27 21:33:21 2010 UTC (13 years, 6 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-samba-2_2_0-47_el5_sme, e-smith-samba-2_2_0-52_el5_sme, e-smith-samba-2_2_0-49_el5_sme, e-smith-samba-2_2_0-40_el5_sme, e-smith-samba-2_2_0-43_el5_sme, e-smith-samba-2_2_0-44_el5_sme, e-smith-samba-2_2_0-63_el5_sme, e-smith-samba-2_2_0-61_el5_sme, e-smith-samba-2_2_0-31_el5_sme, e-smith-samba-2_2_0-32_el5_sme, e-smith-samba-2_2_0-57_el5_sme, e-smith-samba-2_2_0-54_el5_sme, e-smith-samba-2_2_0-41_el5_sme, e-smith-samba-2_2_0-55_el5_sme, e-smith-samba-2_2_0-39_el5_sme, e-smith-samba-2_2_0-46_el5_sme, e-smith-samba-2_2_0-53_el5_sme, e-smith-samba-2_2_0-50_el5_sme, e-smith-samba-2_2_0-58_el5_sme, e-smith-samba-2_2_0-30_el5_sme, e-smith-samba-2_2_0-33_el5_sme, e-smith-samba-2_2_0-56_el5_sme, e-smith-samba-2_2_0-51_el5_sme, e-smith-samba-2_2_0-42_el5_sme, e-smith-samba-2_2_0-65_el5_sme, e-smith-samba-2_2_0-64_el5_sme, e-smith-samba-2_2_0-60_el5_sme, e-smith-samba-2_2_0-62_el5_sme, e-smith-samba-2_2_0-34_el5_sme, e-smith-samba-2_2_0-35_el5_sme, e-smith-samba-2_2_0-45_el5_sme, e-smith-samba-2_2_0-48_el5_sme, e-smith-samba-2_2_0-37_el5_sme, e-smith-samba-2_2_0-38_el5_sme, e-smith-samba-2_2_0-36_el5_sme, e-smith-samba-2_2_0-29_el5_sme, e-smith-samba-2_2_0-66_el5_sme, e-smith-samba-2_2_0-59_el5_sme, e-smith-samba-2_2_0-26_el5_sme, HEAD
* Wed Oct 27 2010 Shad L. Lords <slords@mail.com> 2.2.0-26.sme
- Change the way groups are modified on samba3x [SME: 6314]

1 diff -up e-smith-samba-2.2.0/root/etc/e-smith/events/actions/update-domain-group-maps.fix_modify e-smith-samba-2.2.0/root/etc/e-smith/events/actions/update-domain-group-maps
2 --- e-smith-samba-2.2.0/root/etc/e-smith/events/actions/update-domain-group-maps.fix_modify 2008-10-07 11:37:34.000000000 -0600
3 +++ e-smith-samba-2.2.0/root/etc/e-smith/events/actions/update-domain-group-maps 2010-10-27 15:24:17.000000000 -0600
4 @@ -37,7 +37,7 @@ my %ridmap = (
5 'Domain Users' => '513',
6 'Domain Guests' => '514');
7
8 -my %mapping_done = ();
9 +my %sidmap = ();
10 foreach (`/usr/bin/net groupmap list`)
11 {
12 chomp;
13 @@ -58,12 +58,14 @@ foreach (`/usr/bin/net groupmap list`)
14 elsif ($sid =~ /^$local_sid-/)
15 {
16 my $ug = $mappings{$nt};
17 - system('/usr/bin/net',$debug,
18 - 'groupmap','modify',
19 - "sid=$sid",
20 - "unixgroup=$ug",
21 - 'type=d') unless ($group eq $ug);
22 - $mapping_done{$nt} = 1;
23 + if ($group eq $ug)
24 + {
25 + $sidmap{$nt} = 'done';
26 + }
27 + else
28 + {
29 + system('/usr/bin/net','groupmap','delete',"sid=$sid");
30 + }
31 }
32 else
33 {
34 @@ -81,11 +83,12 @@ foreach (`/usr/bin/net groupmap list`)
35
36 foreach (keys %mappings)
37 {
38 - next if $mapping_done{$_};
39 + next if $sidmap{$_} && $sidmap{$_} eq 'done';
40 system('/usr/bin/net',$debug,
41 'groupmap','add',
42 "ntgroup=$_",
43 "unixgroup=" . $mappings{$_},
44 $ridmap{$_} ? "rid=$ridmap{$_}" : (),
45 + $sidmap{$_} && ! $ridmap{$_} ? "sid=$sidmap{$_}" : (),
46 'type=d');
47 }

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