1 |
--- e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update.admin_user 2010-01-30 19:45:06.000000000 +0100 |
2 |
+++ e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update 2010-01-30 19:51:20.000000000 +0100 |
3 |
@@ -56,6 +56,7 @@ |
4 |
if ($event eq 'ldap-update') |
5 |
{ |
6 |
@accounts = ($a->users, $a->groups); |
7 |
+ push(@accounts, $a->get('admin')); |
8 |
} |
9 |
else |
10 |
{ |
11 |
@@ -105,7 +106,7 @@ |
12 |
my $type = $acct->prop('type'); |
13 |
next unless ($type eq 'user' || $type eq 'group'); |
14 |
my @attrs = (); |
15 |
- if ($type eq 'user') |
16 |
+ if (($type eq 'user') || ($key eq 'admin')) |
17 |
{ |
18 |
my $name = $acct->prop('FirstName') . " " . $acct->prop('LastName'); |
19 |
utf8::upgrade($name); |
20 |
--- e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/50users.admin_user 2010-01-30 19:45:06.000000000 +0100 |
21 |
+++ e-smith-ldap-5.2.0/root/etc/e-smith/templates/home/e-smith/db/ldap/ldif/50users 2010-01-30 19:49:33.000000000 +0100 |
22 |
@@ -1,5 +1,7 @@ |
23 |
{ |
24 |
- foreach my $user ($a->users) |
25 |
+ my @users = $a->users; |
26 |
+ push (@users,$a->get('admin')); |
27 |
+ foreach my $user (@users) |
28 |
{ |
29 |
my $key = $user->key; |
30 |
my $first = $user->prop('FirstName') || ''; |
31 |
|