[LON-CAPA-cvs] cvs: loncom / lond
matthew
lon-capa-cvs@mail.lon-capa.org
Mon, 14 Jul 2003 13:43:42 -0000
matthew Mon Jul 14 09:43:42 2003 EDT
Modified files:
/loncom lond
Log:
Bug 993: switching authentication types for users was not working properly
because the path to the logfile was specified improperly. We should
probably avoid hard coding paths in the future.
Index: loncom/lond
diff -u loncom/lond:1.131 loncom/lond:1.132
--- loncom/lond:1.131 Mon Jun 16 10:23:56 2003
+++ loncom/lond Mon Jul 14 09:43:42 2003
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.131 2003/06/16 14:23:56 albertel Exp $
+# $Id: lond,v 1.132 2003/07/14 13:43:42 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -73,7 +73,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.131 $'; #' stupid emacs
+my $VERSION='$Revision: 1.132 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid;
my $currentdomainid;
@@ -826,7 +826,7 @@
if ($pwdcorrect) {
my $execdir=$perlvar{'lonDaemons'};
&Debug("Opening lcpasswd pipeline");
- my $pf = IO::File->new("|$execdir/lcpasswd > /home/www/lcpasswd.log");
+ my $pf = IO::File->new("|$execdir/lcpasswd > $perlvar{'lonDaemons'}/logs/lcpasswd.log");
print $pf "$uname\n$npass\n$npass\n";
close $pf;
my $err = $?;
@@ -2026,7 +2026,7 @@
{
&Debug("Executing external: ".$execpath);
&Debug("user = ".$uname.", Password =". $npass);
- my $se = IO::File->new("|$execpath > /home/www/lcuseradd.log");
+ my $se = IO::File->new("|$execpath > $perlvar{'lonDaemons'}/logs/lcuseradd.log");
print $se "$uname\n";
print $se "$npass\n";
print $se "$npass\n";