[LON-CAPA-cvs] cvs: loncom(version_1_3_2_nsdl) /auth lonacc.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 21 Feb 2005 18:22:04 -0000
albertel Mon Feb 21 13:22:04 2005 EDT
Modified files: (Branch: version_1_3_2_nsdl)
/loncom/auth lonacc.pm
Log:
- nsdl branch needs and fixes
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.60 loncom/auth/lonacc.pm:1.60.2.1
--- loncom/auth/lonacc.pm:1.60 Fri Jan 28 04:30:40 2005
+++ loncom/auth/lonacc.pm Mon Feb 21 13:22:04 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Cookie Based Access Handler
#
-# $Id: lonacc.pm,v 1.60 2005/01/28 09:30:40 albertel Exp $
+# $Id: lonacc.pm,v 1.60.2.1 2005/02/21 18:22:04 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -52,6 +52,9 @@
my $r = shift;
my $requrl=$r->uri;
my %cookies=CGI::Cookie->parse($r->header_in('Cookie'));
+ if ($r->header_in('User-Agent')=~/NSDL\_Search\_Bot/) {
+ return OK;
+ }
my $lonid=$cookies{'lonID'};
my $cookie;
if ($lonid) {
@@ -185,17 +188,17 @@
}
# -------------------------------------------------------------- Not authorized
$requrl=~/\.(\w+)$/;
- if ((&Apache::loncommon::fileembstyle($1) eq 'ssi') ||
- ($requrl=~/^\/adm\/(roles|logout|email|menu|remote)/) ||
- ($requrl=~m|^/prtspool/|)) {
+# if ((&Apache::loncommon::fileembstyle($1) eq 'ssi') ||
+# ($requrl=~/^\/adm\/(roles|logout|email|menu|remote)/) ||
+# ($requrl=~m|^/prtspool/|)) {
# -------------------------- Store where they wanted to go and get login screen
$ENV{'request.querystring'}=$r->args;
$ENV{'request.firsturl'}=$requrl;
return FORBIDDEN;
- } else {
+# } else {
# --------------------------------------------------------------------- Goodbye
- return HTTP_BAD_REQUEST;
- }
+# return HTTP_BAD_REQUEST;
+# }
}
1;