Gentoo, OpenLDAP und BIND

Der Versuch einen BIND an ein OpenLDAP-Verzeichnis “zu klemmen” war zunächst nicht allzu erfolgreich. Prinzipiell gibt es hierzu zwei Möglichkeiten, einerseits über DLZ+LDAP und andererseits über den sdb-ldap-Patch. Die erste Variante wurde in zahlreichen Foren/Blogs als die unschönere beschrieben, bis dato war es aber die einzige mit Gentoos Bind zu realisierende (USE=”dlz ldap”).

Nachdem ich nochmal eine Nacht drüber geschlafen habe, setzte ich mich heute Vormittag daran den sdb-ldap-Patch in Gentoos Bind zu integrieren – Ergebnis ist das bind-9.5.0_p1-r1 Ebuild (USE=”sdb-ldap).

Zur Konfiguration gibt es nicht viele Worte zu verlieren, eine knappe Doku findet sich auf den Seiten des RRZE der Uni Erlangen.

About Tobias Scherbaum

Sysadmin. Autor. Gentoo-Evangelist.
This entry was posted in Sysadmin. Bookmark the permalink.

2 Responses to Gentoo, OpenLDAP und BIND

  1. Andreas Piening says:

    Thank you for your work.
    I have bind version 9.5.0_p2-r1 and my LDAP-lookup works, but there’s one thing I wonder about: I use GoSA (http://gosa.gonicus.de/) to manage the ldap-entries. GoSA inserts my zone as “zoneName=myzone.de.” (regard the trailing dot). Bind doesn’t find this zone, since it searches for “zoneName=myzone.de” (without the dot!).
    In my named.conf the zone definition includes the terminating dot, which makes sense. I don’t exactly know if it is correct or not to insert the zoneName with the trailing dot in the LDAP-tree, since I have seen both. In text-file-based bind-config the dot must exist to terminate the top-level zone.
    Do you know andything about this conflict?

  2. Sorry, no details on this problem. In my (test) configuration I have no terminating dot neither in named.conf, nor does zoneName have one. Don’t know what GoSA is doing there – is GoSA the only application where you’ve seen the terminating dot?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">