SPECS: horde-passwd.spec - set default list of usernames where pas...
glen
glen at pld-linux.org
Mon Aug 22 21:41:46 CEST 2005
Author: glen Date: Mon Aug 22 19:41:46 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- set default list of usernames where password set is refused based on target machine system users
---- Files affected:
SPECS:
horde-passwd.spec (1.14 -> 1.15)
---- Diffs:
================================================================
Index: SPECS/horde-passwd.spec
diff -u SPECS/horde-passwd.spec:1.14 SPECS/horde-passwd.spec:1.15
--- SPECS/horde-passwd.spec:1.14 Mon Aug 22 21:03:39 2005
+++ SPECS/horde-passwd.spec Mon Aug 22 21:41:41 2005
@@ -6,7 +6,7 @@
Summary(pl): passwd - moduł do zmieniania haseł w Horde
Name: horde-passwd
Version: 3.0
-Release: 0.4
+Release: 0.10
License: LGPL
Vendor: The Horde Project
Group: Applications/WWW
@@ -16,6 +16,7 @@
URL: http://www.horde.org/passwd/
BuildRequires: rpmbuild(macros) >= 1.226
BuildRequires: rpm-php-pearprov >= 4.0.2-98
+Requires(post): sed >= 4.0
Requires: apache >= 1.3.33-2
Requires: apache(mod_access)
Requires: horde >= 3.0
@@ -81,6 +82,15 @@
install /dev/null -o root -g http -m660 %{_sysconfdir}/%{_hordeapp}/conf.php.bak
fi
+# take uids with < 500 and update refused logins in default conf.xml
+USERLIST=$(awk -F: '{ if ($3 < 500) print $1 }' < /etc/passwd | xargs | tr ' ' ',')
+if [ "$USERLIST" ]; then
+ sed -i -e "
+ # primitive xml parser ;)
+ /configlist name=\"refused\"/s/>.*</>$USERLIST</
+ " %{_sysconfdir}/%{_hordeapp}/conf.xml
+fi
+
%triggerin -- apache1 >= 1.3.33-2
%apache_config_install -v 1 -c %{_sysconfdir}/apache-%{_hordeapp}.conf
@@ -126,6 +136,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.15 2005/08/22 19:41:41 glen
+- set default list of usernames where password set is refused based on target machine system users
+
Revision 1.14 2005/08/22 19:03:39 glen
- convert to horde 3.x style
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/horde-passwd.spec?r1=1.14&r2=1.15&f=u
More information about the pld-cvs-commit
mailing list