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

raeburn raeburn@source.lon-capa.org
Sat, 11 Jun 2011 17:50:35 -0000


raeburn		Sat Jun 11 17:50:35 2011 EDT

  Modified files:              
    /loncom/auth	lonauth.pm 
  Log:
  - Check for "no_such_host" response.
  
  
Index: loncom/auth/lonauth.pm
diff -u loncom/auth/lonauth.pm:1.113 loncom/auth/lonauth.pm:1.114
--- loncom/auth/lonauth.pm:1.113	Fri Jun 10 01:21:36 2011
+++ loncom/auth/lonauth.pm	Sat Jun 11 17:50:35 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # User Authentication Module
 #
-# $Id: lonauth.pm,v 1.113 2011/06/10 01:21:36 raeburn Exp $
+# $Id: lonauth.pm,v 1.114 2011/06/11 17:50:35 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -274,7 +274,8 @@
     my $tmpinfo=Apache::lonnet::reply('tmpget:'.$form{'logtoken'},
                                       $form{'serverid'});
 
-    if (($tmpinfo=~/^error/) || ($tmpinfo eq 'con_lost')) {
+    if (($tmpinfo=~/^error/) || ($tmpinfo eq 'con_lost') || 
+        ($tmpinfo eq 'no_such_host')) {
 	&failed($r,'Information needed to verify your login information is missing, inaccessible or expired.',\%form);
         return OK;
     } else {