djangopython-3.xldapdjango-auth-ldapopenwisp

Django LDAP with OpenWisp Django-IPAM


I'm trying to setup OpenWisp Django-IPAM with WebUI authentication via LDAP. We have an OpenLDAP server within our network and I am looking to use a simple LDAP lookup to check for a valid user object for login.

I see that the API's generics.py file has an authentication_classes section, which then contains SessionAuthentication and BasicAuthentication.

Is this the same mechanism that handles the authentication for the Web UI? Is there a way to configure OpenWisp Django-IPAM to use something like Django-Auth-LDAP for authentication when logging into the web interface?


Solution

  • the authentication of the web UI of OpenWISP Django-IPAM works like default authentication of other django projects. So to use LDAP authentication at the web UI, you simply need to edit your settings.py file to contain the setups as shown here.