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 |
|
|
|