1 |
--- e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update.empty_group 2010-05-04 16:43:46.000000000 +0200 |
2 |
+++ e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update 2010-05-04 19:40:44.000000000 +0200 |
3 |
@@ -157,7 +157,8 @@ |
4 |
push @attrs, (mail => "$key\@$domain"); |
5 |
push @attrs, (gidNumber => $gid); |
6 |
push @attrs, (description => $desc) unless $desc =~ /^\s*$/; |
7 |
- push @attrs, (memberUid => \@members); |
8 |
+ push @attrs, (memberUid => \@members) |
9 |
+ unless ((scalar @members == 0) && ($event eq 'group-create')); |
10 |
} |
11 |
if (($event eq 'user-create') || ($event eq 'group-create')) |
12 |
{ |