Need some help SimpleSamlphp -1.18.8

51 views
Skip to first unread message

Shimon Weinreich

unread,
Dec 1, 2020, 9:44:55 AM12/1/20
to simple...@googlegroups.com

Hi All,

 

I installed SimpleSamlPHP-1.18.8. I got the following error in error_log while trying to get to http://server/simplesaml/ - and error 500 in browser:

 

[Tue Dec 01 16:35:04.583691 2020] [php7:error] [pid 27037] [client X.X.X.X:60482] PHP Parse error:  syntax error, unexpected '*' in /var/simplesamlphp-1.18.8/lib/SimpleSAML/Error/Assertion.php on line 63

 

This is the php version:

 

PHP 7.4.13 (cli) (built: Nov 24 2020 10:03:34) ( NTS )

Copyright (c) The PHP Group

Zend Engine v3.4.0, Copyright (c) Zend Technologies

    with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies

 

Server is Centos 7:

 

 

Tnx in advance !!!

 

Shimon

Tim van Dijen

unread,
Dec 1, 2020, 11:06:48 AM12/1/20
to SimpleSAMLphp
Hi Shimon,

There is no '*' on that line on 1.18.8;

So I'm not sure what's wrong or how I could help you out here... Any more details you can share with us?

- Tim

Op dinsdag 1 december 2020 om 15:44:55 UTC+1 schreef Shimon Weinreich:

Shimon Weinreich

unread,
Dec 1, 2020, 11:13:19 AM12/1/20
to simple...@googlegroups.com

Hi Tim,

 

I think I managed it. I re-installed it and it's looks OK.

 

Anyway many thank's  !!!

 

 

Shimon

--
This is a mailing list for users of SimpleSAMLphp, not a support service. If you are willing to buy commercial support, please take a look here:
 
https://simplesamlphp.org/support
 
Before sending your question, make sure it is related to SimpleSAMLphp, and not your web server's configuration or any other third-party software. This mailing list cannot help with software that uses SimpleSAMLphp, only regarding SimpleSAMLphp itself.
 
Make sure to read the documentation:
 
https://simplesamlphp.org/docs/stable/
 
If you have an issue with SimpleSAMLphp that you cannot resolve and reading the documentation doesn't help, you are more than welcome to ask here for help. Subscribe to the list and send an email with your question. However, you will be expected to comply with some minimum, common sense standards in your questions. Please read this carefully:
 
http://catb.org/~esr/faqs/smart-questions.html
---
You received this message because you are subscribed to the Google Groups "SimpleSAMLphp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simplesamlph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simplesamlphp/7f282ce7-c209-493c-9f17-b4c636ea16a1n%40googlegroups.com.

Tim van Dijen

unread,
Dec 1, 2020, 11:20:13 AM12/1/20
to SimpleSAMLphp
Ah, layer 8 problem...  Gotcha ;)
Good look and let us know if you need help with anything!

- Tim

Op dinsdag 1 december 2020 om 17:13:19 UTC+1 schreef Shimon Weinreich:

Shimon Weinreich

unread,
Dec 1, 2020, 11:37:07 PM12/1/20
to simple...@googlegroups.com

Hi,

 

Actually I can use help. This is my config. screen.

 

It looks like something in LDAP is missing. I also define in authsources:

 

  'XXX-ldap' => array(

        'ldap:LDAP',

 

        // Give the user an option to save their username for future login attempts

        // And when enabled, what should the default be, to save the username or not

        //'remember.username.enabled' => FALSE,

        //'remember.username.checked' => FALSE,

 

        // The hostname of the LDAP server.

        'hostname' => 'ldap://ldap111 ldap://ldap222.openu.ac.il',

 

        // Whether SSL/TLS should be used when contacting the LDAP server.

        'enable_tls' => FALSE,

 

        // Whether debug output from the LDAP library should be enabled.

        // Default is FALSE.

        'debug' => FALSE,

 

        // The timeout for accessing the LDAP server, in seconds.

        // The default is 0, which means no timeout.

        'timeout' => 10,

 

        // The port used when accessing the LDAP server.

        // The default is 389.

        'port' => 389,

 

        // Set whether to follow referrals. AD Controllers may require FALSE to function.

        'referrals' => FALSE,

 

        // Which attributes should be retrieved from the LDAP server.

        // This can be an array of attribute names, or NULL, in which case

        // all attributes are fetched.

         'attributes' => array( 'identitynum' ),

 

 

        // The pattern which should be used to create the users DN given the username.

        // %username% in this pattern will be replaced with the users username.

        //

        // This option is not used if the search.enable option is set to TRUE.

        'dnpattern' => 'uid=%username%,ou=XXX,o=YYY,c=DE',

 

 

I defined XXX-ldap in saml20-idp-hosted. But I don't see XXX-ldap while trying to test:

 

 

Any help could be much usefull.

 

Tnx !!!!!!

Tim van Dijen

unread,
Dec 3, 2020, 1:52:21 PM12/3/20
to SimpleSAMLphp
Hi Shimon,

The first screenshot is indication that you are missing the required xml-dom php-extension and the optional ldap-extension that you obviously want to use.
You should install them the way your OS does that, so 'yum install' for Centos 7..  Try 'yum install php74-php-xml' and 'yum install php74-php-ldap'..

- Tim
Op woensdag 2 december 2020 om 05:37:07 UTC+1 schreef Shimon Weinreich:

Shimon Weinreich

unread,
Dec 6, 2020, 1:58:50 AM12/6/20
to simple...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages