Impossible to configure GnuTLS' %SERVER_PRECEDENCE setting in slapd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openldap (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
While securing our boxes, I noticed that testssl was flagging the absence of server cipher order:
./testssl.sh localhost:636
Has server cipher order? nope (NOT ok)
While trying to set it using the following command, slapd just crashed:
dapmodify -Y EXTERNAL -H ldapi:/// <<'EOF'
dn: cn=config
changetype: modify
replace: olcTLSCipherSuite
olcTLSCipherSuite: SECURE:
-
EOF
Without the %SERVER_PRECEDENCE, it works.
According to https:/
Same issue happens with %FALLBACK_SCSV ("Downgrade attack prevention NOT supported"). There seems to be no setting to fix "Secure Client-Initiated Renegotiation".
However, adding %SAFE_RENEGOTIATION (although not fixing anything) at least doesn't crash slapd
1) root@xl:~# lsb_release -rd
Description: Ubuntu 14.04.4 LTS
Release: 14.04
2) root@xl:~# apt-cache policy slapd
slapd:
Installed: 2.4.31-
Candidate: 2.4.31-
Version table:
*** 2.4.31-
500 http://
500 http://
100 /var/lib/
2.
500 http://
3) What I expected to happen:
There should be a a way to enforce server cipher order in slapd, as well as protect against Client-Initiated Renegotiation and prevent downgrade attacks
4) What happened instead
When trying to enable these settings that would make slapd more secure, it crashes (and after restart, the requested settings are still not enabled)
Thanks for the report.
Confirmed in trusty, but cannot reproduce in xenial. However, gnutls-serv in trusty does accept the flag.
Can you please check whether this still happens for you on a more recent release, and whether your SSL tester actually reports the problem is fixed?