Skip to main content

A simple django freeipa rpc authentication backend app with a simple server failover solution.

Project description

Django FreeIPA Auth is a backend authentication app with a simple server failover solution which can be included in a project’s authentication backends. This app communicates with a specified FreeIPA host server and authenticates a user to the django app upon successful freeIPA login.

Detailed documentation is in the “docs” directory.

Quick start

  1. Install using pip:

    pip install django_freeipa_auth

    If running on an old version of python without security updates, include the security marker:

    pip install django_freeipa_auth[security]
  2. Add “freeipa_auth” to your INSTALLED_APPS setting like this:

  3. Add “freeipa_auth.backends.FreeIpaRpcAuthBackend” to your AUTHENTICATION_BACKENDS in your settings file like this:

  4. Override settings in your settings file like this:

    FREEIPA_AUTH_SERVER = "" # defaults to None
    FREEIPA_AUTH_FAILOVER_SERVER = "" # defaults to None
    FREEIPA_AUTH_SSL_VERIFY = True # this would be the path to the ssl cert used
    FREEIPA_AUTH_UPDATE_USER_GROUPS = True # defaults to False
    FREEIPA_AUTH_USER_ATTRS_MAP = {"first_name": "givenname", "last_name": "sn", "email": "mail"}
  5. Start the development server and visit to login via freeipa rpc authentication.

Project details

Download files

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

Files for django-freeipa-auth, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django-freeipa-auth-2.0.0.tar.gz (7.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page