#-*- perl -*- # # Copyright (C) 2003,2004,2005,2006 Ken'ichi Fukamachi # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # # $FML: initpass.pm,v 1.3 2004/01/01 08:48:39 fukachan Exp $ # package FML::Command::Admin::initpass; use strict; use vars qw(@ISA @EXPORT @EXPORT_OK $AUTOLOAD); use Carp; use FML::Command::Admin::changepassword; @ISA = qw(FML::Command::Admin::changepassword); # Descriptions: initialize remote admin password of a new user. # Arguments: OBJ($self) OBJ($curproc) OBJ($command_context) # Side Effects: forward request to password module # Return Value: none sub process { my ($self, $curproc, $command_context) = @_; my $options = $command_context->get_options(); if ($options->[ 2 ]) { croak("wrong arguments"); } elsif ($options->[ 1 ] && $options->[ 0 ]) { # [0] = username # [1] = password(plaintext) $self->SUPER::process($curproc, $command_context); } else { croak("wrong arguments"); } } =head1 NAME FML::Command::Admin::initpass - initialize admin password (fml4 compatible) =head1 SYNOPSIS See C for more details. =head1 DESCRIPTION an alias of C. =head1 CODING STYLE See C on fml coding style guide. =head1 AUTHOR Ken'ichi Fukamachi =head1 COPYRIGHT Copyright (C) 2003,2004,2005,2006 Ken'ichi Fukamachi All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =head1 HISTORY FML::Command::Admin::initpass first appeared in fml8 mailing list driver package. See C for more details. =cut 1;