1 |
vip-ire |
1.1 |
diff -Nur e-smith-ibays-2.2.0/root/etc/e-smith/events/actions/ibay-modify e-smith-ibays-2.2.0_mod/root/etc/e-smith/events/actions/ibay-modify |
2 |
|
|
--- e-smith-ibays-2.2.0/root/etc/e-smith/events/actions/ibay-modify 2011-10-26 13:34:00.000000000 +0200 |
3 |
|
|
+++ e-smith-ibays-2.2.0_mod/root/etc/e-smith/events/actions/ibay-modify 2011-10-26 13:36:03.000000000 +0200 |
4 |
|
|
@@ -133,7 +133,7 @@ |
5 |
|
|
system("/usr/sbin/cpu", "-C/etc/cpu-system.conf", "usermod", "-L", $ibayName) == 0 |
6 |
|
|
or ( $x = $ldapauth ne 'enabled' ? $x : 255, warn "Error locking (ldap) account $ibayName" ); |
7 |
|
|
} |
8 |
|
|
-elsif ($event eq 'ibay-modify') |
9 |
|
|
+elsif ($event eq 'ibay-modify' and $ibayName ne 'Primary') |
10 |
|
|
{ |
11 |
|
|
#------------------------------------------------------------ |
12 |
|
|
# Modify ibay description in /etc/passwd using "usermod" |