[LON-CAPA-cvs] cvs: loncom / lond
raeburn
raeburn at source.lon-capa.org
Sat Jun 28 23:22:43 EDT 2014
raeburn Sun Jun 29 03:22:43 2014 EDT
Modified files:
/loncom lond
Log:
- krb5_init_ets is undefined symbol in Krb5.so on RHEL7, CentOS7 etc.
Index: loncom/lond
diff -u loncom/lond:1.510 loncom/lond:1.511
--- loncom/lond:1.510 Mon Jun 9 16:51:47 2014
+++ loncom/lond Sun Jun 29 03:22:43 2014
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.510 2014/06/09 16:51:47 raeburn Exp $
+# $Id: lond,v 1.511 2014/06/29 03:22:43 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -61,7 +61,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.510 $'; #' stupid emacs
+my $VERSION='$Revision: 1.511 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid="default";
my $currentdomainid;
@@ -6594,10 +6594,22 @@
# my $tmpsnum=0; # Now global
#---------------------------------------------------- kerberos 5 initialization
&Authen::Krb5::init_context();
- unless (($dist eq 'fedora5') || ($dist eq 'fedora4') ||
- ($dist eq 'fedora6') || ($dist eq 'suse9.3') ||
- ($dist eq 'suse12.2') || ($dist eq 'suse12.3') ||
- ($dist eq 'suse13.1')) {
+
+ my $no_ets;
+ if ($dist =~ /^(?:centos|rhes)(\d+)$/) {
+ if ($1 >= 7) {
+ $no_ets = 1;
+ }
+ } elsif ($dist =~ /^suse(\d+\.\d+)$/) {
+ if (($1 eq '9.3') || ($1 >= 12.2)) {
+ $no_ets = 1;
+ }
+ } elsif ($dist =~ /^fedora(\d+)$/) {
+ if ($1 < 7) {
+ $no_ets = 1;
+ }
+ }
+ unless ($no_ets) {
&Authen::Krb5::init_ets();
}
More information about the LON-CAPA-cvs
mailing list