ldap-user-manager

LOW
maintainer AlphaJack 0 votes scanned 2026-09-17 00:27:14.276658
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-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

Report a package

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

0 / 4000
Your suggestion