-
Notifications
You must be signed in to change notification settings - Fork 112
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
userena breaks ldap authentication #87
Comments
Hi @cocoy I'm using a very similar setup to your #102 Differences are: In settings.py: AUTHENTICATION_BACKENDS = (
'ldap_workaround.LDAPBackend',
'userena.backends.UserenaAuthenticationBackend',
'guardian.backends.ObjectPermissionBackend',
'localshop.apps.permissions.backend.CredentialBackend',
'django.contrib.auth.backends.ModelBackend',
) I have LDAP as the first And I'm using in
Maybe be that the order of the |
@trbs Seems I missed the lines below to create profiles, I assume this is required. |
LDAP login works fine, can login without problem. But clicking on other pages like says Forbidden |
For the forbidden thing, make sure you have
Seems the |
Seems my issue on Forbidden pages, because the group in LDAP has no access on the packages. I have to allow package | packages | can View Packages on the admin page i.e http://localhost:8000/admin/auth/group/ Maybe this one fixes the same config at localshop.conf.py |
Indeed @sposs it works! |
ah, problem is the other permissions on admin pages were granted to the ldap user when set to |
Just a FYI, i've just removed django-userena in the develop branch so i'm hoping to get ldap support built-in by default now. Let me know if you have any tips or can even help me with a PR |
Because userena and localshop use a different set of login parameters then the default this breaks thirdparty backends like django_auth_ldap.
The workaround is some additional code like this:
But it's kind of silly that users have to jump through all these hoops for a django app that should just-work(tm).
The text was updated successfully, but these errors were encountered: