--- loncom/lond 2004/03/22 09:16:26 1.178.2.10 +++ loncom/lond 2004/03/22 10:02:24 1.178.2.12 @@ -2,7 +2,7 @@ # The LearningOnline Network # lond "LON Daemon" Server (port "LOND" 5663) # -# $Id: lond,v 1.178.2.10 2004/03/22 09:16:26 foxr Exp $ +# $Id: lond,v 1.178.2.12 2004/03/22 10:02:24 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -53,7 +53,7 @@ my $DEBUG = 1; # Non zero to ena my $status=''; my $lastlog=''; -my $VERSION='$Revision: 1.178.2.10 $'; #' stupid emacs +my $VERSION='$Revision: 1.178.2.12 $'; #' stupid emacs my $remoteVERSION; my $currenthostid; my $currentdomainid; @@ -254,7 +254,7 @@ sub TieUserHash { # Tie the database. my %hash; - if(tie(%hash, 'GDBM_FILE', "$proname/$namespace.db", + if(tie(%hash, 'GDBM_File', "$proname/$namespace.db", $how, 0640)) { return \%hash; } @@ -3900,11 +3900,14 @@ sub subsqlreply { sub propath { my ($udom,$uname)=@_; + Debug("Propath:$udom:$uname"); $udom=~s/\W//g; $uname=~s/\W//g; + Debug("Propath2:$udom:$uname"); my $subdir=$uname.'__'; $subdir =~ s/(.)(.)(.).*/$1\/$2\/$3/; my $proname="$perlvar{'lonUsersDir'}/$udom/$subdir/$uname"; + Debug("Propath returning $proname"); return $proname; } @@ -4162,7 +4165,7 @@ sub PasswordPath { my $user = shift; my $path = &propath($domain, $user); - my $path .= "/passwd"; + $path .= "/passwd"; return $path; } @@ -4181,8 +4184,10 @@ sub PasswordFilename { my $domain = shift; my $user = shift; - my $path = PasswordPath($domain, $user); + Debug ("PasswordFilename called: dom = $domain user = $user"); + my $path = PasswordPath($domain, $user); + Debug("PasswordFilename got path: $path"); if(-e $path) { return $path; } else {