This patch enables yp lookups for clamav user/group.
----------------------------------------------------------------------
| Jim Hranicky, Senior SysAdmin UF/CISE Department |
| E314D CSE Building Phone (352) 392-1499 |
| [EMAIL PROTECTED] http://www.cise.ufl.edu/~jfh |
----------------------------------------------------------------------
--- configure.in.orig 2004-02-20 13:37:17.000000000 -0500
+++ configure.in 2004-02-20 13:35:32.000000000 -0500
@@ -116,6 +116,10 @@
[ --enable-id-check Use id utility instead of /etc/passwd parsing],
use_id="yes", use_id="no")
+AC_ARG_ENABLE(yp-check,
+[ --enable-yp-check Use ypmatch utility instead of /etc/passwd parsing],
+use_yp="yes", use_yp="no")
+
dnl clamav user
AC_ARG_WITH(user,
[ --with-user=uid name of the clamav user (default=clamav).],
@@ -435,6 +439,12 @@
clamavgroup=`/usr/bin/nidump group . |grep ${clamav_group}`
fi
+ if test "$use_yp" = "yes"
+ then
+ clamavuser=`ypmatch ${clamav_user} passwd`
+ clamavgroup=`ypmatch ${clamav_group} group`
+ fi
+
if test -z "$clamavuser" || test -z "$clamavgroup"
then
echo "ERROR: User \"$clamav_user\" (and/or group \"$clamav_group\") doesn't
exist. Please create it. You can omit this check with the --disable-clamav option."