Skip to content

freeipa/zone2dyndb-ldif

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

zone2ldap

This hacky script reads DNS master file (RFC 1035 section 5) and outputs LDIF file with data suitable for bind-dyndb-ldap plugin.

Usage

zone2dyndb-ldif.py <zone file> <zone origin> <LDAP DNS base>

Example

  • Zone (master) file: /var/named/zone.example.com.db
  • Zone name (origin): zone.example.com.
  • DN of DNS container in your LDAP tree: "cn=dns, dc=ipa, dc=example, dc=com"
    • This example corresponds to FreeIPA domain "ipa.example.com."
  • Command:
    zone2dyndb-ldif.py /var/named/zone.example.com.db zone.example.com. "cn=dns, dc=ipa, dc=example, dc=com"

How to get the DN in your FreeIPA LDAP tree

  1. If needed create a kerberos ticket

    # admin can be replaced with a user of course
    kinit admin 
  2. Run a search against your ldap for the ipaDNSContainer

    ldapsearch objectClass=ipaDNSContainer dn

Depedencies

Useful links

About

DNS master file -> bind-dyndb-ldap convertor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages