/[smeserver]/rpms/e-smith-samba+ldap/sme7/e-smith-samba+ldap-2.2.0-root_passwd_for_samba.patch
ViewVC logotype

Annotation of /rpms/e-smith-samba+ldap/sme7/e-smith-samba+ldap-2.2.0-root_passwd_for_samba.patch

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


Revision 1.1 - (hide annotations) (download)
Thu Oct 23 15:42:54 2008 UTC (16 years, 1 month ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-samba+ldap-2_0_0-7_el4_sme, e-smith-samba+ldap-2_0_0-6_el4_sme, e-smith-samba+ldap-2_0_0-5_el4_sme, HEAD
Add ldap admin password in secret.tdb

1 vip-ire 1.1 --- e-smith-samba+ldap-2.2.0/root/etc/e-smith/events/actions/update-domain-group-maps.root_passwd_for_samba 2008-10-21 18:34:14.000000000 +0200
2     +++ e-smith-samba+ldap-2.2.0/root/etc/e-smith/events/actions/update-domain-group-maps 2008-10-21 18:37:03.000000000 +0200
3     @@ -5,6 +5,7 @@
4     use strict;
5     use Errno;
6     use esmith::AccountsDB;
7     +use esmith::util;
8    
9     # events: console-save, group-modify-samba, group-create, workgroup-update
10     my $debug = "--debuglevel=1";
11     @@ -17,6 +18,8 @@
12     rename '/etc/samba/secrets.tdb','/etc/samba/secrets.'.time;
13     rename '/var/cache/samba/gencache.tdb','/var/cache/samba/gencache.'.time;
14     rename '/var/cache/samba/wins.dat','/var/cache/samba/wins.'.time;
15     + my $ldap_pw = esmith::util::LdapPassword();
16     + system("/usr/bin/smbpasswd -w $ldap_pw");
17     $g = `/usr/bin/net getlocalsid`;
18     $g =~ /SID.*is: (.+)/ or die "Could not get current sid\n";
19     }

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