Re: Use of undefined constant MCRYPT_RIJNDAEL_128

3,542 views
Skip to first unread message

Thijs Kinkhorst

unread,
Sep 21, 2012, 6:53:44 AM9/21/12
to simple...@googlegroups.com, Dennis Beverloo
Hoi Dennis,

Op vrijdag 21 september 2012 12:44:40 schreef Dennis Beverloo:
> Our website has moved to a new server and now our SSO connection stopped
> working. I'm getting the following from the log:

> Sep 21 12:13:16 simplesamlphp ERROR [a4bd96be68]
> *SimpleSAML_Error_Exception: Error 8 - Use of undefined constant
> MCRYPT_RIJNDAEL_128 - assumed
> 'MCRYPT_RIJNDAEL_128'*

I think you're missing PHP's mcrypt module. On a Debian or Ubuntu system: apt-
get install php5-mcrypt and restart Apache. Probably similar on other
distributions. The PHP manual has instructions on how to enable that module.


Cheers,
Thijs


--
Thijs Kinkhorst <th...@uvt.nl> – LIS Unix

Universiteit van Tilburg – Library and IT Services • Postbus 90153, 5000 LE
Bezoekadres > Warandelaan 2 • Tel. 013 466 3035 • G 236 • http://www.uvt.nl
signature.asc

Tomi Salmi

unread,
Sep 21, 2012, 6:56:04 AM9/21/12
to simple...@googlegroups.com
Hi,

On 2012-09-21 13:44, Dennis Beverloo wrote:
> Our website has moved to a new server and now our SSO connection stopped working. I'm getting the following from the log:
>

Did you install PHP mcrypt extension to the new server, too?


Tomi Salmi
CSC/Funet

Marcin Calka

unread,
Feb 20, 2014, 7:12:18 AM2/20/14
to simple...@googlegroups.com
Thanks Thijst.
Same, here... I spend hours trying to figure it out and you can find out what is the problem only by applying DEBUG Logging in simpleSamlPHP.
So, If you ever have a problem with a blank page (/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp) that's most likely missing library
In this case mcrypt plugin

Thanks again

Marcin

On Friday, September 21, 2012 12:54:24 PM UTC+1, Dennis Beverloo wrote:
Mcrypt is installed and the problem is fixed. Guess I did have mcrypt installed on the old server.
Thanks for the help!

Op vrijdag 21 september 2012 13:25:11 UTC+2 schreef Dennis Beverloo het volgende:
@Thijs & Tomi,

I don't believe I had mcrypt installed on the old server and it worked fine then, but maybe I'm mistaken. We've moved to a server where we actually have less control of so I've asked the administrator to install mcrypt anyway to see if that indeed solves the problem.

The documentation states that the mcrypt module is optional. In what circumstances is it necessary to have it installed?


Op vrijdag 21 september 2012 12:44:40 UTC+2 schreef Dennis Beverloo het volgende:
Our website has moved to a new server and now our SSO connection stopped working. I'm getting the following from the log:

<...>

I'm guessing something's wrong with decrypting the incoming message from the IdP but I can't figure out what it is. I've moved the certificates from the old server to the new server.
What could've changed when moving to the new server? How do I solve this?

Sincerely,
Dennis

Thijs Kinkhorst

unread,
Feb 20, 2014, 7:52:37 AM2/20/14
to simple...@googlegroups.com
Op donderdag 20 februari 2014 13:12:18 schreef Marcin Calka:
> So, If you ever have a problem with a blank page
> (/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp) that's most
> likely

By all means, please: if you ever have a blank page, just check your web
server's error logs for an error message describing the problem, which will
most certainly be there.
signature.asc
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages