Sentry LDAP Plugin ignored with latest Version
See original GitHub issueHi,
with the latest version I am facing the problem that sentry does not recognized this plugin as Auth Backend. The Module does not show up in the auth backends, neither does the login over it work. With the same config it worked for older sentry versions.
Here is my config:
#########
# LDAP #
#########
AUTH_LDAP_SERVER_URI = 'ldap://XXXXX
AUTH_LDAP_BIND_DN = ''
AUTH_LDAP_BIND_PASSWORD = ''
AUTH_LDAP_USER_SEARCH = LDAPSearch(
'ou=users,dc=ldap,dc=XXXXXX,dc=io',
ldap.SCOPE_SUBTREE,
'(mail=%(user)s)',
)
AUTH_LDAP_USER_ATTR_MAP = {
'name': 'cn',
'email': 'displayName'
}
AUTH_LDAP_DEFAULT_SENTRY_ORGANIZATION = u'XXXXX'
AUTH_LDAP_SENTRY_ORGANIZATION_GLOBAL_ACCESS = True
AUTH_LDAP_SENTRY_SUBSCRIBE_BY_DEFAULT = False
AUTH_LDAP_SENTRY_USERNAME_FIELD = 'cn'
SENTRY_MANAGED_USER_FIELDS = ('email', 'first_name', 'last_name', 'password', )
AUTH_LDAP_GROUP_SEARCH = LDAPSearch(
'',
ldap.SCOPE_SUBTREE,
'(objectClass=groupOfUniqueNames)'
)
AUTH_LDAP_GROUP_TYPE = GroupOfUniqueNamesType()
AUTH_LDAP_REQUIRE_GROUP = None
AUTH_LDAP_DENY_GROUP = None
AUTH_LDAP_FIND_GROUP_PERMS = False
AUTH_LDAP_CACHE_GROUPS = True
AUTH_LDAP_GROUP_CACHE_TIMEOUT = 3600
AUTH_LDAP_DEFAULT_SENTRY_ORGANIZATION = u'My Organization Name'
AUTH_LDAP_SENTRY_ORGANIZATION_ROLE_TYPE = 'member'
AUTH_LDAP_SENTRY_ORGANIZATION_GLOBAL_ACCESS = True
AUTH_LDAP_SENTRY_USERNAME_FIELD = '(|(cn=%(user))(uid=%(user)))'
import logging
logger = logging.getLogger('django_auth_ldap')
logger.addHandler(logging.StreamHandler())
logger.setLevel('DEBUG')
AUTHENTICATION_BACKENDS = AUTHENTICATION_BACKENDS + (
'sentry_ldap_auth.backend.SentryLdapBackend',
)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:15
Top Results From Across the Web
Sentry LDAP Plugin ignored with latest Version - - Bountysource
Hi,. with the latest version I am facing the problem that sentry does not recognized this plugin as Auth Backend. The Module does...
Read more >auth_ldap_always_update_user - django-auth-ldap
This is ignored if AUTH_LDAP_MIRROR_GROUPS_EXCEPT is set. Users authenticating through another authentication backend, such as ModelBackend will not have their ...
Read more >Sentry 9.13.0 Guide for Cloud - Product Documentation
Sentry is a part of Ivanti deployment that serves as an intelligent gatekeeper to your company's ActiveSync.
Read more >pas.plugins.ldap - PyPI
Run buildout. Restart Plone. Then go to the Plone control-panel, select extensions and install the LDAP Plugin. A new LDAP Settings icon appear ......
Read more >Latest On-Premise topics - #sentry
Topic Replies Views Activity
About the On‑Premise category 1 3227 August 18, 2016
Re‑licensing Sentry ‑ FAQ & Discussion 48 14270 March 28, 2022
Toggle option...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The following code is work for me !!!😁😁
2.set the sentry.conf.py
reference:https://yyhh.org/blog/2017/12/ldap-authentication-premise-sentry-server-using-freeipa
I tested Sentry 9.0 + sentry_ldap_auth 2.7 with the Sentry config below, and the LDAP plugin in auth backends is working.
Here are some suggestions for you to debug:
auth_user
table to see if user were added to databaseSentry will check if user in any organization, If you received
No Organization Aceess
, make sure your organizations contains the value ofAUTH_LDAP_DEFAULT_SENTRY_ORGANIZATION
.