Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

django-freeipa-auth

django-freeipa-auth provides a Django backend authentication app for FreeIPA authentication. The app uses FreeIPA JSON API for its operation.

Quick start

  1. Install using pip
pip install django-freeipa-auth-json
  1. Add freeipa to INSTALLED_APPS in the settings file.
INSTALLED_APPS = [
    ...
    'freeipa',
]
  1. Add freeipa.auth.backends.AuthenticationBackend to AUTHENTICATION_BACKENDS in the settings file.
AUTHENTICATION_BACKENDS = [
    ...
    'freeipa.auth.backends.AuthenticationBackend',
]
  1. Add following settings to the setting files
# REQUIRED: 
IPA_AUTH_SERVER = 'ipa.demo1.freeipa.org'

# OPTIONAL:
IPA_AUTH_SERVER_SSL_VERIFY = True
IPA_AUTH_SERVER_API_VERSION = '2.230'
# Automatically update user information when logged in
IPA_AUTH_AUTO_UPDATE_USER_INFO = True  
# Automatically create and update user groups.
IPA_AUTH_UPDATE_USER_GROUPS = True 

# Dictionary mapping FreeIPA field to Django user attributes
IPA_AUTH_FIELDS_MAP = { 'givenname': 'first_name',
                        'sn'       : 'last_name',
                        'mail'     : 'email',
                      }

Command Line

django-freeipa-auth provide syncipa command to import and update users stored in Django database with FreeIPA server.

usage: manage.py syncipa [-h] [-u USER] [-p PASSWD] 

Synchronizing data with FreeIPA server

optional arguments:
  -h, --help                  show this help message and exit

login arguments: require a user with permission to query all users (e.g. administrator.)
  -u USER, --user USER
  -p PASSWD, --passwd PASSWD  

Release files for django-freeipa-auth-json 0.1.2.dev1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-freeipa-auth-json 0.1.2.dev1
File Size Uploaded
django-freeipa-auth-json-0.1.2.dev1.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-freeipa-auth-json 0.1.2.dev1
File Interpreter ABI Platform
django_freeipa_auth_json-0.1.2.dev1-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / django-freeipa-auth-json-0.1.2.dev1.tar.gz

Download URL django-freeipa-auth-json-0.1.2.dev1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
65092acbc39e1fb7c62a4e884f1b94127bfe1f725e4f14bd0e2de62a2fa99305
BLAKE2b-256 checksum
How to use checksums
2dddfd21b3404b0a79f73e7a285b533b78aff78168889fc8d5efb2972939e8fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

Release files / django_freeipa_auth_json-0.1.2.dev1-py3-none-any.whl

Download URL django_freeipa_auth_json-0.1.2.dev1-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad347de5c0e12eda653b403e80a3583c87712941a07dc10a399396178196a56c
BLAKE2b-256 checksum
How to use checksums
a459f251698f803e50a64066e1e750694e3cf740a810d47bc9fd0faa16958c27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page