389 Directory Server: Enterprise LDAP From Red Hat

389 Directory Server: Enterprise LDAP From Red Hat

389 Directory Server is the other serious open source LDAP implementation, and the one underneath FreeIPA.

Why it exists alongside OpenLDAP

Both implement LDAP. The practical differences are in operations rather than protocol.

389 DS has better online management: much of the configuration, including schema and indexes, can be changed against a running server through dsconf without restarts, and there is a web console. OpenLDAP can do a good deal of this too through cn=config, and the tooling around it is thinner.

389 DS also ships multi-master replication that is widely deployed and well documented, which matters when the directory cannot be a single point of failure.

It is the FreeIPA directory

Worth knowing even if you never deploy it standalone: when you run FreeIPA, you are running 389 DS with Kerberos, DNS and a CA bolted around it. Understanding the directory layer separately makes FreeIPA considerably less opaque when something goes wrong.

Standalone use

dscreate interactive
dsconf localhost backend create --suffix dc=example,dc=com --be-name userroot
dsidm localhost user create

The dsconf and dsidm tools are the modern interface and are more pleasant than hand-writing LDIF for routine work, which is the main argument for choosing it over OpenLDAP if you have no existing investment in either.

Clients

Same as any LDAP directory: SSSD on Linux, with TLS enforced. Our nsswitch and SSSD guide covers the client configuration and the distinction between identity and authentication that trips people up.

Operational caution

Indexes matter more than people expect. An unindexed attribute used in a common search produces a full scan of the directory on every login, which is invisible until the user count grows.

Monitor the replication agreements if you run more than one server; a silently broken agreement means two directories drifting apart.

License

389 Directory Server is released under the GNU General Public License v3 with an OpenSSL exception.