ldap-user-manager
The package uses composer to install a project dependency (phpmailer) during prepare(), which is a normal part of building PHP applications and not inherently dangerous; the source is from the official composer repository and the build process is transparent.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 90%): The package uses composer to install a project dependency (phpmailer) during prepare(), which is a normal part of building PHP applications and not inherently dangerous; the source is from the official composer repository and the build process is transparent.
1 higher static finding superseded - not the current verdict (shown for transparency)
alt_pkg_manager_install
A non-pip/npm package manager (pipx, uv, poetry, cargo install, go install, gem, conda…) fetches and builds an external package at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:29
composer require "phpmailer/phpmailer" --no-interaction --ignore-platform-reqs
PKGBUILD
1 offending line(s) highlighted# Maintainer: AlphaJack <alphajack at tuta dot io>
pkgname="ldap-user-manager"
pkgver=1.11
pkgrel=1
pkgdesc="A PHP web-based interface for LDAP user account management and self-service password change"
url="https://github.com/wheelybird/ldap-user-manager"
license=("MIT")
arch=("any")
depends=("php")
makedepends=("composer")
optdepends=("openldap: LDAP server")
source=("$pkgname-$pkgver.tar.gz::https://github.com/wheelybird/ldap-user-manager/archive/refs/tags/v$pkgver.tar.gz"
"config.env.php")
sha256sums=('71f464670bec4736f2369e7bdba7152887ca2b8be1a593a97456fd46b042a1b5'
'f38f5fb62435791422dadca7bf683dc12fe2d482f9594a13a6d33df00b72cf28')
backup=("etc/webapps/ldap-user-manager/config.env.php")
options=("!strip")
prepare(){
# include environmental variables
cd "$pkgname-$pkgver"
sed -i "www/includes/config.inc.php" \
-e 's|<?php|<?php\n\ninclude ("config.env.php");|'
# user maximum integer available
sed -i "www/includes/web_functions.inc.php" \
-e 's|rand(10000000, (int)100000000000);|rand(10000000, mt_getrandmax());|g'
# install phpmailer and replace its location
composer require "phpmailer/phpmailer" --no-interaction --ignore-platform-reqs
sed -i "www/includes/mail_functions.inc.php" \
-e "s|/opt/PHPMailer/|../vendor/phpmailer/phpmailer/|g"
}
package(){
cd "$pkgname-$pkgver"
install -d "$pkgdir/usr/share/webapps/ldap-user-manager"
cp -r "www"/* "$pkgdir/usr/share/webapps/ldap-user-manager"
install -D -o root -g http -m 640 "$srcdir/config.env.php" "$pkgdir/etc/webapps/ldap-user-manager/config.env.php"
ln -s "/etc/webapps/ldap-user-manager/config.env.php" "$pkgdir/usr/share/webapps/ldap-user-manager/includes/config.env.php"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |