[LON-CAPA-cvs] cvs: loncom /build make_domain_coordinator.pl

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 01 Jun 2007 05:17:58 -0000


albertel		Fri Jun  1 01:17:58 2007 EDT

  Modified files:              
    /loncom/build	make_domain_coordinator.pl 
  Log:
  - more that alpha numeric now allowed
  
  
Index: loncom/build/make_domain_coordinator.pl
diff -u loncom/build/make_domain_coordinator.pl:1.11 loncom/build/make_domain_coordinator.pl:1.12
--- loncom/build/make_domain_coordinator.pl:1.11	Sun Oct  8 19:05:18 2006
+++ loncom/build/make_domain_coordinator.pl	Fri Jun  1 01:17:58 2007
@@ -11,7 +11,7 @@
 # The LearningOnline Network
 # make_domain_coordinator.pl - Make a domain coordinator on a system
 #
-# $Id: make_domain_coordinator.pl,v 1.11 2006/10/08 23:05:18 raeburn Exp $
+# $Id: make_domain_coordinator.pl,v 1.12 2007/06/01 05:17:58 albertel Exp $
 #
 # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
 #
@@ -113,7 +113,7 @@
 USERNAMEs for places like Mich State Univ, etc.
 
 The second argument specifies the domain of the computer
-coordinator and should consist of only alphanumeric characters.
+coordinator.
 
 =cut
 
@@ -128,14 +128,14 @@
 	"\n".'USERNAMEs for places like Mich State Univ, etc.'."\n");
 }
 my ($username,$domain)=(@ARGV); shift @ARGV; shift @ARGV;
-unless ($username=~/^\w+$/ and $username!~/\_/) {
+if ($username=~/$LONCAPA::not_username_re/) {
     die('**** ERROR **** '.
-	'Username '.$username.' must consist only of alphanumeric characters'.
+	'Username '.$username.' must consist only of - . and alphanumeric characters'.
 	"\n");
 }
-unless ($domain=~/^\w+$/ and $domain!~/\_/) {
+if ($domain=~/$LONCAPA::not_domain_re/) {
     die('**** ERROR **** '.
-	'Domain '.$domain.' must consist only of alphanumeric characters'.
+	'Domain '.$domain.' must consist only of - . and alphanumeric charaters and '.
 	"\n");
 }