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.2.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65092acbc39e1fb7c62a4e884f1b94127bfe1f725e4f14bd0e2de62a2fa99305 |
|
MD5 | 6325ffb57e47650e5c15712233b945b4 |
|
BLAKE2b-256 | 2dddfd21b3404b0a79f73e7a285b533b78aff78168889fc8d5efb2972939e8fa |
Close
Hashes for django_freeipa_auth_json-0.1.2.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad347de5c0e12eda653b403e80a3583c87712941a07dc10a399396178196a56c |
|
MD5 | 6711e5396f7e1fbe7a2e3650a4aff3e1 |
|
BLAKE2b-256 | a459f251698f803e50a64066e1e750694e3cf740a810d47bc9fd0faa16958c27 |