From 8143602e0555c7bc1aff0ee848687b7fd60ae3e9 Mon Sep 17 00:00:00 2001
From: Xueshan Feng <xueshan-feng@stanford.edu>
Date: Thu, 12 Mar 2020 22:48:06 -0700
Subject: [PATCH] Correct syntax to disable DIGEST-MD5.

---
 Dockerfile | 3 ++-
 build.sh   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index c05ce09..a389d3b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -35,7 +35,8 @@ RUN rm -rfv /etc/ldap/slapd.d/* /etc/ldap/* \
 COPY etc /etc/
 
 # Link default configuration path to customized paths
-RUN ln -s /usr/lib/slapd /usr/sbin/slapd
+RUN ln -s /usr/lib/slapd /usr/sbin/slapd \
+	&& ln -sf /etc/ldap/sasl2/slapd.conf /usr/lib/sasl2/slapd.conf
 
 # Start up file
 COPY start.sh /start.sh
diff --git a/build.sh b/build.sh
index 20f440f..979b6a0 100755
--- a/build.sh
+++ b/build.sh
@@ -45,7 +45,7 @@ function install_cyrus_sasl {
     cd ${WORKDIR}/${CYRUS_SASL_VERSION}
     sed -i'' '/maj_stat\s=\sgss_acquire_cred/{n;s/text->server_name/GSS_C_NO_NAME/}' plugins/gssapi.c
     ./configure --prefix=/usr --sysconfdir=/etc --libexecdir='${prefix}/lib' \
-        --disable-digest \
+        --enable-digest=no \
         --with-gss_impl=mit \
         CFLAGS="-Wno-cast-function-type -Wno-implicit-function-declaration"
     make
-- 
GitLab