Skip to content
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

LDAPS configuration options required in install documentation #523

Closed
pke11y opened this issue Jun 2, 2021 · 0 comments · Fixed by #527
Closed

LDAPS configuration options required in install documentation #523

pke11y opened this issue Jun 2, 2021 · 0 comments · Fixed by #527
Labels
type: documentation Improvements or additions to documentation type: feature Introduction of new or enhanced functionality to the application

Comments

@pke11y
Copy link
Contributor

pke11y commented Jun 2, 2021

Environment

  • Python version: 3.8
  • Nautobot version: 1.0.2

Steps to Reproduce

  1. Follow LDAP Authentication guide to setup LDAPS
  2. Start nautobot service
  3. Monitor django-ldap-debug-log

Expected Behavior

LDAPS authentication works and logs display verified users.

Observed Behavior

Error connecting to LDAP server.

[2021-05-31 08:38:07,079] Caught LDAPError while authenticating ****: SERVER_DOWN({'result': -1, 'desc': "Can't contact LDAP server", 'errno': 11, 'ctrls': [], 'info': '(unknown error code)'},)

The following additional connection settings were required to support ldaps for a docker environment.

AUTH_LDAP_CONNECTION_OPTIONS = {
    ldap.OPT_X_TLS_CACERTFILE: "/path/to/cert/file",
    ldap.OPT_X_TLS_REQUIRE_CERT: ldap.OPT_X_TLS_ALLOW,
    ldap.OPT_X_TLS_NEWCTX: 0
}

Refer to TLS options in the python-ldap docs.
https://www.python-ldap.org/en/latest/reference/ldap.html#ldap-options

pke11y added a commit to pke11y/nautobot that referenced this issue Jun 2, 2021
pke11y added a commit to pke11y/nautobot that referenced this issue Jun 2, 2021
@glennmatthews glennmatthews added the type: documentation Improvements or additions to documentation label Jun 3, 2021
@jathanism jathanism added the type: feature Introduction of new or enhanced functionality to the application label Jun 4, 2021
jathanism pushed a commit that referenced this issue Jun 11, 2021
* LDAP TLS documentation updates #523

* LDAP TLS documentation updates - incl IGNORE_CERTS  #523

* Adding commands into TLS Options section as per review
jathanism added a commit that referenced this issue Jun 11, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: documentation Improvements or additions to documentation type: feature Introduction of new or enhanced functionality to the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants