--- loncom/enrollment/Enrollment.pm 2004/03/18 00:24:57 1.11 +++ loncom/enrollment/Enrollment.pm 2004/03/18 16:46:28 1.12 @@ -1,5 +1,5 @@ # Automated Enrollment manager -# $Id: Enrollment.pm,v 1.11 2004/03/18 00:24:57 raeburn Exp $ +# $Id: Enrollment.pm,v 1.12 2004/03/18 16:46:28 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -242,9 +242,6 @@ sub update_LC { if ( ($authparam eq '') || (!defined($authparam)) ) { $authparam = $autharg; } - if ($auth =~ m/^krb/) { - $auth .= ':'.$authparam; - } if ( ($end eq '') || (!defined($end)) ) { $end = $enddate; } @@ -342,18 +339,22 @@ sub update_LC { } my $krbdefdom = ''; my $currentauth=&Apache::lonnet::queryauthenticate($uname,$dom); - if ($currentauth=~/^krb(4|5):/) { - $currentauth=~/^krb(4|5):(.*)/; - $krbdefdom=$1; + if ($currentauth=~/^(krb[45]):(.*)/) { + $currentauth = $1; + $krbdefdom = $2; } elsif ($currentauth=~ /^(unix|internal|localauth):/) { $currentauth = $1; } else { $$logmsg .= "Invalid authentication method $currentauth for $uname.".$linefeed; } # Report if authentication methods are different. - if ($currentauth ne $auth ) { - $$logmsg .= "Authentication mismatch for $uname - $currentauth in system, $auth based on information in classlist or default for this course.".$linefeed; - } + if ($currentauth ne $auth) { + $$logmsg .= "Authentication type mismatch for $uname - '$currentauth' in system, '$auth' based on information in classlist or default for this course.".$linefeed; + } elsif ($auth =~ m/^krb/) { + if ($krbdefdom ne $authparam) { + $$logmsg .= "Kerberos domain mismatch for $uname - '$krbdefdom' in system, '$authparam' based on information in classlist or default for this course.".$linefeed; + } + # Check user data if ($first ne $userenv{'firstname'} || $middle ne $userenv{'middlename'} ||