Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support lua-resty-ldap, removing openldap #280

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-apisix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion utils/install-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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() {
Expand Down