version 1.1, 2002/03/02 03:49:18
|
version 1.6, 2002/09/09 17:57:33
|
Line 6
|
Line 6
|
|
|
make_domain_coordinator.pl - Make a domain coordinator on a LON-CAPA system |
make_domain_coordinator.pl - Make a domain coordinator on a LON-CAPA system |
|
|
|
=cut |
|
|
|
# The LearningOnline Network |
|
# make_domain_coordinator.pl - Make a domain coordinator on a system |
|
# |
|
# $Id$ |
|
# |
|
# This file is part of the LearningOnline Network with CAPA (LON-CAPA). |
|
# |
|
# LON-CAPA 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 of the License, or |
|
# (at your option) any later version. |
|
# |
|
# LON-CAPA 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 should have received a copy of the GNU General Public License |
|
# along with LON-CAPA; if not, write to the Free Software |
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
# |
|
# /home/httpd/html/adm/gpl.txt |
|
# |
|
# http://www.lon-capa.org/ |
|
# |
|
# YEAR=2002 |
|
# 3/1,3/3,3/4 Scott Harrison |
|
# |
|
### |
|
|
|
=pod |
|
|
=head1 DESCRIPTION |
=head1 DESCRIPTION |
|
|
Automates the steps for domain coordinator creation. This |
Automates the steps for domain coordinator creation. This |
Line 44 Set roles.hist and roles.db
|
Line 78 Set roles.hist and roles.db
|
|
|
=cut |
=cut |
|
|
# The LearningOnline Network |
|
# make_domain_coordinator.pl - Make a domain coordinator on a system |
|
# |
|
# $Id$ |
|
# |
|
# Copyright Michigan State University Board of Trustees |
|
# |
|
# This file is part of the LearningOnline Network with CAPA (LON-CAPA). |
|
# |
|
# LON-CAPA 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 of the License, or |
|
# (at your option) any later version. |
|
# |
|
# LON-CAPA 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 should have received a copy of the GNU General Public License |
|
# along with LON-CAPA; if not, write to the Free Software |
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
# |
|
# /home/httpd/html/adm/gpl.txt |
|
# |
|
# http://www.lon-capa.org/ |
|
# |
|
# YEAR=2002 |
|
# 3/1 Scott Harrison |
|
|
|
# NOTE: I am interspersing the manual procedure with the automation. |
# NOTE: I am interspersing the manual procedure with the automation. |
# To see the manual procedure, do perldoc ./make_domain_coordinator.pl |
# To see the manual procedure, do perldoc ./make_domain_coordinator.pl |
|
|
Line 97 There are no flags to this script.
|
Line 101 There are no flags to this script.
|
|
|
usage: make_domain_coordinator.pl [USERNAME] [DOMAIN] |
usage: make_domain_coordinator.pl [USERNAME] [DOMAIN] |
|
|
The password is accepted through standard input. |
The password is accepted through standard input |
|
and should only consist of printable ASCII |
|
characters and be a string of length greater than 5 characters. |
|
|
The first argument |
The first argument |
specifies the user name of the domain coordinator and |
specifies the user name of the domain coordinator and |
should consist of only alphanumeric characters. |
should consist of only alphanumeric characters. |
|
|
The second argument specifies the password for the domain |
The second argument specifies the domain of the computer |
coordinator and should only consist of printable ASCII |
coordinator and should consist of only alphanumeric characters. |
characters and be a string of length greater than 5 characters. |
|
|
|
=cut |
=cut |
|
|
Line 125 unless ($domain=~/^\w+$/ and $domain!~/\
|
Line 130 unless ($domain=~/^\w+$/ and $domain!~/\
|
"\n"; |
"\n"; |
} |
} |
|
|
|
print "Password: "; $|=1; |
my $passwd=<>; # read in password from standard input |
my $passwd=<>; # read in password from standard input |
chomp($passwd); |
chomp($passwd); |
|
|
Line 157 You need to decide on three pieces of in
|
Line 163 You need to decide on three pieces of in
|
to create a domain coordinator. |
to create a domain coordinator. |
|
|
* USERNAME (kermit, albert, joe, etc) |
* USERNAME (kermit, albert, joe, etc) |
* DOMAIN (should be the same as lonDefDomain in /etc/httpd/conf/access.conf) |
* DOMAIN (should be the same as lonDefDomain in /etc/httpd/conf/loncapa.conf) |
* PASSWORD (don't tell me) |
* PASSWORD (don't tell me) |
|
|
The examples in these instructions will be based |
The examples in these instructions will be based |
Line 317 sub propath {
|
Line 323 sub propath {
|
|
|
=pod |
=pod |
|
|
AUTHOR |
=head1 AUTHOR |
|
|
Scott Harrison, harris41@msu.edu |
Scott Harrison, harris41@msu.edu |
|
|