FS#71521 - Build argon2 module with openldap package
Attached to Project:
Arch Linux
Opened by Oliver Mangold (omangold) - Friday, 16 July 2021, 09:00 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 18 July 2021, 21:04 GMT
Opened by Oliver Mangold (omangold) - Friday, 16 July 2021, 09:00 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 18 July 2021, 21:04 GMT
|
Details
Description:
The upstream openldap 2.4.x does include a contrib module for using argon2 for password hashes. I would ask for it be included in the arch package also. Nowadays argon2 is in widespread use, thus I think it would be useful for a wider audience. The change seems to be simple enough, it is effectively the same as for the sha2 module: --- --- PKGBUILD.orig 2021-07-16 10:45:30.687381221 +0200 +++ PKGBUILD 2021-07-16 10:52:20.870983182 +0200 @@ -7,7 +7,7 @@ arch=('x86_64') url="https://www.openldap.org/" license=('custom') -makedepends=('libtool' 'libsasl' 'e2fsprogs' 'util-linux' 'chrpath' 'unixodbc') +makedepends=('libtool' 'libsasl' 'e2fsprogs' 'util-linux' 'chrpath' 'unixodbc' 'libsodium') options=('!makeflags' 'emptydirs') source=(https://www.openldap.org/software/download/OpenLDAP/openldap-release/${pkgbase}-${pkgver}.tgz{,.asc} slapd.service openldap.tmpfiles openldap.sysusers) @@ -44,6 +44,7 @@ make -C contrib/slapd-modules/autogroup OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap make -C contrib/slapd-modules/lastbind OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap make -C contrib/slapd-modules/passwd/sha2 OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap + make -C contrib/slapd-modules/passwd/argon2 OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap } check() { @@ -76,6 +77,7 @@ package_openldap() { pkgdesc="Lightweight Directory Access Protocol (LDAP) client and server" depends=("libldap>=${pkgver}" 'libtool' 'unixodbc' 'perl') + optdepends=('libsodium: for argon2 password module') backup=('etc/openldap/slapd.conf' 'etc/openldap/slapd.ldif') cd ${pkgbase}-${pkgver} @@ -88,6 +90,7 @@ make -C contrib/slapd-modules/autogroup prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap DESTDIR="$pkgdir" install make -C contrib/slapd-modules/lastbind prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap DESTDIR="$pkgdir" install make -C contrib/slapd-modules/passwd/sha2 prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap DESTDIR="$pkgdir" install + make -C contrib/slapd-modules/passwd/argon2 prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap DESTDIR="$pkgdir" install make -C contrib/slapd-modules/nssov prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap DESTDIR="$pkgdir" install install -m644 contrib/slapd-modules/nssov/slapo-nssov.5 "${pkgdir}"/usr/share/man/man5/slapo-nssov.5 install -m644 contrib/slapd-modules/autogroup/slapo-autogroup.5 "${pkgdir}"/usr/share/man/man5/slapo-autogroup.5 --- Additional info: * package version(s) 2.4.59-1 |
This task depends upon
Closed by Antonio Rojas (arojas)
Sunday, 18 July 2021, 21:04 GMT
Reason for closing: Implemented
Additional comments about closing: 2.4.59-2
Sunday, 18 July 2021, 21:04 GMT
Reason for closing: Implemented
Additional comments about closing: 2.4.59-2