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
freeipa
toINSTALLED_APPS
in the settings file.
INSTALLED_APPS = [
...
'freeipa',
]
- Add
freeipa.auth.backends.AuthenticationBackend
toAUTHENTICATION_BACKENDS
in 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
Close
Hashes for django-freeipa-auth-json-0.1.1.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98edc446244033f8ee70b949d8ed7f8d9f9b4224c6da890979dd36253121d01a |
|
MD5 | 207bb91c7a3fa9126cdc4478cecd5200 |
|
BLAKE2b-256 | 6d9ec78c299bf38b33e2c28d8b60e0ebba7290b9a3567c913a43cd79927ceb1b |
Close
Hashes for django_freeipa_auth_json-0.1.1.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a861db808a10e84cd17d9e1c1ecd15b9a476e98b6155b8d5340cdec1c9230d4 |
|
MD5 | b82709a23cf35008d204996437fbcd07 |
|
BLAKE2b-256 | 85a1b98fd58c2209179ccdbe588b3263fedf6ebfecad4c9a388d473bdf0a301c |