docker-netbox icon indicating copy to clipboard operation
docker-netbox copied to clipboard

LDAP Support

Open Yub0 opened this issue 6 years ago • 1 comments

Hello,

It's possible to add LDAP support ? I see the repo has ldap tag but no ldap var in the configuration file.

Thanks

Yub0 avatar Mar 19 '19 14:03 Yub0

LDAP-support was included with PR #18, which was merged into the ldap branch and for which the Docker hub image/tag pitkley/netbox:ldap exists.

Looking at the Netbox documentation regarding LDAP, a ldap_config.py has to be created and put into the netbox/netbox/ directory. For this image that would mean creating the file, and mounting it to the path /usr/src/netbox/netbox/ldap_config.py.

You can do that by adding the following snippet to the netbox container definition in the docker-compose.yml like so:

services:
    ...
    netbox:
        ...
        volumes:
            - /path/on/host/to/ldap_config.py:/usr/src/netbox/netbox/ldap_config.py:ro

LDAP-support in this image was an external contribution and I'm not using the feature myself, so I'm not 100-percent sure if that is all that is required. Maybe @rcmurphy can chime in here?

pitkley avatar Mar 23 '19 11:03 pitkley