Skip to content

Unable to Authenticate other users on the domain #8

Answered by danyi1212
kevinjoseph61 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!

I'm not exactly sure where your problem is. Does the error raised by the Authentication Backend or the LDAP Sync Middleware? (you should see it in the exception's stack trace).

It seems like the LDAP entry comes without the sAMAccountName attribute, it could happen either by the client (this module) not asking for it, or the server not having such attribute.

To make sure that your code asks for the sAMAccountName attribute, make sure that your PRELOADED_DEFINITIONS in your LDAP Settings (WAUTH_DOMAINS) for the user object class contains it. It should look like that (the default value):

LDAPSettings(
    PRELOAD_DEFINITIONS=(
        ("user", ("sAMAccountName",)),
        "group"

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kevinjoseph61
Comment options

@danyi1212
Comment options

@kevinjoseph61
Comment options

Answer selected by danyi1212
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants