diff options
author | Gerald Carter <jerry@samba.org> | 2003-12-04 21:59:20 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-12-04 21:59:20 +0000 |
commit | dc058d980b369578b56c53972e8033fc77ee0b48 (patch) | |
tree | e7567c0106c01d92f908954578cc914a5455df92 /examples/LDAP/smbldap-tools/smbldap-groupdel.pl | |
parent | b47a3a920a9a03ecc3e71d6594384cae674b6775 (diff) | |
download | samba-dc058d980b369578b56c53972e8033fc77ee0b48.tar.gz samba-dc058d980b369578b56c53972e8033fc77ee0b48.tar.bz2 samba-dc058d980b369578b56c53972e8033fc77ee0b48.zip |
updating top 0.8.2-1 of the smbldap tools
(This used to be commit b798f30f0a83ba00ebbe1b82983ca6690642ad02)
Diffstat (limited to 'examples/LDAP/smbldap-tools/smbldap-groupdel.pl')
-rwxr-xr-x | examples/LDAP/smbldap-tools/smbldap-groupdel.pl | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/examples/LDAP/smbldap-tools/smbldap-groupdel.pl b/examples/LDAP/smbldap-tools/smbldap-groupdel.pl index 89d0d993ac..0f5b0998da 100755 --- a/examples/LDAP/smbldap-tools/smbldap-groupdel.pl +++ b/examples/LDAP/smbldap-tools/smbldap-groupdel.pl @@ -1,5 +1,7 @@ #!/usr/bin/perl -w +# $Id: smbldap-groupdel.pl,v 1.1.6.3 2003/12/04 21:59:19 jerry Exp $ +# # This code was developped by IDEALX (http://IDEALX.org/) and # contributors (their names can be found in the CONTRIBUTORS file). # @@ -30,23 +32,22 @@ use smbldap_tools; use smbldap_conf; ##################### - use Getopt::Std; my %Options; my $ok = getopts('?', \%Options); if ( (!$ok) || (@ARGV < 1) || ($Options{'?'}) ) { - print "Usage: $0 groupname\n"; - print " -? show this help message\n"; - exit (1); + print "Usage: $0 groupname\n"; + print " -? show this help message\n"; + exit (1); } my $_groupName = $ARGV[0]; my $dn_line; if (!defined($dn_line = get_group_dn($_groupName))) { - print "$0: group $_groupName doesn't exist\n"; - exit (6); + print "$0: group $_groupName doesn't exist\n"; + exit (6); } my $dn = get_dn_from_line($dn_line); @@ -56,7 +57,7 @@ group_del($dn); my $nscd_status = system "/etc/init.d/nscd status >/dev/null 2>&1"; if ($nscd_status == 0) { - system "/etc/init.d/nscd restart > /dev/null 2>&1"; + system "/etc/init.d/nscd restart > /dev/null 2>&1"; } #if (defined($dn_line = get_group_dn($_groupName))) { |