[LON-CAPA-cvs] cvs: loncom /auth lonauth.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 19 Jan 2006 22:14:40 -0000


albertel		Thu Jan 19 17:14:40 2006 EDT

  Modified files:              
    /loncom/auth	lonauth.pm 
  Log:
  - default to no remote control BUG#4337
  
  
Index: loncom/auth/lonauth.pm
diff -u loncom/auth/lonauth.pm:1.72 loncom/auth/lonauth.pm:1.73
--- loncom/auth/lonauth.pm:1.72	Tue Nov 15 12:55:03 2005
+++ loncom/auth/lonauth.pm	Thu Jan 19 17:14:38 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # User Authentication Module
 #
-# $Id: lonauth.pm,v 1.72 2005/11/15 17:55:03 www Exp $
+# $Id: lonauth.pm,v 1.73 2006/01/19 22:14:38 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -114,6 +114,8 @@
     my %userenv=Apache::lonnet::dump('environment',$domain,$username);
     my ($tmp) = keys(%userenv);
     if ($tmp !~ /^(con_lost|error|no_such_host)/i) {
+	# default remote control to off
+	if ($userenv{'remote'} ne 'on') { $userenv{'remote'} = 'off'; }
 	foreach my $key (keys(%userenv)) {
 	    $userenv.="environment.$key=$userenv{$key}\n";
 	}