/[smeserver]/rpms/e-smith-samba/sme7/e-smith-samba-1.14.0-getlocalsid.patch
ViewVC logotype

Contents of /rpms/e-smith-samba/sme7/e-smith-samba-1.14.0-getlocalsid.patch

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


Revision 1.2 - (show annotations) (download)
Sat Dec 15 16:01:18 2007 UTC (16 years, 10 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Import on branch sme7 of package e-smith-samba-1.14.1-1.el4.sme.src.rpm

1 diff -Nur -x '*.orig' -x '*.rej' e-smith-samba-1.14.0/root/etc/e-smith/events/actions/update-domain-group-maps mezzanine_patched_e-smith-samba-1.14.0/root/etc/e-smith/events/actions/update-domain-group-maps
2 --- e-smith-samba-1.14.0/root/etc/e-smith/events/actions/update-domain-group-maps 2005-03-14 13:48:48.000000000 +1100
3 +++ mezzanine_patched_e-smith-samba-1.14.0/root/etc/e-smith/events/actions/update-domain-group-maps 2006-06-30 09:51:46.108909344 +1000
4 @@ -13,7 +13,13 @@
5 my $a = esmith::AccountsDB->open_ro or die "Couldn't open accounts db\n";
6
7 my $g = `net getlocalsid`;
8 -$g =~ /SID.*is: (.+)/ or die "Could not get current sid\n";
9 +unless ($g =~ /SID.*is: (.+)/) {
10 + unlink '/etc/samba/secrets.tdb';
11 + unlink '/var/cache/samba/gencache.tdb';
12 + unlink '/var/cache/samba/wins.dat';
13 + $g = `net getlocalsid`;
14 + $g =~ /SID.*is: (.+)/ or die "Could not get current sid\n";
15 +}
16 my $local_sid = $1;
17
18 my %mappings = (

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