Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

Location:
vendor/current/examples/misc
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/examples/misc/adssearch.pl

    r414 r988  
    4343
    4444my $tdbdump     = "/usr/bin/tdbdump";
     45my $ntdbdump    = "/usr/bin/ntdbdump";
    4546my $testparm    = "/usr/bin/testparm";
    4647my $net         = "/usr/bin/net";
     
    4849my $nmblookup   = "/usr/bin/nmblookup";
    4950my $secrets_tdb = "/etc/samba/secrets.tdb";
     51my $secrets_ntdb = "/etc/samba/secrets.ntdb";
    5052my $klist       = "/usr/bin/klist";
    5153my $kinit       = "/usr/bin/kinit";
     
    724726        $workgroup = uc($workgroup);
    725727
    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        }
    729739
    730740        # get machine-password
    731741        my $key = sprintf("SECRETS/MACHINE_PASSWORD/%s", $workgroup);
    732         open(SECRETS,"$tdbdump $secrets_tdb |");
     742        open(SECRETS,"$dbdump $db |");
    733743        while(my $line = <SECRETS>) {
    734744                chomp($line);
  • vendor/current/examples/misc/wall.perl

    r746 r988  
    1 #!/usr/bin/perl
     1#!/usr/local/bin/perl
    22#
    33#@(#) smb-wall.pl Description:
Note: See TracChangeset for help on using the changeset viewer.