Skip to main content

NetBox plugin for FreeIPA integration - manage enrolled hosts

Project description

NetBox FreeIPA Plugin

NetBox plugin for integration with FreeIPA identity management system. View and manage FreeIPA enrolled hosts directly from NetBox.

Features

  • View enrolled hosts from FreeIPA
  • Detailed host information (IP, MAC, certificates, SSH keys)
  • Automatic background synchronization
  • Manual sync option
  • REST API support
  • Filtering and search

Compatibility

NetBox v4.0 or later

Installation

pip install netbox-freeipa

Configuration

Edit /opt/netbox/netbox/netbox/configuration.py:

PLUGINS = ['netbox_freeipa']

PLUGINS_CONFIG = {
    'netbox_freeipa': {
        'freeipa_host': 'ipa.example.com',
        'freeipa_username': 'admin',
        'freeipa_password': 'your-password',
        # Optional settings:
        'freeipa_verify_ssl': True,
        'sync_interval': 300,  # seconds
        'auto_sync_enabled': True,
    }
}

Run migrations and restart:

cd /opt/netbox/netbox
python manage.py migrate
sudo systemctl restart netbox netbox-rq

Usage

Navigate to Plugins > FreeIPA Hosts in NetBox menu.

REST API

# List hosts
curl -H "Authorization: Token YOUR_TOKEN" \
     https://netbox.example.com/api/plugins/freeipa/hosts/

# Trigger sync
curl -X POST -H "Authorization: Token YOUR_TOKEN" \
     https://netbox.example.com/api/plugins/freeipa/hosts/sync/

Build & Publish

# Install build tools
pip install build twine

# Build package
python -m build

# Upload to PyPI
twine upload dist/*

License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_freeipa-0.1.1.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_freeipa-0.1.1-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file netbox_freeipa-0.1.1.tar.gz.

File metadata

  • Download URL: netbox_freeipa-0.1.1.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for netbox_freeipa-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f83da602e4124e14f2681421ec87e27434b2bc1d0fe4bf048464499d1a41b554
MD5 0f20d6f3430c5adbaaa0fd9283b82897
BLAKE2b-256 d701574f058280122031134688365a0887900dab767d63f925b7319d8c38c9ea

See more details on using hashes here.

File details

Details for the file netbox_freeipa-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: netbox_freeipa-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for netbox_freeipa-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b12e9225b0c5fddfaa646181dc4025bdc485a1d1adf3a440f77caeae1fa7272c
MD5 0826ab0ba273ff228d4f8c66ed0dc252
BLAKE2b-256 43b3ea95070695ee39646b9ab76ea9b2075a118da16043c2dc8a7d0e84bbd2d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page