PMExtra / sentry-auth-ldap

A Sentry extension to add an LDAP server as an authention source.
Apache License 2.0
27 stars 7 forks source link

No organization found #17

Closed zahra4fact closed 9 months ago

zahra4fact commented 10 months ago

I updated my sentry and set ldap as well by following instruction, but after I try to login I face this page image

when you click on please click here it navigate to our organization sentry, but how I could fix this issue to enter directly to our organization. I set defaul-auth-ldap as well but no difference.

I really appreciate to help me for solving this issue

PMExtra commented 10 months ago

Did you set AUTH_LDAP_SENTRY_DEFAULT_ORGANIZATION (recommended, organization slug) or AUTH_LDAP_DEFAULT_SENTRY_ORGANIZATION (deprecated, organization name)

zahra4fact commented 10 months ago

when I set AUTH_LDAP_SENTRY_DEFAULT_ORGANIZATION I receive bad gateway

PMExtra commented 10 months ago

Take a look at the logs.

zahra4fact commented 10 months ago

I solved my problem and I write it here if someone has the same issue, it is not related to Ldap and it is very simple and funny.

  1. Go to organization settings: https://sentry.example.org/settings/<org slug>/

  2. Change slug, eg. by appending some string

  3. Change slug back to original value

ref https://github.com/getsentry/self-hosted/issues/2582#issuecomment-1824442106

Good luck!