Changeset 988 for vendor/current/examples/misc
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- Location:
- vendor/current/examples/misc
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/examples/misc/adssearch.pl
r414 r988 43 43 44 44 my $tdbdump = "/usr/bin/tdbdump"; 45 my $ntdbdump = "/usr/bin/ntdbdump"; 45 46 my $testparm = "/usr/bin/testparm"; 46 47 my $net = "/usr/bin/net"; … … 48 49 my $nmblookup = "/usr/bin/nmblookup"; 49 50 my $secrets_tdb = "/etc/samba/secrets.tdb"; 51 my $secrets_ntdb = "/etc/samba/secrets.ntdb"; 50 52 my $klist = "/usr/bin/klist"; 51 53 my $kinit = "/usr/bin/kinit"; … … 724 726 $workgroup = uc($workgroup); 725 727 726 my ($found, $tmp); 727 -x $tdbdump || die "tdbdump is not installed. cannot proceed autodetection\n"; 728 -r $secrets_tdb || die "cannot read $secrets_tdb. cannot proceed autodetection\n"; 728 my ($found, $tmp, $dbdump, $db); 729 if (-r $secrets_ntdb) { 730 -x $ntdbdump || die "ntdbdump is not installed. cannot proceed autodetection\n"; 731 $dbdump = $ntdbdump; 732 $db = $secrets_ntdb; 733 } else { 734 -x $tdbdump || die "tdbdump is not installed. cannot proceed autodetection\n"; 735 -r $secrets_tdb || die "cannot read $secrets_tdb. cannot proceed autodetection\n"; 736 $dbdump = $tdbdump; 737 $db = $secrets_tdb; 738 } 729 739 730 740 # get machine-password 731 741 my $key = sprintf("SECRETS/MACHINE_PASSWORD/%s", $workgroup); 732 open(SECRETS,"$ tdbdump $secrets_tdb |");742 open(SECRETS,"$dbdump $db |"); 733 743 while(my $line = <SECRETS>) { 734 744 chomp($line); -
vendor/current/examples/misc/wall.perl
r746 r988 1 #!/usr/ bin/perl1 #!/usr/local/bin/perl 2 2 # 3 3 #@(#) smb-wall.pl Description:
Note:
See TracChangeset
for help on using the changeset viewer.