FreeIPA authentication for Django using FreeIPA JSON API
Project description
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
- Install using
pip
pip install django-freeipa-auth-json
- Add
freeipatoINSTALLED_APPSin the settings file.
INSTALLED_APPS = [
...
'freeipa',
]
- Add
freeipa.auth.backends.AuthenticationBackendtoAUTHENTICATION_BACKENDSin the settings file.
AUTHENTICATION_BACKENDS = [
...
'freeipa.auth.backends.AuthenticationBackend',
]
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-freeipa-auth-json-0.1.2.dev1.tar.gz.
File metadata
- Download URL: django-freeipa-auth-json-0.1.2.dev1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65092acbc39e1fb7c62a4e884f1b94127bfe1f725e4f14bd0e2de62a2fa99305
|
|
| MD5 |
6325ffb57e47650e5c15712233b945b4
|
|
| BLAKE2b-256 |
2dddfd21b3404b0a79f73e7a285b533b78aff78168889fc8d5efb2972939e8fa
|
File details
Details for the file django_freeipa_auth_json-0.1.2.dev1-py3-none-any.whl.
File metadata
- Download URL: django_freeipa_auth_json-0.1.2.dev1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad347de5c0e12eda653b403e80a3583c87712941a07dc10a399396178196a56c
|
|
| MD5 |
6711e5396f7e1fbe7a2e3650a4aff3e1
|
|
| BLAKE2b-256 |
a459f251698f803e50a64066e1e750694e3cf740a810d47bc9fd0faa16958c27
|