Skip to main content

An add-on to the mPCC to enable it to manage an LDAP directory.

Project description

mprov_ldap_manager

This is an mPCC python module add-on that will allow the mPCC to manage an LDAP directory.

Installation

Follow these easy steps to enable this module in the mPCC

  1. Go into /var/www/mprov_control_center and run source bin/activate from a bash prompt.
  2. pip install mprov_ldap_manager This will install the python module into your mPCC environment
  3. Edit the /var/www/mprov_control_center/mprov_control_center/settings.py file and add mprov_ldap_manager to the bottom of the INSTALLED_APPS array.
  4. In the same settings.py file, add the following:
DATABASES = {
    'ldap': {
        'ENGINE': 'ldapdb.backends.ldap',
        'NAME': 'ldap://ldap.nodomain.org/',
        'USER': 'cn=admin,dc=nodomain,dc=org',
        'PASSWORD': 'some_secret_password',
        'BASEDN': 'dc=somedomain,dc=something',
        'CONNECTION_OPTIONS': {
           ldap.OPT_X_TLS_REQUIRE_CERT: ldap.OPT_X_TLS_NEVER 
         }
     },
     'default': {
        # your default DB config
     }
}
DATABASE_ROUTERS = ['ldapdb.router.Router']
'''


5. Run `touch /var/www/mprov_control_center/mprov_control_center/wsgi.py` to refresh the mPCC or restart your webserver.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mprov_ldap_manager-0.0.3.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

mprov_ldap_manager-0.0.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file mprov_ldap_manager-0.0.3.tar.gz.

File metadata

  • Download URL: mprov_ldap_manager-0.0.3.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for mprov_ldap_manager-0.0.3.tar.gz
Algorithm Hash digest
SHA256 add118d2827906d5ac98db041cfddfb333284e2656cfe7daafa219297c90af5d
MD5 c3c50562d850fa7395b3af2328c16f28
BLAKE2b-256 85b0725be9806118563338c6221e548b58eee0980d526b5288e870f010b2129e

See more details on using hashes here.

Provenance

File details

Details for the file mprov_ldap_manager-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mprov_ldap_manager-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2eaeb03a84217852815cdf593e10441fa9a1aae61f5de922448e29b3bff7b404
MD5 7ec824164f9a96718c49984480d12748
BLAKE2b-256 a0f33c5387b01ad4d214d95ee630132577c8092ff573657ee8005999f47875d9

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page