Clarification on django-auth-ldap requirement #8562

Closed
opened 2025-12-29 20:38:13 +01:00 by adam · 2 comments
Owner

Originally created by @ArpStorm1 on GitHub (Sep 2, 2023).

Change Type

Addition

Area

Installation/upgrade

Proposed Changes

Hi!

In the LDAP section, you suggested to run the following command:

pip3 install django-auth-ldap

However, in closed environments, the repository is not up to date, and some of the packages can be really old.
When I tried to connect my netbox to ldap, I encountered the following error:

Cannot found module 'six' in djago.utils

And that's becasue the module six is no longer in django since version 3.
The way to fix this is to make sure all django packages are higher than version 3.
But becasue I had an older version of django-auth-ldap, my netbox failed to start from the moment I tried to configure it to work with ldap.

So my recommendation is to change this line to:
pip3 install django-auth-ldap>3

Also, to change the addition to the local_requirments file to:
sudo sh -c "echo 'django-auth-ldap>3' >> /opt/netbox/local_requirements.txt"

Originally created by @ArpStorm1 on GitHub (Sep 2, 2023). ### Change Type Addition ### Area Installation/upgrade ### Proposed Changes Hi! In the LDAP section, you suggested to run the following command: `pip3 install django-auth-ldap` However, in closed environments, the repository is not up to date, and some of the packages can be really old. When I tried to connect my netbox to ldap, I encountered the following error: `Cannot found module 'six' in djago.utils` And that's becasue the module six is no longer in django since version 3. The way to fix this is to make sure **all** django packages are higher than version 3. But becasue I had an older version of django-auth-ldap, my netbox failed to start from the moment I tried to configure it to work with ldap. So my recommendation is to change this line to: `pip3 install django-auth-ldap>3` Also, to change the addition to the local_requirments file to: `sudo sh -c "echo 'django-auth-ldap>3' >> /opt/netbox/local_requirements.txt"`
adam added the type: documentationpending closure labels 2025-12-29 20:38:13 +01:00
adam closed this issue 2025-12-29 20:38:13 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 2, 2023):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Dec 2, 2023): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@jeremystretch commented on GitHub (Dec 4, 2023):

However, in closed environments, the repository is not up to date, and some of the packages can be really old.

django-auth-ldap is an optional dependency. It is the responsibility of system administrators to ensure a reasonably recent release of the package is available to the installation environment. This is outside the scope of NetBox's documentation.

@jeremystretch commented on GitHub (Dec 4, 2023): > However, in closed environments, the repository is not up to date, and some of the packages can be really old. `django-auth-ldap` is an optional dependency. It is the responsibility of system administrators to ensure a reasonably recent release of the package is available to the installation environment. This is outside the scope of NetBox's documentation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8562