You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 18, 2018. It is now read-only.
configure ldap backend, restrict users access by ldap filter
enable cas_link_to_ldap_backend
Expected result
users who don't match LDAP filter will not have access to owncCloud
Actual result
everyone who can connect to CAS can also use the cloud
Solution
in user_cas.php,
if (($uid !== false) && ($ocname !== false)) {
OC_Log::write('cas',"Found CAS user '$uid' in LDAP with name '$ocname'", OC_Log::DEBUG);
return$ocname;
}
by:
if (($uid !== false) && ($ocname !== false)) {
OC_Log::write('cas',"Found CAS user '$uid' in LDAP with name '$ocname'", OC_Log::DEBUG);
return$ocname;
} else {
returnfalse;
}
Because the function checkPassword return $uid at the end.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Step to reproduce
Expected result
Actual result
Solution
Because the function checkPassword return $uid at the end.
The text was updated successfully, but these errors were encountered: