ldap-user-manager

maintainer AlphaJack · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged 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

LOW AI review downgraded a static finding 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)
MEDIUM External install via pipx/uv/poetry/cargo/go/gem 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
1# Maintainer: AlphaJack <alphajack at tuta dot io>
2
3pkgname="ldap-user-manager"
4pkgver=1.11
5pkgrel=1
6pkgdesc="A PHP web-based interface for LDAP user account management and self-service password change"
7url="https://github.com/wheelybird/ldap-user-manager"
8license=("MIT")
9arch=("any")
10depends=("php")
11makedepends=("composer")
12optdepends=("openldap: LDAP server")
13source=("$pkgname-$pkgver.tar.gz::https://github.com/wheelybird/ldap-user-manager/archive/refs/tags/v$pkgver.tar.gz"
14 "config.env.php")
15sha256sums=('71f464670bec4736f2369e7bdba7152887ca2b8be1a593a97456fd46b042a1b5'
16 'f38f5fb62435791422dadca7bf683dc12fe2d482f9594a13a6d33df00b72cf28')
17backup=("etc/webapps/ldap-user-manager/config.env.php")
18options=("!strip")
19
20prepare(){
21 # include environmental variables
22 cd "$pkgname-$pkgver"
23 sed -i "www/includes/config.inc.php" \
24 -e 's|<?php|<?php\n\ninclude ("config.env.php");|'
25 # user maximum integer available
26 sed -i "www/includes/web_functions.inc.php" \
27 -e 's|rand(10000000, (int)100000000000);|rand(10000000, mt_getrandmax());|g'
28 # install phpmailer and replace its location
29 composer require "phpmailer/phpmailer" --no-interaction --ignore-platform-reqs
30 sed -i "www/includes/mail_functions.inc.php" \
31 -e "s|/opt/PHPMailer/|../vendor/phpmailer/phpmailer/|g"
32}
33
34package(){
35 cd "$pkgname-$pkgver"
36 install -d "$pkgdir/usr/share/webapps/ldap-user-manager"
37 cp -r "www"/* "$pkgdir/usr/share/webapps/ldap-user-manager"
38 install -D -o root -g http -m 640 "$srcdir/config.env.php" "$pkgdir/etc/webapps/ldap-user-manager/config.env.php"
39 ln -s "/etc/webapps/ldap-user-manager/config.env.php" "$pkgdir/usr/share/webapps/ldap-user-manager/includes/config.env.php"
40}
41

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion