35.2. Configuring the Directory Server Component


To configure DS automatically using the ldapmodify utility:
  1. Use ldapmodify to make the configuration changes for you:
    ldapmodify -h localhost -p 389 -D 'cn=directory manager' -W << EOF
    dn: cn=encryption,cn=config
    changeType: modify
    replace: sslVersionMin
    sslVersionMin: TLS1.2
    EOF
    Copy to Clipboard Toggle word wrap
  2. Restart DS to load the new configuration:
    # systemctl restart dirsrv@EXAMPLE-COM.service
    Copy to Clipboard Toggle word wrap
To configure Directory Server (DS) manually:
  1. Stop DS:
    # systemctl stop dirsrv@EXAMPLE-COM.service
    Copy to Clipboard Toggle word wrap
  2. Open the /etc/dirsrv/slapd-EXAMPLE-COM/dse.ldif file, and modify the cn=encryption,cn=config entry to set the following:
    sslVersionMin: TLS1.2
    Copy to Clipboard Toggle word wrap
  3. Start DS:
    # systemctl start dirsrv@EXAMPLE-COM.service
    Copy to Clipboard Toggle word wrap
Important
Make sure you shut down the server first before editing the dse.ldif file manually. DS reads this file only once at startup, therefore any manual changes while the server is running will be lost if the configuration changes through LDAP. Editing the dse.ldif file is recommended only for changes to attributes which cannot be altered dynamically.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat