SID-02467: CasLoginContrib throwing error after CAS upgrade to TLS v1.2
| Status: |
Asked |
TWiki version: |
6.0.0 |
Perl version: |
5.10.1 |
| Category: |
CasLoginContrib |
Server OS: |
Centos 6.8 |
Last update: |
4 years ago |
After our university upgraded their certs to TLS 1.2, we lost the ability to authenticate via CAS with
CasLoginContrib.
After authenticating, TWiki just shows a blank page at: [Our TWiki site]/do/login?ticket=ST-162938423423-21xBTzduwE3232EPdWSCAc9F
Checking the logs, we get the error: " login: Use of uninitialized value $line in pattern match (m//) at /usr/share/perl5/vendor_perl/AuthCAS.pm line 385. " for each login attempt.
I see there's been one update to
CasLoginContrib in 2016 since our installation, which we can try, but I'm wondering if there's been anyone else who's found a solution to this?
Thanks!
--
TWiki Guest - 2021-03-31
Discussion and Answer
I am not sure, I am not familiar with this contrib. You could try adding the SSL version to see if this fixes the issue.
In your
lib/LocalSite.cfg add this:
$TWiki::cfg{CAS}{SSL_version} = 'SSLv3';
Change
lib/TWiki/LoginManager/CasLogin.pm: Add the
SSL_version to the beginning of
sub login:
sub login {
my( $this, $query, $twikiSession ) = @_;
my $twiki = $this->{twiki};
my $casUrl = $TWiki::cfg{CAS}{casUrl};
my $CAFile = $TWiki::cfg{CAS}{CAFile};
my $SSL_version = $TWiki::cfg{CAS}{SSL_version};
my $cas = new AuthCAS(casUrl => $casUrl,
CAFile => $CAFile,
SSL_version => $SSL_version
);
--
Peter Thoeny - 2021-04-01
I released a new
CasLoginContrib version that includes the 2016 changes (they were in the package, but missing in the repository), and I added the
$TWiki::cfg{CAS}{SSL_version} feature. Not sure if this fixes your issue, give it a try. I have no way testing.
--
Peter Thoeny - 2021-04-01
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.