/[smeserver]/rpms/e-smith-samba/sme8/e-smith-samba-2.2.0-create_samba_data_in_event.patch
ViewVC logotype

Annotation of /rpms/e-smith-samba/sme8/e-smith-samba-2.2.0-create_samba_data_in_event.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Nov 30 22:09:40 2010 UTC (13 years, 11 months ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-samba-2_2_0-47_el5_sme, e-smith-samba-2_2_0-52_el5_sme, e-smith-samba-2_2_0-49_el5_sme, e-smith-samba-2_2_0-40_el5_sme, e-smith-samba-2_2_0-43_el5_sme, e-smith-samba-2_2_0-44_el5_sme, e-smith-samba-2_2_0-63_el5_sme, e-smith-samba-2_2_0-61_el5_sme, e-smith-samba-2_2_0-57_el5_sme, e-smith-samba-2_2_0-54_el5_sme, e-smith-samba-2_2_0-41_el5_sme, e-smith-samba-2_2_0-55_el5_sme, e-smith-samba-2_2_0-46_el5_sme, e-smith-samba-2_2_0-53_el5_sme, e-smith-samba-2_2_0-50_el5_sme, e-smith-samba-2_2_0-58_el5_sme, e-smith-samba-2_2_0-56_el5_sme, e-smith-samba-2_2_0-51_el5_sme, e-smith-samba-2_2_0-42_el5_sme, e-smith-samba-2_2_0-65_el5_sme, e-smith-samba-2_2_0-64_el5_sme, e-smith-samba-2_2_0-60_el5_sme, e-smith-samba-2_2_0-62_el5_sme, e-smith-samba-2_2_0-45_el5_sme, e-smith-samba-2_2_0-48_el5_sme, e-smith-samba-2_2_0-66_el5_sme, e-smith-samba-2_2_0-59_el5_sme, HEAD
* Tue Nov 30 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2-0-40.sme
- Create samba account during event for machine [SME: 6418]

1 vip-ire 1.1 diff -Nur -x '*.orig' -x '*.rej' e-smith-samba-2.2.0/root/etc/e-smith/events/actions/create-machine-account mezzanine_patched_e-smith-samba-2.2.0/root/etc/e-smith/events/actions/create-machine-account
2     --- e-smith-samba-2.2.0/root/etc/e-smith/events/actions/create-machine-account 2010-11-30 23:07:57.000000000 +0100
3     +++ mezzanine_patched_e-smith-samba-2.2.0/root/etc/e-smith/events/actions/create-machine-account 2010-11-30 23:07:41.000000000 +0100
4     @@ -121,6 +121,8 @@
5     "$machineName"
6     ) == 0 or ( $x = $ldapauth ne 'enabled' ? $x : 255, warn "Failed to create (ldap) account $machineName.\n" );
7    
8     +warn "create-machine-account $machineName: Locking account\n";
9     +
10     system("/usr/sbin/cpu", "-C/etc/cpu-system.conf", "usermod",
11     "--userbase=ou=Computers,$base",
12     "-o",
13     @@ -128,14 +130,11 @@
14     "$machineName"
15     ) == 0 or ( $x = $ldapauth ne 'enabled' ? $x : 255, warn "Failed locking (ldap) password for $machineName\n" );
16    
17     -warn "create-machine-account $machineName: Locking account\n";
18     -
19     -# warn "create-machine-account $machineName: Creating smbpasswd account\n";
20     -#
21     -# Samba adds the smbpasswd account after it calls this script.
22     -# However, we may want to do this if we call this script directly
23     -#
24     -# system("/usr/bin/smbpasswd", "-a", "-m", "$machineName") == 0
25     -# or warn "Could not create smb password entry for $machineName\n";
26     +if ($ldapauth ne 'enabled')
27     +{
28     + warn "create-machine-account $machineName: Creating smbpasswd account\n";
29    
30     + system("/usr/bin/smbpasswd", "-a", "-m", "$machineName") == 0
31     + or warn "Could not create smb password entry for $machineName\n";
32     +}
33     exit ($x);

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed