aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTetsuo NOMRUA <github@konoha.jp>2020-02-12 12:57:25 +0900
committerLeo <thinkabit.ukim@gmail.com>2020-02-12 10:48:34 -0300
commitd9bd8d6389b68dd9a8154e3234bc9710dce3b4ad (patch)
treea539e2fd3cb60356a4ae696ac68040e005d4c741
parentce2508fa2be3d590c2f614ac269a7260bc797e85 (diff)
downloadaports-d9bd8d6389b68dd9a8154e3234bc9710dce3b4ad.tar.gz
aports-d9bd8d6389b68dd9a8154e3234bc9710dce3b4ad.tar.bz2
aports-d9bd8d6389b68dd9a8154e3234bc9710dce3b4ad.tar.xz
main/openldap: Add support for sha2 password
fixes #11217
-rw-r--r--main/openldap/APKBUILD18
1 files changed, 17 insertions, 1 deletions
diff --git a/main/openldap/APKBUILD b/main/openldap/APKBUILD
index 0441be9019..14532db6a3 100644
--- a/main/openldap/APKBUILD
+++ b/main/openldap/APKBUILD
@@ -13,7 +13,7 @@
#
pkgname=openldap
pkgver=2.4.49
-pkgrel=0
+pkgrel=1
pkgdesc="LDAP Server"
url="http://www.openldap.org/"
arch="all"
@@ -39,6 +39,7 @@ subpackages="
$pkgname-clients
$pkgname-mqtt
$pkgname-passwd-pbkdf2:passwd_pbkdf2
+ $pkgname-passwd-sha2:passwd_sha2
$pkgname-backend-all:_backend_all:noarch
$pkgname-overlay-all:_overlay_all:noarch
$pkgname-openrc
@@ -126,6 +127,10 @@ build() {
make prefix=/usr libexecdir=/usr/lib \
-C contrib/slapd-modules/passwd/pbkdf2
+ # Build passwd sha2.
+ make prefix=/usr libexecdir=/usr/lib \
+ -C contrib/slapd-modules/passwd/sha2
+
# Build C++ library.
cd contrib/ldapc++
autoreconf -fi
@@ -151,6 +156,10 @@ package() {
make DESTDIR="$pkgdir" prefix=/usr libexecdir=/usr/lib \
-C contrib/slapd-modules/passwd/pbkdf2 install
+ # Install passwd sha2.
+ make DESTDIR="$pkgdir" prefix=/usr libexecdir=/usr/lib \
+ -C contrib/slapd-modules/passwd/sha2 install
+
make DESTDIR="$pkgdir" \
-C contrib/ldapc++ install
@@ -217,6 +226,13 @@ passwd_pbkdf2() {
_submv "usr/lib/openldap/pw-pbkdf2.*"
}
+passwd_sha2() {
+ pkgdesc="SHA2 OpenLDAP support"
+ depends="$pkgname"
+
+ _submv "usr/lib/openldap/pw-sha2.*"
+}
+
_backend_all() {
pkgdesc="Virtual package that installs all OpenLDAP backends"
depends="$_backends"