[LON-CAPA-cvs] cvs: loncom / lond
raeburn
lon-capa-cvs@mail.lon-capa.org
Fri, 24 Sep 2004 14:15:04 -0000
raeburn Fri Sep 24 10:15:04 2004 EDT
Modified files:
/loncom lond
Log:
validate_user() assumes get_auth_type() always returns authtype and autharg, but get_auth_type() was only returning autharg for Kerberos auth.
Index: loncom/lond
diff -u loncom/lond:1.258 loncom/lond:1.259
--- loncom/lond:1.258 Tue Sep 14 16:18:41 2004
+++ loncom/lond Fri Sep 24 10:15:03 2004
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.258 2004/09/14 20:18:41 albertel Exp $
+# $Id: lond,v 1.259 2004/09/24 14:15:03 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -57,7 +57,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.258 $'; #' stupid emacs
+my $VERSION='$Revision: 1.259 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid="default";
my $currentdomainid;
@@ -5040,12 +5040,7 @@
Debug("Password info = $realpassword\n");
my ($authtype, $contentpwd) = split(/:/, $realpassword);
Debug("Authtype = $authtype, content = $contentpwd\n");
- my $availinfo = '';
- if($authtype eq 'krb4' or $authtype eq 'krb5') {
- $availinfo = $contentpwd;
- }
-
- return "$authtype:$availinfo";
+ return "$authtype:$contentpwd";
} else {
Debug("Returning nouser");
return "nouser";