Skip to main content

Django FreeIPA Auth for Email

This is an authentication system that uses the email in freeipa for authentication.

Setup

pip install django-freeipa-auth-email

settings.py - CustomUser

add the customuser before you do the initial migrations

AUTH_USER_MODEL = "freeipa_auth_email.CustomUser"

now run migrations

settings.py - AuthSystem

add this so that it authenticates with freeipa

INSTALLED_APPS = [
...
    "freeipa_auth_email",
...
]

AUTHENTICATION_BACKENDS = [
    # "django.contrib.auth.backends.ModelBackend", # disable in production unless during a maintenance window
    "freeipa_auth_email.backends.FreeIpaRpcAuthBackend",
]

FREEIPA_AUTH_BACKEND_ENABLED = True
FREEIPA_AUTH_SERVER = "ipa.example.com"  # defaults to None
# FREEIPA_AUTH_FAILOVER_SERVER = "ipa.failover.com" # defaults to None
FREEIPA_AUTH_SSL_VERIFY = False  # this would be the path to the ssl cert used
FREEIPA_AUTH_UPDATE_USER_GROUPS = True  # defaults to False
FREEIPA_AUTH_ALWAYS_UPDATE_USER = True
FREEIPA_AUTH_USER_ATTRS_MAP = {
    "first_name": "uid",
    "last_name": "sn",
    "email": "mail",
}
FREEIPA_AUTH_SERVER_TIMEOUT = 5

Release files for django-freeipa-auth-email 0.1.0

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-email 0.1.0
File Size Uploaded
django_freeipa_auth_email-0.1.0.tar.gz 18.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-freeipa-auth-email 0.1.0
File Interpreter ABI Platform
django_freeipa_auth_email-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.4 kB

Release files / django_freeipa_auth_email-0.1.0.tar.gz

Download URL django_freeipa_auth_email-0.1.0.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dc5bee847cd4db058b62490e5c5763b7b68999a46c62667d162c590f6e5ddf08
BLAKE2b-256 checksum
How to use checksums
f69f9b8eac2e610af2b8bf686d46df12904ef7d3a9d0d8b67b2f1a8d68514f46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / django_freeipa_auth_email-0.1.0-py3-none-any.whl

Download URL django_freeipa_auth_email-0.1.0-py3-none-any.whl
Size 21.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8855c8688d1443c1917cda2ce0e5fd7d7984fe6dad9fa2777c8d537f954bed7a
BLAKE2b-256 checksum
How to use checksums
b16a5ea1a878b939d2944c320be4e91ed025c95004b702c6f514d95e50eaed89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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