1 |
--- e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/template-begin.fixe_ldif_templates 2010-11-10 19:00:38.000000000 +0100 |
2 |
+++ e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/template-begin 2010-11-10 19:01:58.000000000 +0100 |
3 |
@@ -84,14 +84,14 @@ |
4 |
# www is a special user for all accounts |
5 |
foreach my $user (qw/www/) |
6 |
{ |
7 |
- $dn = "uid=$key,ou=Users,$ldapBase"; |
8 |
+ $dn = "uid=$user,ou=Users,$ldapBase"; |
9 |
utf8::upgrade($dn); |
10 |
|
11 |
$dnmap->{$user}->{user} = $dn; |
12 |
|
13 |
$ldif->{$dn}->{objectClass} = [ qw(account posixAccount shadowAccount) ]; |
14 |
- @{$ldif->{$dn}}{'uid','userPassword','uidNumber','gidNumber','junk','junk','gecos','homeDirectory','loginShell'} = getpwnam($key); |
15 |
- $ldif->{$dn}->{userPassword} =~ s/^/{CRYPT}/ unless $ldif->{$dn}->{userPassword} =~ m/^{/; |
16 |
+ @{$ldif->{$dn}}{'uid','userPassword','uidNumber','gidNumber','junk','junk','gecos','homeDirectory','loginShell'} = getpwnam($user); |
17 |
+ $ldif->{$dn}->{userPassword} =~ s/^/{CRYPT}/ unless $ldif->{$dn}->{userPassword} =~ m/^\{/; |
18 |
$ldif->{$dn}->{cn} = $ldif->{$dn}->{gecos} || ''; |
19 |
} |
20 |
endpwent(); |