#!/usr/bin/perl -w
#
# Module for TWiki Enterprise Collaboration Platform, http://TWiki.org/
#
# Copyright (C) 2012-2021 Peter Thoeny, peter09[at]thoeny.org and
# TWiki Contributors.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version. For
# more details read LICENSE in the root of this distribution.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# usage:
#   # perl ldapdump ./cache.db > dump.txt

use DB_File;
use Data::Dumper;

my $cacheFile = $ARGV[0] || die "Please specify cache.db file";
my %data;
tie %data, 'DB_File', $cacheFile, O_RDONLY, 0664
or die "Cannot open file $cacheFile: $!";
print Dumper( \%data );

