[LON-CAPA-cvs] cvs: loncom / lond

foxr lon-capa-cvs@mail.lon-capa.org
Mon, 11 Oct 2004 10:58:29 -0000


foxr		Mon Oct 11 06:58:29 2004 EDT

  Modified files:              
    /loncom	lond 
  Log:
  Fix defect in rolesput that prevented home dir and public_html
  of user being granted author privilege from being created by
  giving bad parameters to lchtmldir
  
  
  
Index: loncom/lond
diff -u loncom/lond:1.259 loncom/lond:1.260
--- loncom/lond:1.259	Fri Sep 24 10:15:03 2004
+++ loncom/lond	Mon Oct 11 06:58:28 2004
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.259 2004/09/24 14:15:03 raeburn Exp $
+# $Id: lond,v 1.260 2004/10/11 10:58:28 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -57,7 +57,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.259 $'; #' stupid emacs
+my $VERSION='$Revision: 1.260 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -2448,8 +2448,11 @@
 	my @pairs=split(/\&/,$what);
 	foreach my $pair (@pairs) {
 	    my ($key,$value)=split(/=/,$pair);
+	    my $pass_entry = &get_auth_type($udom, $uname);
+	    my ($auth_type,$pwd)  = split(/:/, $pass_entry);
+	    $auth_type = $auth_type.":";
 	    &manage_permissions($key, $udom, $uname,
-			       &get_auth_type( $udom, $uname));
+			       $auth_type);
 	    $hashref->{$key}=$value;
 	}
 	if (untie($hashref)) {