/[smeserver]/rpms/e-smith-ldap/sme8/e-smith-ldap-5.2.0-add_nobody_and_shared_in_ldap.patch
ViewVC logotype

Contents of /rpms/e-smith-ldap/sme8/e-smith-ldap-5.2.0-add_nobody_and_shared_in_ldap.patch

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


Revision 1.1 - (show annotations) (download)
Wed Oct 27 10:03:20 2010 UTC (13 years, 6 months ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-ldap-5_2_0-76_el5_sme, e-smith-ldap-5_2_0-71_el5_sme, e-smith-ldap-5_2_0-77_el5_sme, e-smith-ldap-5_2_0-78_el5_sme, e-smith-ldap-5_2_0-61_el5_sme, e-smith-ldap-5_2_0-66_el5_sme, e-smith-ldap-5_2_0-70_el5_sme, e-smith-ldap-5_2_0-79_el5_sme, e-smith-ldap-5_2_0-81_el5_sme, e-smith-ldap-5_2_0-59_el5_sme, e-smith-ldap-5_2_0-75_el5_sme, e-smith-ldap-5_2_0-56_el5_sme, e-smith-ldap-5_2_0-55_el5_sme, e-smith-ldap-5_2_0-57_el5_sme, e-smith-ldap-5_2_0-73_el5_sme, e-smith-ldap-5_2_0-69_el5_sme, e-smith-ldap-5_2_0-52_el5_sme, e-smith-ldap-5_2_0-51_el5_sme, e-smith-ldap-5_2_0-72_el5_sme, e-smith-ldap-5_2_0-65_el5_sme, e-smith-ldap-5_2_0-54_el5_sme, e-smith-ldap-5_2_0-53_el5_sme, e-smith-ldap-5_2_0-80_el5_sme, e-smith-ldap-5_2_0-74_el5_sme, e-smith-ldap-5_2_0-63_el5_sme, e-smith-ldap-5_2_0-60_el5_sme, e-smith-ldap-5_2_0-62_el5_sme, e-smith-ldap-5_2_0-68_el5_sme, e-smith-ldap-5_2_0-67_el5_sme, e-smith-ldap-5_2_0-64_el5_sme, HEAD
* Wed Oct 27 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-51.sme
- Add nobody and shared groups in LDAP [SME: 6310]

1 diff -Nur -x '*.orig' -x '*.rej' e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update mezzanine_patched_e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update
2 --- e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update 2010-10-27 09:21:50.000000000 +0200
3 +++ mezzanine_patched_e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update 2010-10-27 09:21:35.000000000 +0200
4 @@ -273,6 +273,26 @@
5 endpwent();
6 endgrent();
7
8 +
9 +# Nobody and shared are special groups used by samba
10 +foreach my $group (qw/nobody shared/){
11 + my $dn = "cn=$group,ou=Groups,$base";
12 + @{$updates->{$dn}}{'cn','userPassword','gidNumber','memberUid'} = getgrnam($group);
13 + utf8::upgrade($dn);
14 + $updates->{$dn}->{objectClass} = ['posixGroup', 'mailboxRelatedObject'];
15 + $updates->{$dn}->{userPassword} =~ s/^/{CRYPT}/ unless $updates->{$dn}->{userPassword} =~ m/^{/;
16 + $updates->{$dn}->{memberUid} = [ split /\s+/, $updates->{$dn}->{memberUid} ];
17 + if ( -f "$schema" and exists $groupmap->{$group} )
18 + {
19 + push @{$updates->{$dn}->{objectClass}}, 'sambaGroupMapping';
20 + $updates->{$dn}->{displayName} = $groupmap->{$group}->{name};
21 + $updates->{$dn}->{sambaSID} = $groupmap->{$group}->{sid};
22 + $updates->{$dn}->{sambaGroupType} = '2';
23 + }
24 +}
25 +endgrent();
26 +
27 +
28 #------------------------------------------------------------
29 # Update LDAP database entry.
30 #------------------------------------------------------------

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