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.2.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

mprov_ldap_manager-0.0.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mprov_ldap_manager-0.0.2.tar.gz
  • Upload date:
  • Size: 9.0 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.2.tar.gz
Algorithm Hash digest
SHA256 0df5a35a152158e7b54e89574a995708af08e6f329c4ab7e3fa3023ee4a332d5
MD5 13bcf0634f5acf91bee4a8fea5ccb05d
BLAKE2b-256 9fdb040fb3fb7216dc26b8b690c20ba2fea215d5b389be506c848205320f0c08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mprov_ldap_manager-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3beddded127d36c46a1c9ccaaff18159d13418b023bbee69836acb1d0395eb83
MD5 9dfbac8227eb280c40faed31cbffaf13
BLAKE2b-256 be97813ca51cedd6159e7042871d629cbf84f93a123f9532d158cfbea46b8684

See more details on using hashes here.

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