Skip to content
Snippets Groups Projects
Commit c773979c authored by Xueshan Feng's avatar Xueshan Feng
Browse files

Add comments about cyrus_sasl patch.

parent d96bd8d4
No related branches found
No related tags found
No related merge requests found
...@@ -41,9 +41,13 @@ function download_packages { ...@@ -41,9 +41,13 @@ function download_packages {
# Insatall cyrus_sasl # Insatall cyrus_sasl
function install_cyrus_sasl { function install_cyrus_sasl {
cd ${WORKDIR}/${CYRUS_SASL_VERSION} cd ${WORKDIR}/${CYRUS_SASL_VERSION}
# Replace text->server_name with GSS_C_NO_NAME in plugins/gssapi.c to alllow
# any host to acquire GSSAPIcredentials. Use case like service bind load balancer.
sed -i'' '/maj_stat\s=\sgss_acquire_cred/{n;s/text->server_name/GSS_C_NO_NAME/}' plugins/gssapi.c sed -i'' '/maj_stat\s=\sgss_acquire_cred/{n;s/text->server_name/GSS_C_NO_NAME/}' plugins/gssapi.c
./configure --prefix=${ARTIFACTS}/usr --sysconfdir='${prefix}/etc' --libexecdir='${prefix}/lib' \ ./configure \
--with-gss_impl=mit \ --prefix=${ARTIFACTS}/usr \
--sysconfdir='${prefix}/etc' \
--libexecdir='${prefix}/lib' \
CFLAGS="-Wno-cast-function-type -Wno-implicit-function-declaration" && make && make install CFLAGS="-Wno-cast-function-type -Wno-implicit-function-declaration" && make && make install
ln -s ${ARTIFACTS}/usr/lib/sasl2 /usr/lib/sasl2 ln -s ${ARTIFACTS}/usr/lib/sasl2 /usr/lib/sasl2
} }
...@@ -84,7 +88,6 @@ function install_openldap { ...@@ -84,7 +88,6 @@ function install_openldap {
--with-cyrus-sasl \ --with-cyrus-sasl \
--with-threads \ --with-threads \
--with-tls=openssl \ --with-tls=openssl \
LDFLAGS="-L/usr/local/lib -Wl,-rpath,/artifacts/usr/lib/sasl2" \
CFLAGS="-Wno-cast-function-type \ CFLAGS="-Wno-cast-function-type \
-Wno-implicit-function-declaration \ -Wno-implicit-function-declaration \
-Wno-incompatible-pointer-types \ -Wno-incompatible-pointer-types \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment