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

Annotation of /rpms/e-smith-ldap/sme8/e-smith-ldap-5.2.0-dont_set_gecos_in_ldap.patch

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


Revision 1.1 - (hide annotations) (download)
Mon Mar 14 15:28:58 2011 UTC (13 years, 2 months ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-ldap-5_2_0-79_el5_sme, e-smith-ldap-5_2_0-81_el5_sme, e-smith-ldap-5_2_0-80_el5_sme, e-smith-ldap-5_2_0-76_el5_sme, e-smith-ldap-5_2_0-77_el5_sme, e-smith-ldap-5_2_0-75_el5_sme, e-smith-ldap-5_2_0-78_el5_sme, HEAD
* Mon Mar 14 2011 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-75.sme
- Stop using gecos attribute in LDAP [SME: 6539]

1 vip-ire 1.1 diff -Nur e-smith-ldap-5.2.0/root/var/service/ldap/ldif-fix e-smith-ldap-5.2.0_mod/root/var/service/ldap/ldif-fix
2     --- e-smith-ldap-5.2.0/root/var/service/ldap/ldif-fix 2011-03-14 16:23:41.000000000 +0100
3     +++ e-smith-ldap-5.2.0_mod/root/var/service/ldap/ldif-fix 2011-03-14 16:24:11.000000000 +0100
4     @@ -97,7 +97,7 @@
5     $data->{$dn}->{mail} = "$key\@$domain";
6     @{$data->{$dn}}{qw/givenname sn telephonenumber o ou l street/} =
7     map { $acct->prop($_) || [] } qw/FirstName LastName Phone Company Dept City Street/;
8     - $data->{$dn}->{cn} = $data->{$dn}->{gecos} = $acct->prop('FirstName').' '.$acct->prop('LastName');
9     + $data->{$dn}->{cn} = $acct->prop('FirstName').' '.$acct->prop('LastName');
10     }
11     else {
12     push @{$data->{$dn}->{objectclass}}, 'account';
13     @@ -160,8 +160,8 @@
14     next unless exists $data->{$dn};
15    
16     push @{$data->{$dn}->{objectclass}}, 'posixAccount';
17     - @{$data->{$dn}}{qw/cn uid uidnumber gidnumber homedirectory loginshell gecos/} =
18     - map { $passwd[$_] ? $passwd[$_] : [] } (4,0,2,3,5,6,4);
19     + @{$data->{$dn}}{qw/cn uid uidnumber gidnumber homedirectory loginshell/} =
20     + map { $passwd[$_] ? $passwd[$_] : [] } (4,0,2,3,5,6);
21     }
22     close (PASSWD);
23    

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