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.0.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c45da6cd44a83f903d22fdabf28a54b0f901366f897982226a1505741dec1e1 |
|
MD5 | 32dec3509f4c0d879fbe7c089c7775ca |
|
BLAKE2b-256 | 119d4f8e68ef3cd641ab3d05b31727a3e779bc49b115c67c95ee95b704c00e9b |
Close
Hashes for django_freeipa_auth_json-0.1.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2eefe828912902ace881ce2bc15b8f44ffdfc3249f6b66b9f3c6268ddc25f4f |
|
MD5 | 89e0cbd83dd693856634586b2d3fc4de |
|
BLAKE2b-256 | 0dde685034b2c2db118e2f9fd11a18ff5ff7871b434a78b1e6a1896359642558 |