61 |
+ "-d", "/noexistingpath", |
+ "-d", "/noexistingpath", |
62 |
+ "-s", "/bin/false", |
+ "-s", "/bin/false", |
63 |
+ "$machineName" |
+ "$machineName" |
64 |
+ ) == 0 or ( $x = 255, warn "Failed to create (ldap) account $machineName.\n" ); |
+ ) == 0 or ( $x = $ldapauth ne 'enabled ? $x : 255, warn "Failed to create (ldap) account $machineName.\n" ); |
65 |
+ |
+ |
66 |
+system("/usr/sbin/cpu", "-C/etc/cpu-system.conf", "usermod", |
+system("/usr/sbin/cpu", "-C/etc/cpu-system.conf", "usermod", |
67 |
+ "--userbase=ou=Computers,$base", |
+ "--userbase=ou=Computers,$base", |
68 |
+ "-o", |
+ "-o", |
69 |
+ "-L", |
+ "-L", |
70 |
+ "$machineName" |
+ "$machineName" |
71 |
+) == 0 or ( $x = 255, warn "Failed locking (ldap) password for $machineName\n" ); |
+) == 0 or ( $x = $ldapauth ne 'enabled ? $x : 255, warn "Failed locking (ldap) password for $machineName\n" ); |
72 |
+ |
+ |
73 |
+warn "create-machine-account $machineName: Locking account\n"; |
+warn "create-machine-account $machineName: Locking account\n"; |
74 |
+ |
+ |