Skip to content

Need help on an LDAP-related error #8308

Answered by ab1g17
ab1g17 asked this question in Q&A
Oct 17, 2024 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

I have managed to fix this

The new config:
INVENTREE_LDAP_ENABLED=True
INVENTREE_LDAP_SERVER_URI=ldap://server
INVENTREE_LDAP_BASE_DN=DC=central,DC=corp,DC=com
INVENTREE_LDAP_START_TLS=False
INVENTREE_LDAP_DEBUG=True
INVENTREE_LDAP_USER_DN_TEMPLATE=

Adding the INVENTREE_LDAP_USER_DN_TEMPLATE option but leaving it empty did the trick. Not providing that info forces it to search in the Base DN. I think that by providing that info, you make the INVENTREE_LDAP_BASE_DN redundant, as it never felt the need to use it. This way, with the info left out, it searches the entire base as it should.
Honestly this seems more like a bug than a feature. I've never before encountered a config issue which i…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@matmair
Comment options

@wolflu05
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ab1g17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants