Thanks to visit codestin.com
Credit goes to github.com

Skip to content

User is disabled error #369

@IliasVilux

Description

@IliasVilux

Hi, I have my django project configured with graphene, django-auth-ldap and django graphql jwt. I've made the configuration and set a query with @login_required and when I pass in headers the token from token_auth query I get "User is disabled" error. This is what I have in my setting.py:

AUTH_LDAP_SERVER_URI = "ldap://xxxx.xxxx.xx"

AUTH_LDAP_USER_DN_TEMPLATE = 'cn=%(user)[email protected],ou=users,dc=xxxx,dc=xx'
AUTH_LDAP_ALWAYS_UPDATE_USER = True
AUTH_LDAP_FIND_GROUP_PERMS = True
AUTH_LDAP_CACHE_TIMEOUT = 3600
AUTHENTICATION_BACKENDS = [
    "graphql_jwt.backends.JSONWebTokenBackend",
    "django_auth_ldap.backend.LDAPBackend",
    "django.contrib.auth.backends.ModelBackend",
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions