Topic: Force STARTTLS LDAP Connection
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
I would like to use the LDAP configured by IRedMail on another server. I've managed to use the certificates of LetsEncrypt. I would like to force the LDAP to only allow binds using STARTTLS. But I can't use ldapmodify as I would like to. For example on this site they described to create an ldif like this one:
dn: olcDatabase={0}mdb,cn=config
changetype: modify
add: olcSecurity
olcSecurity: tls=1
If I try to apply theses changes by typing the follwing:
ldapmodify -x -D cn=Manager,dc=example,dc=com -W -a -f forcetls.ldif
I get the following message:
modifying entry "olcDatabase={1}mdb,cn=config"
ldap_modify: Insufficient access (50)
How can I edit this file? Or is there another way to enforce encryption with STARTTLS to the LDAP?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.