Getting an error while integrating with LDAP

Trying to integrate with LDAP with sentry.io on premise enterprise by following the link below steps,
https://github.com/Banno/getsentry-ldap-auth
getting an below error, attached screenshot for reference and unable to open login page getting an error 502 Bad Gateway

image

The Arrow mark indicates the 108 column and 109 column as suggested in the link i have configured in configuration.yml, all the details have entered, since its thronging an error

I request to Please check and let us know your suggestions.

Thanks
Santhosh Kumar Kadathala

It clearly tells you that your config.yml file is malformed and invalid. That’s the reason for your errors probably.

Hi BYK,

Thanks for your response,

We configured according to the link as suggested in the link. Since we are getting errors, if possible could you please provide in detail, How to integrate with LDAP with sentry.

Thanks
Santhosh Kumar Kadathala.

Any update, please.

Thanks
Santhosh Kumar Kadathala

The error says that your config.yml is malformed. But according to the github link you should add it to sentry.conf.py

To configure Sentry to use this module, add sentry_ldap_auth.backend.SentryLdapBackend to your AUTHENTICATION_BACKENDS in your sentry.conf.py , like this:

But this is only guess work from me based on the information you provided :slight_smile:

Hi Alexander,
Thanks for the response,
As suggested in the link added in sentry.conf.py , but sentry-ldap-auth Specific Options also requires where I can add these options, so I included these options in config.yml. so I’m getting an error(502 Bad Gateway) when restarting the sentry, unable to open the login page.

Note: Can you please suggest where can I add these options(sentry-LDAP-auth Specific Options). for your reference please find the attachment provided.

Thanks
Santhosh Kumar Kadathala

I dont think you should add any of these to the yml file. Dont see any information that points to that.

Have you checked this one out: Authentication via gitlab or ldap ?

Edit: https://github.com/Banno/getsentry-ldap-auth#example-configuration is quite clear on where to have those options.

Hi Alexander,
if possible can you please elaborate step by step process with LDAP Integration.

No I can not since I don’t have it on my end.
Read the two links in my previous post. They have examples on how the config should be.

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