Open zeronounours opened 9 years ago
I confirm this bug. zeronounours, thank you for the workaround.
@zeronounours Thanks for your precious workaround!
:+1: Thank you @zeronounours the patch works like a charm !
I confirm this bug too, and this workaround fix it but i have a strange behaviour : cas_force_login is off cas_link_to_ldap_backend on but owncloud don't let me authenticate via owncloud form. this is usefull for public shared link
EDIT: this behavior is not related with the workaround. workaround is ok.
I confirm too. The workaround works for me too.
With ownCloud 8.1.1 and user_cas 1.1. When user_cas is configured with
Link to LDAP backend
on andAutocreate user
off, the user is redirected to the default page endlessly while trying to log in.The issue comes from user_ldap not being loaded before user_cas. This causes
shouldEnforceAuthentication
function to always be evaluated astrue
even when the user has been logged in. When this function actually callsOCP\User::isLoggedIn()
, the LDAP backend isn't registered yet and so isn't checked for user existence.A quick workaround is to load all authentication applications when initializing CAS backend: