Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes of displayname from auth providers are not reflected in synapse #4708

Open
matrixbot opened this issue Dec 16, 2023 · 0 comments
Open

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 16, 2023

This issue has been migrated from #4708.


Description:

I'm using mxisd with matrix-synapse-rest-auth as password provider to sync users from LDAP/AD.

in mxisd.yaml I have:

ldap:
  enabled: true
  connection:
    host: 'xxx'
    port: 389
    bindDn: 'CN=xxx,OU=xxx,DC=xxx,DC=xxx'
    bindPassword: 'xxx'
    baseDNs:
      - 'OU=xxx,DC=xxx,DC=xxx'
  attribute:
    name: 'cn'

and in homserver.yaml

password_providers:
  - module: "rest_auth_provider.RestAuthProvider"
    config:
      endpoint: "http://localhost:8090"
      policy:
        registration:
          profile:
            name: true
        login:
          profile:
            name: true

When logging in with riot-web I can see the name correctly changing on every login in the top left corner whether I set the name: attribute in myisd.yaml to either 'cn' or 'displayName'.

Also curl https://matrix.domain.local/_matrix/client/r0/profile/%40matrixid%3Adomain.local shows the correct "displayname".

However in the riot-web/matrix profile the "Display Name" is not applied and/or changing accordingly, so in the rooms I already joined I still appear with the matrixid:server.xxx instead of the correct name: transferred by mxisd via LDAP.

In our organization it's quite common for names to change, e.g. because of marriage and thus it would be nice to have an option for synapse to force syncing the displayname to all rooms so users don't need to worry about, don't need to be instructed about and more importantly not making a support request about their old name still being shown.

For reference: kamax-matrix/matrix-synapse-rest-password-provider#6

@matrixbot matrixbot changed the title Dummy issue Changes of displayname from auth providers are not reflected in synapse Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant