#!/usr/bin/perl

eval 'exec /usr/bin/perl  -S $0 ${1+"$@"}'
    if 0; # not running under some shell

=head1 NAME

kolabcheckperm - Kolab permission checking tool

=head1 SYNOPSIS

B<kolabcheckperm>

=head1 COPYRIGHT AND AUTHORS

Copyright (c) 2004 Klaralvdalens Datakonsult AB

Written by Steffen Hansen <steffen@klaralvdalens-datakonsult.se>

=head1 LICENSE

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 2, or
(at your option) any later version.

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. See the GNU
General Public License for more details.

You can view the  GNU General Public License, online, at the GNU
Project's homepage; see <http://www.gnu.org/licenses/gpl.html>.

=cut

use strict;
use Kolab;
use Kolab::Util;
use Kolab::Conf;

Kolab::reloadConfig("/etc/kolab/kolab.globals");

exit( Kolab::Conf::checkPermissions>0?0:-1 );
