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

raeburn raeburn at source.lon-capa.org
Sat Nov 12 14:37:40 EST 2011


raeburn		Sat Nov 12 19:37:40 2011 EDT

  Modified files:              
    /loncom/auth	loncacc.pm 
  Log:
  - Need to check machine ids not domains.
  
  
Index: loncom/auth/loncacc.pm
diff -u loncom/auth/loncacc.pm:1.58 loncom/auth/loncacc.pm:1.59
--- loncom/auth/loncacc.pm:1.58	Sat Nov 12 18:48:41 2011
+++ loncom/auth/loncacc.pm	Sat Nov 12 19:37:40 2011
@@ -2,7 +2,7 @@
 # Cookie Based Access Handler for Construction Area
 # (lonacc: 5/21/99,5/22,5/29,5/31 Gerd Kortemeyer)
 #
-# $Id: loncacc.pm,v 1.58 2011/11/12 18:48:41 raeburn Exp $
+# $Id: loncacc.pm,v 1.59 2011/11/12 19:37:40 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -194,7 +194,7 @@
 	my ($ownername,$ownerdom,$ownerhome) = &constructaccess($requrl,'setpriv');
         if (($ownername ne '') && ($ownerdom ne '') && ($ownerhome ne '')) {
             unless ($ownerhome eq 'no_host') {
-                my @hosts = &Apache::lonnet::current_machine_domains();
+                my @hosts = &Apache::lonnet::current_machine_ids();
                 if (grep(/^\Q$ownerhome\E$/, at hosts)) {
                     $allowed = 1;
                 }




More information about the LON-CAPA-cvs mailing list