mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Refactor installtion docs
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
NetBox supports integration with the [NAPALM automation](https://napalm-automation.net/) library. NAPALM allows NetBox to fetch live data from devices and return it to a requester via its REST API.
|
NetBox supports integration with the [NAPALM automation](https://napalm-automation.net/) library. NAPALM allows NetBox to fetch live data from devices and return it to a requester via its REST API.
|
||||||
|
|
||||||
!!! info
|
!!! info
|
||||||
To enable the integration, the NAPALM library must be installed. See [installation steps](../../installation/2-netbox/#napalm-automation-optional) for more information.
|
To enable the integration, the NAPALM library must be installed. See [installation steps](../../installation/3-netbox/#napalm-automation-optional) for more information.
|
||||||
|
|
||||||
```
|
```
|
||||||
GET /api/dcim/devices/1/napalm/?method=get_environment
|
GET /api/dcim/devices/1/napalm/?method=get_environment
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
NetBox requires a PostgreSQL database to store data. This can be hosted locally or on a remote server. (Please note that MySQL is not supported, as NetBox leverages PostgreSQL's built-in [network address types](https://www.postgresql.org/docs/current/static/datatype-net-types.html).)
|
This section entails the installation and configuration of a local PostgreSQL database. If you already have a PostgreSQL database service in place, skip to [the next section](2-redis.md).
|
||||||
|
|
||||||
!!! note
|
|
||||||
The installation instructions provided here have been tested to work on Ubuntu 18.04 and CentOS 7.5. The particular commands needed to install dependencies on other distributions may vary significantly. Unfortunately, this is outside the control of the NetBox maintainers. Please consult your distribution's documentation for assistance with any errors.
|
|
||||||
|
|
||||||
!!! warning
|
!!! warning
|
||||||
NetBox requires PostgreSQL 9.4 or higher.
|
NetBox requires PostgreSQL 9.4 or higher. Please note that MySQL and other relational databases are **not** supported.
|
||||||
|
|
||||||
# Installation
|
The installation instructions provided here have been tested to work on Ubuntu 18.04 and CentOS 7.5. The particular commands needed to install dependencies on other distributions may vary significantly. Unfortunately, this is outside the control of the NetBox maintainers. Please consult your distribution's documentation for assistance with any errors.
|
||||||
|
|
||||||
**Ubuntu**
|
## Installation
|
||||||
|
|
||||||
|
#### Ubuntu
|
||||||
|
|
||||||
If a recent enough version of PostgreSQL is not available through your distribution's package manager, you'll need to install it from an official [PostgreSQL repository](https://wiki.postgresql.org/wiki/Apt).
|
If a recent enough version of PostgreSQL is not available through your distribution's package manager, you'll need to install it from an official [PostgreSQL repository](https://wiki.postgresql.org/wiki/Apt).
|
||||||
|
|
||||||
@ -17,7 +16,7 @@ If a recent enough version of PostgreSQL is not available through your distribut
|
|||||||
# apt-get install -y postgresql libpq-dev
|
# apt-get install -y postgresql libpq-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
**CentOS**
|
#### CentOS
|
||||||
|
|
||||||
CentOS 7.5 does not ship with a recent enough version of PostgreSQL, so it will need to be installed from an external repository. The instructions below show the installation of PostgreSQL 9.6.
|
CentOS 7.5 does not ship with a recent enough version of PostgreSQL, so it will need to be installed from an external repository. The instructions below show the installation of PostgreSQL 9.6.
|
||||||
|
|
||||||
@ -41,7 +40,7 @@ Then, start the service and enable it to run at boot:
|
|||||||
# systemctl enable postgresql-9.6
|
# systemctl enable postgresql-9.6
|
||||||
```
|
```
|
||||||
|
|
||||||
# Database Creation
|
## Database Creation
|
||||||
|
|
||||||
At a minimum, we need to create a database for NetBox and assign it a username and password for authentication. This is done with the following commands.
|
At a minimum, we need to create a database for NetBox and assign it a username and password for authentication. This is done with the following commands.
|
||||||
|
|
||||||
@ -62,6 +61,8 @@ GRANT
|
|||||||
postgres=# \q
|
postgres=# \q
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Verify Service Status
|
||||||
|
|
||||||
You can verify that authentication works issuing the following command and providing the configured password. (Replace `localhost` with your database server if using a remote database.)
|
You can verify that authentication works issuing the following command and providing the configured password. (Replace `localhost` with your database server if using a remote database.)
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
|
22
docs/installation/2-redis.md
Normal file
22
docs/installation/2-redis.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
[Redis](https://redis.io/) is an in-memory key-value store which NetBox employs for caching and queuing. This section entails the installation and configuration of a local Redis instance. If you already have a Redis service in place, skip to [the next section](3-netbox.md).
|
||||||
|
|
||||||
|
#### Ubuntu
|
||||||
|
|
||||||
|
```no-highlight
|
||||||
|
# apt-get install -y redis-server
|
||||||
|
```
|
||||||
|
|
||||||
|
#### CentOS
|
||||||
|
|
||||||
|
```no-highlight
|
||||||
|
# yum install -y redis
|
||||||
|
```
|
||||||
|
|
||||||
|
## Verify Service Status
|
||||||
|
|
||||||
|
Use the `redis-cli` utility to ensure the Redis service is functional:
|
||||||
|
|
||||||
|
```no-highlight
|
||||||
|
$ redis-cli ping
|
||||||
|
PONG
|
||||||
|
```
|
@ -1,25 +1,27 @@
|
|||||||
# Installation
|
|
||||||
|
|
||||||
This section of the documentation discusses installing and configuring the NetBox application. Begin by installing all system packages required by NetBox and its dependencies:
|
This section of the documentation discusses installing and configuring the NetBox application. Begin by installing all system packages required by NetBox and its dependencies:
|
||||||
|
|
||||||
**Ubuntu**
|
## Install System Packages
|
||||||
|
|
||||||
|
#### Ubuntu
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
# apt-get install -y python3 python3-pip python3-dev build-essential libxml2-dev libxslt1-dev libffi-dev libpq-dev libssl-dev redis-server zlib1g-dev
|
# apt-get install -y python3 python3-pip python3-dev build-essential libxml2-dev libxslt1-dev libffi-dev libpq-dev libssl-dev zlib1g-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
**CentOS**
|
#### CentOS
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
# yum install -y epel-release
|
# yum install -y epel-release
|
||||||
# yum install -y gcc python36 python36-devel python36-setuptools libxml2-devel libxslt-devel libffi-devel openssl-devel redhat-rpm-config redis
|
# yum install -y gcc python36 python36-devel python36-setuptools libxml2-devel libxslt-devel libffi-devel openssl-devel redhat-rpm-config
|
||||||
# easy_install-3.6 pip
|
# easy_install-3.6 pip
|
||||||
# ln -s /usr/bin/python3.6 /usr/bin/python3
|
# ln -s /usr/bin/python3.6 /usr/bin/python3
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Download NetBox
|
||||||
|
|
||||||
You may opt to install NetBox either from a numbered release or by cloning the master branch of its repository on GitHub.
|
You may opt to install NetBox either from a numbered release or by cloning the master branch of its repository on GitHub.
|
||||||
|
|
||||||
## Option A: Download a Release
|
### Option A: Download a Release
|
||||||
|
|
||||||
Download the [latest stable release](https://github.com/netbox-community/netbox/releases) from GitHub as a tarball or ZIP archive and extract it to your desired path. In this example, we'll use `/opt/netbox`.
|
Download the [latest stable release](https://github.com/netbox-community/netbox/releases) from GitHub as a tarball or ZIP archive and extract it to your desired path. In this example, we'll use `/opt/netbox`.
|
||||||
|
|
||||||
@ -31,7 +33,7 @@ Download the [latest stable release](https://github.com/netbox-community/netbox/
|
|||||||
# cd /opt/netbox/
|
# cd /opt/netbox/
|
||||||
```
|
```
|
||||||
|
|
||||||
## Option B: Clone the Git Repository
|
### Option B: Clone the Git Repository
|
||||||
|
|
||||||
Create the base directory for the NetBox installation. For this guide, we'll use `/opt/netbox`.
|
Create the base directory for the NetBox installation. For this guide, we'll use `/opt/netbox`.
|
||||||
|
|
||||||
@ -41,13 +43,13 @@ Create the base directory for the NetBox installation. For this guide, we'll use
|
|||||||
|
|
||||||
If `git` is not already installed, install it:
|
If `git` is not already installed, install it:
|
||||||
|
|
||||||
**Ubuntu**
|
#### Ubuntu
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
# apt-get install -y git
|
# apt-get install -y git
|
||||||
```
|
```
|
||||||
|
|
||||||
**CentOS**
|
#### CentOS
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
# yum install -y git
|
# yum install -y git
|
||||||
@ -71,7 +73,7 @@ Checking connectivity... done.
|
|||||||
|
|
||||||
`# chown -R netbox:netbox /opt/netbox/netbox/media/`
|
`# chown -R netbox:netbox /opt/netbox/netbox/media/`
|
||||||
|
|
||||||
# Install Python Packages
|
## Install Python Packages
|
||||||
|
|
||||||
Install the required Python packages using pip. (If you encounter any compilation errors during this step, ensure that you've installed all of the system dependencies listed above.)
|
Install the required Python packages using pip. (If you encounter any compilation errors during this step, ensure that you've installed all of the system dependencies listed above.)
|
||||||
|
|
||||||
@ -82,7 +84,7 @@ Install the required Python packages using pip. (If you encounter any compilatio
|
|||||||
!!! note
|
!!! note
|
||||||
If you encounter errors while installing the required packages, check that you're running a recent version of pip (v9.0.1 or higher) with the command `pip3 -V`.
|
If you encounter errors while installing the required packages, check that you're running a recent version of pip (v9.0.1 or higher) with the command `pip3 -V`.
|
||||||
|
|
||||||
## NAPALM Automation (Optional)
|
### NAPALM Automation (Optional)
|
||||||
|
|
||||||
NetBox supports integration with the [NAPALM automation](https://napalm-automation.net/) library. NAPALM allows NetBox to fetch live data from devices and return it to a requester via its REST API. Installation of NAPALM is optional. To enable it, install the `napalm` package using pip or pip3:
|
NetBox supports integration with the [NAPALM automation](https://napalm-automation.net/) library. NAPALM allows NetBox to fetch live data from devices and return it to a requester via its REST API. Installation of NAPALM is optional. To enable it, install the `napalm` package using pip or pip3:
|
||||||
|
|
||||||
@ -90,7 +92,7 @@ NetBox supports integration with the [NAPALM automation](https://napalm-automati
|
|||||||
# pip3 install napalm
|
# pip3 install napalm
|
||||||
```
|
```
|
||||||
|
|
||||||
## Remote File Storage (Optional)
|
### Remote File Storage (Optional)
|
||||||
|
|
||||||
By default, NetBox will use the local filesystem to storage uploaded files. To use a remote filesystem, install the [`django-storages`](https://django-storages.readthedocs.io/en/stable/) library and configure your [desired backend](../../configuration/optional-settings/#storage_backend) in `configuration.py`.
|
By default, NetBox will use the local filesystem to storage uploaded files. To use a remote filesystem, install the [`django-storages`](https://django-storages.readthedocs.io/en/stable/) library and configure your [desired backend](../../configuration/optional-settings/#storage_backend) in `configuration.py`.
|
||||||
|
|
||||||
@ -98,7 +100,7 @@ By default, NetBox will use the local filesystem to storage uploaded files. To u
|
|||||||
# pip3 install django-storages
|
# pip3 install django-storages
|
||||||
```
|
```
|
||||||
|
|
||||||
# Configuration
|
## Configuration
|
||||||
|
|
||||||
Move into the NetBox configuration directory and make a copy of `configuration.example.py` named `configuration.py`.
|
Move into the NetBox configuration directory and make a copy of `configuration.example.py` named `configuration.py`.
|
||||||
|
|
||||||
@ -114,7 +116,7 @@ Open `configuration.py` with your preferred editor and set the following variabl
|
|||||||
* `REDIS`
|
* `REDIS`
|
||||||
* `SECRET_KEY`
|
* `SECRET_KEY`
|
||||||
|
|
||||||
## ALLOWED_HOSTS
|
### ALLOWED_HOSTS
|
||||||
|
|
||||||
This is a list of the valid hostnames by which this server can be reached. You must specify at least one name or IP address.
|
This is a list of the valid hostnames by which this server can be reached. You must specify at least one name or IP address.
|
||||||
|
|
||||||
@ -124,7 +126,7 @@ Example:
|
|||||||
ALLOWED_HOSTS = ['netbox.example.com', '192.0.2.123']
|
ALLOWED_HOSTS = ['netbox.example.com', '192.0.2.123']
|
||||||
```
|
```
|
||||||
|
|
||||||
## DATABASE
|
### DATABASE
|
||||||
|
|
||||||
This parameter holds the database configuration details. You must define the username and password used when you configured PostgreSQL. If the service is running on a remote host, replace `localhost` with its address. See the [configuration documentation](../../configuration/required-settings/#database) for more detail on individual parameters.
|
This parameter holds the database configuration details. You must define the username and password used when you configured PostgreSQL. If the service is running on a remote host, replace `localhost` with its address. See the [configuration documentation](../../configuration/required-settings/#database) for more detail on individual parameters.
|
||||||
|
|
||||||
@ -141,7 +143,7 @@ DATABASE = {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## REDIS
|
### REDIS
|
||||||
|
|
||||||
Redis is a in-memory key-value store required as part of the NetBox installation. It is used for features such as webhooks and caching. Redis typically requires minimal configuration; the values below should suffice for most installations. See the [configuration documentation](../../configuration/required-settings/#redis) for more detail on individual parameters.
|
Redis is a in-memory key-value store required as part of the NetBox installation. It is used for features such as webhooks and caching. Redis typically requires minimal configuration; the values below should suffice for most installations. See the [configuration documentation](../../configuration/required-settings/#redis) for more detail on individual parameters.
|
||||||
|
|
||||||
@ -166,7 +168,7 @@ REDIS = {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## SECRET_KEY
|
### SECRET_KEY
|
||||||
|
|
||||||
Generate a random secret key of at least 50 alphanumeric characters. This key must be unique to this installation and must not be shared outside the local system.
|
Generate a random secret key of at least 50 alphanumeric characters. This key must be unique to this installation and must not be shared outside the local system.
|
||||||
|
|
||||||
@ -175,7 +177,7 @@ You may use the script located at `netbox/generate_secret_key.py` to generate a
|
|||||||
!!! note
|
!!! note
|
||||||
In the case of a highly available installation with multiple web servers, `SECRET_KEY` must be identical among all servers in order to maintain a persistent user session state.
|
In the case of a highly available installation with multiple web servers, `SECRET_KEY` must be identical among all servers in order to maintain a persistent user session state.
|
||||||
|
|
||||||
# Run Database Migrations
|
## Run Database Migrations
|
||||||
|
|
||||||
Before NetBox can run, we need to install the database schema. This is done by running `python3 manage.py migrate` from the `netbox` directory (`/opt/netbox/netbox/` in our example):
|
Before NetBox can run, we need to install the database schema. This is done by running `python3 manage.py migrate` from the `netbox` directory (`/opt/netbox/netbox/` in our example):
|
||||||
|
|
||||||
@ -194,7 +196,7 @@ Running migrations:
|
|||||||
|
|
||||||
If this step results in a PostgreSQL authentication error, ensure that the username and password created in the database match what has been specified in `configuration.py`
|
If this step results in a PostgreSQL authentication error, ensure that the username and password created in the database match what has been specified in `configuration.py`
|
||||||
|
|
||||||
# Create a Super User
|
## Create a Super User
|
||||||
|
|
||||||
NetBox does not come with any predefined user accounts. You'll need to create a super user to be able to log into NetBox:
|
NetBox does not come with any predefined user accounts. You'll need to create a super user to be able to log into NetBox:
|
||||||
|
|
||||||
@ -207,7 +209,7 @@ Password (again):
|
|||||||
Superuser created successfully.
|
Superuser created successfully.
|
||||||
```
|
```
|
||||||
|
|
||||||
# Collect Static Files
|
## Collect Static Files
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
# python3 manage.py collectstatic --no-input
|
# python3 manage.py collectstatic --no-input
|
||||||
@ -215,7 +217,7 @@ Superuser created successfully.
|
|||||||
959 static files copied to '/opt/netbox/netbox/static'.
|
959 static files copied to '/opt/netbox/netbox/static'.
|
||||||
```
|
```
|
||||||
|
|
||||||
# Test the Application
|
## Test the Application
|
||||||
|
|
||||||
At this point, NetBox should be able to run. We can verify this by starting a development instance:
|
At this point, NetBox should be able to run. We can verify this by starting a development instance:
|
||||||
|
|
@ -3,9 +3,9 @@ We'll set up a simple WSGI front end using [gunicorn](http://gunicorn.org/) for
|
|||||||
!!! info
|
!!! info
|
||||||
For the sake of brevity, only Ubuntu 18.04 instructions are provided here, but this sort of web server and WSGI configuration is not unique to NetBox. Please consult your distribution's documentation for assistance if needed.
|
For the sake of brevity, only Ubuntu 18.04 instructions are provided here, but this sort of web server and WSGI configuration is not unique to NetBox. Please consult your distribution's documentation for assistance if needed.
|
||||||
|
|
||||||
# Web Server Installation
|
## HTTP Daemon Installation
|
||||||
|
|
||||||
## Option A: nginx
|
### Option A: nginx
|
||||||
|
|
||||||
The following will serve as a minimal nginx configuration. Be sure to modify your server name and installation path appropriately.
|
The following will serve as a minimal nginx configuration. Be sure to modify your server name and installation path appropriately.
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ Restart the nginx service to use the new configuration.
|
|||||||
|
|
||||||
To enable SSL, consider this guide on [securing nginx with Let's Encrypt](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04).
|
To enable SSL, consider this guide on [securing nginx with Let's Encrypt](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04).
|
||||||
|
|
||||||
## Option B: Apache
|
### Option B: Apache
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
# apt-get install -y apache2 libapache2-mod-wsgi-py3
|
# apt-get install -y apache2 libapache2-mod-wsgi-py3
|
||||||
@ -102,7 +102,7 @@ To enable SSL, consider this guide on [securing Apache with Let's Encrypt](https
|
|||||||
!!! note
|
!!! note
|
||||||
Certain components of NetBox (such as the display of rack elevation diagrams) rely on the use of embedded objects. Ensure that your HTTP server configuration does not override the `X-Frame-Options` response header set by NetBox.
|
Certain components of NetBox (such as the display of rack elevation diagrams) rely on the use of embedded objects. Ensure that your HTTP server configuration does not override the `X-Frame-Options` response header set by NetBox.
|
||||||
|
|
||||||
# gunicorn Installation
|
## gunicorn Installation
|
||||||
|
|
||||||
Install gunicorn:
|
Install gunicorn:
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ Copy `/opt/netbox/contrib/gunicorn.py` to `/opt/netbox/gunicorn.py`. We make a c
|
|||||||
|
|
||||||
You may wish to edit this file to change the bound IP address or port number, or to make performance-related adjustments.
|
You may wish to edit this file to change the bound IP address or port number, or to make performance-related adjustments.
|
||||||
|
|
||||||
# systemd configuration
|
## systemd configuration
|
||||||
|
|
||||||
We'll use systemd to control the daemonization of NetBox services. First, copy `contrib/netbox.service` and `contrib/netbox-rq.service` to the `/etc/systemd/system/` directory:
|
We'll use systemd to control the daemonization of NetBox services. First, copy `contrib/netbox.service` and `contrib/netbox-rq.service` to the `/etc/systemd/system/` directory:
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
This guide explains how to implement LDAP authentication using an external server. User authentication will fall back to built-in Django users in the event of a failure.
|
This guide explains how to implement LDAP authentication using an external server. User authentication will fall back to built-in Django users in the event of a failure.
|
||||||
|
|
||||||
# Requirements
|
## Install Requirements
|
||||||
|
|
||||||
## Install openldap-devel
|
#### Install openldap-devel
|
||||||
|
|
||||||
On Ubuntu:
|
On Ubuntu:
|
||||||
|
|
||||||
@ -16,17 +16,17 @@ On CentOS:
|
|||||||
sudo yum install -y openldap-devel
|
sudo yum install -y openldap-devel
|
||||||
```
|
```
|
||||||
|
|
||||||
## Install django-auth-ldap
|
#### Install django-auth-ldap
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
pip3 install django-auth-ldap
|
pip3 install django-auth-ldap
|
||||||
```
|
```
|
||||||
|
|
||||||
# Configuration
|
## Configuration
|
||||||
|
|
||||||
Create a file in the same directory as `configuration.py` (typically `netbox/netbox/`) named `ldap_config.py`. Define all of the parameters required below in `ldap_config.py`. Complete documentation of all `django-auth-ldap` configuration options is included in the project's [official documentation](http://django-auth-ldap.readthedocs.io/).
|
Create a file in the same directory as `configuration.py` (typically `netbox/netbox/`) named `ldap_config.py`. Define all of the parameters required below in `ldap_config.py`. Complete documentation of all `django-auth-ldap` configuration options is included in the project's [official documentation](http://django-auth-ldap.readthedocs.io/).
|
||||||
|
|
||||||
## General Server Configuration
|
### General Server Configuration
|
||||||
|
|
||||||
!!! info
|
!!! info
|
||||||
When using Windows Server 2012 you may need to specify a port on `AUTH_LDAP_SERVER_URI`. Use `3269` for secure, or `3268` for non-secure.
|
When using Windows Server 2012 you may need to specify a port on `AUTH_LDAP_SERVER_URI`. Use `3269` for secure, or `3268` for non-secure.
|
||||||
@ -54,7 +54,7 @@ LDAP_IGNORE_CERT_ERRORS = True
|
|||||||
|
|
||||||
STARTTLS can be configured by setting `AUTH_LDAP_START_TLS = True` and using the `ldap://` URI scheme.
|
STARTTLS can be configured by setting `AUTH_LDAP_START_TLS = True` and using the `ldap://` URI scheme.
|
||||||
|
|
||||||
## User Authentication
|
### User Authentication
|
||||||
|
|
||||||
!!! info
|
!!! info
|
||||||
When using Windows Server 2012, `AUTH_LDAP_USER_DN_TEMPLATE` should be set to None.
|
When using Windows Server 2012, `AUTH_LDAP_USER_DN_TEMPLATE` should be set to None.
|
||||||
@ -79,7 +79,7 @@ AUTH_LDAP_USER_ATTR_MAP = {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
# User Groups for Permissions
|
## User Groups for Permissions
|
||||||
|
|
||||||
!!! info
|
!!! info
|
||||||
When using Microsoft Active Directory, support for nested groups can be activated by using `NestedGroupOfNamesType()` instead of `GroupOfNamesType()` for `AUTH_LDAP_GROUP_TYPE`. You will also need to modify the import line to use `NestedGroupOfNamesType` instead of `GroupOfNamesType` .
|
When using Microsoft Active Directory, support for nested groups can be activated by using `NestedGroupOfNamesType()` instead of `GroupOfNamesType()` for `AUTH_LDAP_GROUP_TYPE`. You will also need to modify the import line to use `NestedGroupOfNamesType` instead of `GroupOfNamesType` .
|
||||||
@ -121,7 +121,7 @@ AUTH_LDAP_CACHE_TIMEOUT = 3600
|
|||||||
!!! warning
|
!!! warning
|
||||||
Authentication will fail if the groups (the distinguished names) do not exist in the LDAP directory.
|
Authentication will fail if the groups (the distinguished names) do not exist in the LDAP directory.
|
||||||
|
|
||||||
# Troubleshooting LDAP
|
## Troubleshooting LDAP
|
||||||
|
|
||||||
`supervisorctl restart netbox` restarts the Netbox service, and initiates any changes made to `ldap_config.py`. If there are syntax errors present, the NetBox process will not spawn an instance, and errors should be logged to `/var/log/supervisor/`.
|
`supervisorctl restart netbox` restarts the Netbox service, and initiates any changes made to `ldap_config.py`. If there are syntax errors present, the NetBox process will not spawn an instance, and errors should be logged to `/var/log/supervisor/`.
|
||||||
|
|
@ -3,9 +3,10 @@
|
|||||||
The following sections detail how to set up a new instance of NetBox:
|
The following sections detail how to set up a new instance of NetBox:
|
||||||
|
|
||||||
1. [PostgreSQL database](1-postgresql.md)
|
1. [PostgreSQL database](1-postgresql.md)
|
||||||
2. [NetBox components](2-netbox.md)
|
1. [Redis](2-redis.md)
|
||||||
3. [HTTP daemon](3-http-daemon.md)
|
3. [NetBox components](3-netbox.md)
|
||||||
4. [LDAP authentication](4-ldap.md) (optional)
|
4. [HTTP daemon](4-http-daemon.md)
|
||||||
|
5. [LDAP authentication](5-ldap.md) (optional)
|
||||||
|
|
||||||
# Upgrading
|
# Upgrading
|
||||||
|
|
||||||
|
21
mkdocs.yml
21
mkdocs.yml
@ -1,15 +1,21 @@
|
|||||||
site_name: NetBox
|
site_name: NetBox Documentation
|
||||||
theme: readthedocs
|
site_url: https://netbox.readthedocs.io/
|
||||||
repo_url: https://github.com/netbox-community/netbox
|
repo_url: https://github.com/netbox-community/netbox
|
||||||
|
theme:
|
||||||
|
name: readthedocs
|
||||||
|
navigation_depth: 3
|
||||||
|
markdown_extensions:
|
||||||
|
- admonition:
|
||||||
|
|
||||||
pages:
|
nav:
|
||||||
- Introduction: 'index.md'
|
- Introduction: 'index.md'
|
||||||
- Installation:
|
- Installation:
|
||||||
- Installing NetBox: 'installation/index.md'
|
- Installing NetBox: 'installation/index.md'
|
||||||
- 1. PostgreSQL: 'installation/1-postgresql.md'
|
- 1. PostgreSQL: 'installation/1-postgresql.md'
|
||||||
- 2. NetBox: 'installation/2-netbox.md'
|
- 2. Redis: 'installation/2-redis.md'
|
||||||
- 3. HTTP Daemon: 'installation/3-http-daemon.md'
|
- 3. NetBox: 'installation/3-netbox.md'
|
||||||
- 4. LDAP (Optional): 'installation/4-ldap.md'
|
- 4. HTTP Daemon: 'installation/4-http-daemon.md'
|
||||||
|
- 5. LDAP (Optional): 'installation/5-ldap.md'
|
||||||
- Upgrading NetBox: 'installation/upgrading.md'
|
- Upgrading NetBox: 'installation/upgrading.md'
|
||||||
- Migrating to Python3: 'installation/migrating-to-python3.md'
|
- Migrating to Python3: 'installation/migrating-to-python3.md'
|
||||||
- Migrating to systemd: 'installation/migrating-to-systemd.md'
|
- Migrating to systemd: 'installation/migrating-to-systemd.md'
|
||||||
@ -76,6 +82,3 @@ pages:
|
|||||||
- Version 1.2: 'release-notes/version-1.2.md'
|
- Version 1.2: 'release-notes/version-1.2.md'
|
||||||
- Version 1.1: 'release-notes/version-1.1.md'
|
- Version 1.1: 'release-notes/version-1.1.md'
|
||||||
- Version 1.0: 'release-notes/version-1.0.md'
|
- Version 1.0: 'release-notes/version-1.0.md'
|
||||||
|
|
||||||
markdown_extensions:
|
|
||||||
- admonition:
|
|
||||||
|
Reference in New Issue
Block a user