LDAPS Integration #10009
shantanu-s-outdu
started this conversation in
General
LDAPS Integration
#10009
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am running a custom CVAT application from base version=2.2.0 with ldap authentication. I want to upgrade my solution to ldaps(secure) but haven't had any success. While I can authenticate with CA certificates in CVAT version=2.40 it doesn't work in version=2.2.0.
I have used both:
AUTH_LDAP_CONNECTION_OPTIONS = {
ldap.OPT_REFERRALS: 0, # Set referrals first
ldap.OPT_X_TLS_NEWCTX: 0, # Then TLS context
ldap.OPT_X_TLS_CACERTDIR: CERT_DIR, # Then certificate directory
ldap.OPT_X_TLS_REQUIRE_CERT: ldap.OPT_X_TLS_DEMAND, # Finally require cert
}
and the newer :
ldap.set_option(ldap.OPT_X_TLS_CACERTDIR, CERT_DIR # Certificate directory)
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_DEMAND) #require cert
ldap.set_option(ldap.OPT_X_TLS_NEWCTX, 0)
but neither seem to work in the old version. Is there a problem because django-auth-ldap and python-ldap versions are older or am I missing something more fundamental. If anyone knows anything about this feel free to help.
Beta Was this translation helpful? Give feedback.
All reactions