diff --git a/package-apisix.sh b/package-apisix.sh index fffa6fae5..8a392bbf3 100755 --- a/package-apisix.sh +++ b/package-apisix.sh @@ -7,7 +7,7 @@ dist=$(cat /tmp/dist) ARCH=${ARCH:-`(uname -m | tr '[:upper:]' '[:lower:]')`} # Determine the dependencies -dep_ldap="openldap-devel" +dep_ldap="lua-resty-ldap" if [ "$PACKAGE_TYPE" == "deb" ] then # the pkg contains the so library could be libldap-2.5 or libldap-2.4-2 diff --git a/utils/install-common.sh b/utils/install-common.sh index c5b21a693..c106feaa3 100755 --- a/utils/install-common.sh +++ b/utils/install-common.sh @@ -23,6 +23,10 @@ install_dependencies_rpm() { yum install -y yum-utils readline-devel } +install lua_resty_ldap() { + luarocks install lua-resty-ldap +} + install_dependencies_deb() { # install basic dependencies DEBIAN_FRONTEND=noninteractive apt-get update @@ -53,7 +57,7 @@ install_openresty_deb() { install_openresty_rpm() { # install openresty and openssl111 yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo - yum install -y openresty openresty-openssl111-devel pcre pcre-devel openldap-devel + yum install -y openresty openresty-openssl111-devel pcre pcre-devel } install_luarocks() {