diff options
author | Volker Lendecke <vl@samba.org> | 2015-03-12 13:18:34 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2015-03-17 11:30:51 +0100 |
commit | 89052936aee34af841fea230c92e133ad28e67c6 (patch) | |
tree | 47f0870a9354735ed5c08b2886458ddcfcbf92a8 /examples | |
parent | e3d2e6a288e35cf2037a3714ef3caf3933390d24 (diff) | |
download | samba-89052936aee34af841fea230c92e133ad28e67c6.tar.gz |
Remove ntdb from scripts
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/misc/adssearch.pl | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/examples/misc/adssearch.pl b/examples/misc/adssearch.pl index 02c4464abba..13a85bede98 100755 --- a/examples/misc/adssearch.pl +++ b/examples/misc/adssearch.pl @@ -42,13 +42,11 @@ my $rebind_url; my $tdbdump = "/usr/bin/tdbdump"; -my $ntdbdump = "/usr/bin/ntdbdump"; my $testparm = "/usr/bin/testparm"; my $net = "/usr/bin/net"; my $dig = "/usr/bin/dig"; my $nmblookup = "/usr/bin/nmblookup"; my $secrets_tdb = "/etc/samba/secrets.tdb"; -my $secrets_ntdb = "/etc/samba/secrets.ntdb"; my $klist = "/usr/bin/klist"; my $kinit = "/usr/bin/kinit"; my $workgroup = ""; @@ -725,21 +723,13 @@ sub get_machine_password { my $workgroup = shift || ""; $workgroup = uc($workgroup); - my ($found, $tmp, $dbdump, $db); - if (-r $secrets_ntdb) { - -x $ntdbdump || die "ntdbdump is not installed. cannot proceed autodetection\n"; - $dbdump = $ntdbdump; - $db = $secrets_ntdb; - } else { - -x $tdbdump || die "tdbdump is not installed. cannot proceed autodetection\n"; - -r $secrets_tdb || die "cannot read $secrets_tdb. cannot proceed autodetection\n"; - $dbdump = $tdbdump; - $db = $secrets_tdb; - } + my ($found, $tmp); + -x $tdbdump || die "tdbdump is not installed. cannot proceed autodetection\n"; + -r $secrets_tdb || die "cannot read $secrets_tdb. cannot proceed autodetection\n"; # get machine-password my $key = sprintf("SECRETS/MACHINE_PASSWORD/%s", $workgroup); - open(SECRETS,"$dbdump $db |"); + open(SECRETS,"$tdbdump $secrets_tdb |"); while(my $line = <SECRETS>) { chomp($line); if ($found) { |