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 2006-12-07 09:12:27.000000000 -0700 |
3 |
+++ mezzanine_patched_e-smith-samba-1.14.0/root/etc/e-smith/events/actions/update-domain-group-maps 2006-12-07 09:01:36.000000000 -0700 |
4 |
@@ -14,9 +14,10 @@ |
5 |
|
6 |
my $g = `net getlocalsid`; |
7 |
unless ($g =~ /SID.*is: (.+)/) { |
8 |
- unlink '/etc/samba/secrets.tdb'; |
9 |
- unlink '/var/cache/samba/gencache.tdb'; |
10 |
- unlink '/var/cache/samba/wins.dat'; |
11 |
+ warn "Unable to determine SID. Clearning cache to see if it helps."; |
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 |
$g = `net getlocalsid`; |
16 |
$g =~ /SID.*is: (.+)/ or die "Could not get current sid\n"; |
17 |
} |