--- loncom/lond 2000/12/13 16:41:43 1.31 +++ loncom/lond 2000/12/29 21:11:03 1.34 @@ -9,7 +9,7 @@ # 06/26 Scott Harrison # 06/29,06/30,07/14,07/15,07/17,07/20,07/25,09/18 Gerd Kortemeyer # 12/05 Scott Harrison -# 12/05,12/13 Gerd Kortemeyer +# 12/05,12/13,12/29 Gerd Kortemeyer # # based on "Perl Cookbook" ISBN 1-56592-243-3 # preforker - server who forks first @@ -477,6 +477,8 @@ sub make_new_child { my ($cmd,$udom,$uname,$upass,$npass)=split(/:/,$userinput); chomp($npass); + $upass=&unescape($upass); + $npass=&unescape($npass); my $proname=propath($udom,$uname); my $passfilename="$proname/passwd"; if (-e $passfilename) { @@ -511,6 +513,7 @@ sub make_new_child { my ($cmd,$udom,$uname,$umode,$npass)=split(/:/,$userinput); chomp($npass); + $npass=&unescape($npass); my $proname=propath($udom,$uname); my $passfilename="$proname/passwd"; if (-e $passfilename) { @@ -530,11 +533,10 @@ sub make_new_child { } } unless ($fperror) { - if ($umode eq 'none') { - } elsif ($umode eq 'kerberos') { + if ($umode eq 'krb4') { { my $pf = IO::File->new(">$passfilename"); - print $pf "kerberos:$npass\n"; + print $pf "krb4:$npass\n"; } print $client "ok\n"; } elsif ($umode eq 'internal') {