--- rpms/e-smith-samba/sme8/e-smith-samba-2.2.0-enable-cpu.patch 2010/11/02 16:57:29 1.1 +++ rpms/e-smith-samba/sme8/e-smith-samba-2.2.0-enable-cpu.patch 2010/11/02 19:09:27 1.3 @@ -25,11 +25,11 @@ diff -up e-smith-samba-2.2.0/root/etc/e- - "-s", "/bin/false", - "$machineName" - ) == 0 or die "Failed to create account $machineName.\n"; -+if ($domainauth eq 'enabled') ++if ($ldapauth eq 'enabled') +{ + system( + "/usr/sbin/cpu", "-C/etc/cpu-system.conf", "useradd", -+ "--usebase=ou=Computers,$base", ++ "--userbase=ou=Computers,$base", + "-c", "Hostname account for $machineName", + "-o", + "-d", "/noexistingpath", @@ -40,7 +40,7 @@ diff -up e-smith-samba-2.2.0/root/etc/e- + warn "create-machine-account $machineName: Locking account\n"; + + system("/usr/sbin/cpu", "-C/etc/cpu-system.conf", "usermod", -+ "--usebase=ou=Computers,$base", ++ "--userbase=ou=Computers,$base", + "-o", + "-L", + "$machineName"