3 # This code was developped by IDEALX (http://IDEALX.org/) and
4 # contributors (their names can be found in the CONTRIBUTORS file).
6 # Copyright (C) 2001-2002 IDEALX
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
23 # Purpose of smbldap-groupshow : user (posix,shadow,samba) display
26 # . originally by David Le Corfec <david.le-corfec@IDEALX.com>
30 use FindBin
qw($RealBin);
36 my $ok = getopts('?', \%Options);
38 if ( (!$ok) || (@ARGV < 1) || ($Options{'?'}) ) {
39 print "Usage: $0 [-?] group\n";
40 print " -? show this help message\n";
44 # Read only first @ARGV
47 my $lines = read_group($group);
48 if (!defined($lines)) {
49 print "$0: group $group doesn't exist\n";
57 ############################################################
61 smbldap-groupshow.pl - Display group informations
65 smbldap-groupshow.pl groupname
69 The smbldap-groupshow.pl command displays informations
70 associated with the given group.