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

Diff of /rpms/e-smith-ldap/sme8/e-smith-ldap-5.2.0-group-attrs.patch

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

Revision 1.1 by slords, Fri Nov 5 01:39:52 2010 UTC Revision 1.2 by slords, Fri Nov 5 05:13:58 2010 UTC
# Line 1  Line 1 
1  diff -up e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update.group-attrs e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update  diff -up e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update.group-attrs e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update
2  diff -up e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/template-begin.group-attrs e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/template-begin  diff -up e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/template-begin.group-attrs e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/template-begin
3  --- e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/template-begin.group-attrs  2010-11-04 19:32:27.000000000 -0600  diff -up e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update.group-attrs e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update
4  +++ e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/template-begin      2010-11-04 19:31:24.000000000 -0600  --- e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update.group-attrs  2010-11-04 23:03:07.000000000 -0600
5    +++ e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update      2010-11-04 23:05:21.000000000 -0600
6    @@ -207,8 +207,7 @@ foreach my $group (qw/nobody shared www/
7         $updates->{$dn}->{objectClass} = ['posixGroup'];
8    
9         # Read information from getent group
10    -    @{$updates->{$dn}}{'cn','userPassword','gidNumber','memberUid'} = getgrnam($group);
11    -    $updates->{$dn}->{userPassword} =~ s/^/{CRYPT}/ unless $updates->{$dn}->{userPassword} =~ m/^{/;
12    +    @{$updates->{$dn}}{'cn','junk','gidNumber','memberUid'} = getgrnam($group);
13         $updates->{$dn}->{memberUid} = [ split /\s+/, $updates->{$dn}->{memberUid} ];
14    
15         # Ensure groups have the needed properties
16    @@ -311,9 +310,7 @@ foreach my $acct (@accounts)
17            $updates->{$dn}->{objectClass} = ['posixGroup'];
18    
19            # Read information from getent group
20    -       @{$updates->{$dn}}{'cn','userPassword','gidNumber','memberUid'} = getgrnam($key);
21    -       $updates->{$dn}->{userPassword} =~ s/^/{CRYPT}/ unless $updates->{$dn}->{userPassword} =~ m/^{/;
22    -       $updates->{$dn}->{description} = $desc if $desc;
23    +       @{$updates->{$dn}}{'cn','junk','gidNumber','memberUid'} = getgrnam($key);
24            $updates->{$dn}->{memberUid} = [ split /\s+/, $updates->{$dn}->{memberUid} ];
25    
26            # Ensure groups have the needed properties
27    @@ -321,6 +318,7 @@ foreach my $acct (@accounts)
28            {
29                push @{$updates->{$dn}->{objectClass}}, 'mailboxRelatedObject';
30                $updates->{$dn}->{mail} = "$key\@$domain";
31    +           $updates->{$dn}->{description} = $desc if $desc;
32            }
33    
34            # Samba parameters if we find the samba.schema
35    diff -up e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/template-begin.group-attrs e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/template-begin
36    --- e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/template-begin.group-attrs  2010-11-04 23:03:07.000000000 -0600
37    +++ e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/template-begin      2010-11-04 23:04:08.000000000 -0600
38  @@ -97,7 +97,7 @@  @@ -97,7 +97,7 @@
39       endpwent();       endpwent();
40    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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