# Element (Matrix/Synapse) webchat - "Continue with CAS" does not work, password does (after enabling)

**URL:** https://forum.yunohost.org/t/element-matrix-synapse-webchat-continue-with-cas-does-not-work-password-does-after-enabling/27047
**Category:** Support
**Tags:** matrix, ldap, english
**Created:** [November 6, 2023, 1:21am UTC](https://forum.yunohost.org/t/element-matrix-synapse-webchat-continue-with-cas-does-not-work-password-does-after-enabling/27047 "2023-11-06T01:21:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)
#### Post date: [November 6, 2023, 1:21am UTC](https://forum.yunohost.org/t/element-matrix-synapse-webchat-continue-with-cas-does-not-work-password-does-after-enabling/27047/1 "2023-11-06T01:21:06Z")

</div>

Hi all,

From diagnosis:  
Server hardware architecture is lxc amd64  
Server is running Linux kernel 6.2.16-19-pve  
Server is running Debian 11.8  
Server is running YunoHost 11.2.5 (stable)

I have been having troubles using the Element webclient for ages, but did not look into it (kdeconnect lets me use my telephone-element easily enough from my desktop most of the time).

At first the login did not work, but “Continue with CAS” worked after I reinstalled it at some moment. For quite a while now, “Continue with CAS” redirects me to the YNH home page with all the apps. On top there is a blue banner, “Please log in to access this content.”:

 ![image](https://forum.yunohost.org/uploads/default/original/2X/1/1f31886e82e14bec101109d1eab9b1ee46407c03.png)

The web app does work on Firefox on my phone, but not on my desktop, neither regular nor private; same result with Chromium.

There is a [solution to the problem on Github](https://github.com/YunoHost-Apps/synapse_ynh/issues/328) posted by thardev, involving commenting-out some LDAP settings (bind\_dn/bind\_password/filter in `/etc/matrix-synapse/homeserver.yaml`) , but that did not have any effect. Rosbeef mentioned changing the Element config as well, but it is already as suggested (“login\_for\_welcome”:true in `/var/www/element/config.json`).

Element on my daughter’s website still has the password option available; password login works there, as well as does CAS.

I suspect SSO has to do with it on my site: when I switch the homeserver on my daughter’s Element-login to my own homeserver, Element recognizes that password login is not available, switches to CAS automatically and sends me to my own YNH-home page after signing in.

I tried, with no success:

- comment out bind\_dn/bind\_password/filter in `/etc/matrix-synapse/homeserver.yaml` (and restart matrix-synapse)
- “login\_for\_welcome”:true in `/var/www/element/config.json`
- “login\_for\_welcome”:false (hoping to circumvent SSO)
- taking Element out of the “Visitors” group, and adding it again
- switching the language (… you never know…)
- remove a forward to Element on another Yunohost (… at another URL and domain than my own Element, but, you never know!)

Seeing password login _does_ work on my daughter’s server, I tried, with succes:

- _enable_ password login by commenting out `enabled: false` under `password_config:` in `/etc/matrix-synapse/homeserver.yaml`

I’m happy that it works again now, but I can not really explain the behaviour.

Any idea?

Edit: just to make it clear for later readers: I don’t have a problem at the moment, I just wondered. If you have problems logging in to Element because of the redirect loop, try (re-)enabling password login 🙂

---

<div class="post-metadata">

### Author: ![nicofrand](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nicofrand/32/892_2.png) [@nicofrand](https://forum.yunohost.org/u/nicofrand)
#### Post date: [November 6, 2023, 7:47am UTC](https://forum.yunohost.org/t/element-matrix-synapse-webchat-continue-with-cas-does-not-work-password-does-after-enabling/27047/2 "2023-11-06T07:47:18Z")

</div>

Hi,

Yes, there is an open ticket for that issue: [Attempting to log in only shows the CAS option, resulting in a loop · Issue #412 · YunoHost-Apps/synapse\_ynh · GitHub](https://github.com/YunoHost-Apps/synapse_ynh/issues/412).

---

<div class="post-metadata">

### Author: ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)
#### Post date: [November 6, 2023, 8:05am UTC](https://forum.yunohost.org/t/element-matrix-synapse-webchat-continue-with-cas-does-not-work-password-does-after-enabling/27047/3 "2023-11-06T08:05:07Z")

</div>

Ah, thanks! I missed that one.

For the record, in case someone else runs into it: I was able to work around the loop by re-enabling password login, exactly the method that was broken earlier and remedied by forcing CAS.

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [December 6, 2023, 8:05am UTC](https://forum.yunohost.org/t/element-matrix-synapse-webchat-continue-with-cas-does-not-work-password-does-after-enabling/27047/4 "2023-12-06T08:05:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
