felixrupp / user_cas

This app provides CAS authentication support for ownCloud and Nextcloud, using the phpCAS library of jasig/apereo.
Other
21 stars 24 forks source link

Error when using version 1.5.5 with OC 10.0.10.4 #32

Closed Utopism closed 5 years ago

Utopism commented 6 years ago

Error when using version 1.5.5 with OC 10.0.10.4 A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Install version 1.5.5 from source
  2. Try to login
  3. Returns to login page (normal or CAS login)
  4. Error in the log file : Fatal error with code: 500 and message: phpCAS library could not be loaded. The class was not found.

Expected behavior Login page should be displayed

Software (please complete the following information):

Additional context Previous version was not working, because it dit not get the app configuration for port and path.

Utopism commented 6 years ago

After adding the path to the php_cas library root file in the app configuration the error disappears. (/usr/share/php/CAS.php)

Utopism commented 6 years ago

after getting the last phpCas library V1.3.5 from https://github.com/apereo/phpCAS/blob/master/utils/version.properties, I get the same error as with user_cas 1.5.4 :

phpCAS error: phpCAS::client(): bad CAS server port (`sso_server.example.fr') in /var/www/owncloud/apps/user_cas/lib/Service/AppService.php on line 264

Utopism commented 6 years ago

The port and path configuration are not read correctly from the app.

Utopism commented 6 years ago

When I continue I get an issue on the backend : (exception message enhanced)

Returned account has different backend to the requested backend for sync OCA\\UserCAS\\User\\Backend != OCA\\User_LDAP\\User_Proxy\

baboupc commented 6 years ago

This looks like a bug with LDAP backend. This plugins doesn't support LDAP at this time. I'm waiting for this support too.

Utopism commented 6 years ago

Hi,

Felix, is there any plans to support LDAP with CAS ?

felixrupp commented 6 years ago

Hi @Utopism

as stated by @baboupc, LDAP Support is not available at the moment. I am currently working on a solution to that, but there currently is no release date.

Regarding your other bugs, I will be investigating the problems and report back.

Regards Felix

felixrupp commented 6 years ago

Hi @Utopism

I am going to refactor a few parts of the code, so the missing phpCAS library won't break your installation. While no phpCAS library is in space, user_cas will then not be able to work, but regular ownCloud functionality will not be affected any more. Please stand by as I have a lot of work to do at the moment.

Thanks and regard, Felix

Utopism commented 6 years ago

Hi @Felix,

Thanks a lot for your time, I will be glad to test your new version.

felixrupp commented 5 years ago

@Utopism

The latest release (https://github.com/felixrupp/user_cas/releases/tag/1.6.0) has fixes to prevent issues when the phpCAS library is missing. user_cas will not work without the library, but the traditional ownCloud/Nextcloud functionality isn’t blocked anymore.

On LDAP, please see Issue #1 .