[LON-CAPA-cvs] cvs: loncom /auth checkauthen.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 30 Aug 2006 21:35:10 -0000
albertel Wed Aug 30 17:35:10 2006 EDT
Modified files:
/loncom/auth checkauthen.pm
Log:
- allow specifying the fall through authen type
Index: loncom/auth/checkauthen.pm
diff -u loncom/auth/checkauthen.pm:1.5 loncom/auth/checkauthen.pm:1.6
--- loncom/auth/checkauthen.pm:1.5 Mon Jun 5 11:08:48 2006
+++ loncom/auth/checkauthen.pm Wed Aug 30 17:35:08 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# checks for a cokkie to authenticate a user
#
-# $Id: checkauthen.pm,v 1.5 2006/06/05 15:08:48 albertel Exp $
+# $Id: checkauthen.pm,v 1.6 2006/08/30 21:35:08 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -41,6 +41,9 @@
}
my $fail = FORBIDDEN;
if ($r->dir_config('lonOtherAuthen') eq 'yes') {
+ if (defined($r->dir_config('lonOtherAuthenType'))) {
+ $r->auth_type($r->dir_config('lonOtherAuthenType'));
+ }
#&Apache::lonnet::logthis("other authen");
$fail = DECLINED;
}
@@ -65,7 +68,6 @@
return OK;
}
}
-
return $fail;
}