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-userdisplay : user (posix,shadow,samba) display
27 use FindBin
qw($RealBin);
34 my $ok = getopts('?', \%Options);
36 if ( (!$ok) || (@ARGV < 1) || ($Options{'?'}) ) {
37 print "Usage: $0 [-?] username\n";
38 print " -? show this help message\n";
42 # Read only first @ARGV
45 my $lines = read_user($user);
46 if (!defined($lines)) {
47 print "$0: user $user doesn't exist\n";
55 ############################################################
59 smbldap-usershow.pl - Show a user account informations
63 smbldap-usershow.pl login
67 The smbldap-usershow.pl command displays the informations
68 associated with the login. The named user must exist.