[debian-edu-commits] r80376 - in branches/wheezy/debian-edu-config: debian testsuite

pere at alioth.debian.org pere at alioth.debian.org
Sat Jun 8 15:26:30 UTC 2013


Author: pere
Date: 2013-06-08 15:26:29 +0000 (Sat, 08 Jun 2013)
New Revision: 80376

Modified:
   branches/wheezy/debian-edu-config/debian/changelog
   branches/wheezy/debian-edu-config/testsuite/kerberos
Log:
Add new test case to detect and report passwords lingering in the
debconf database (bug #711251).

Modified: branches/wheezy/debian-edu-config/debian/changelog
===================================================================
--- branches/wheezy/debian-edu-config/debian/changelog	2013-06-08 14:55:34 UTC (rev 80375)
+++ branches/wheezy/debian-edu-config/debian/changelog	2013-06-08 15:26:29 UTC (rev 80376)
@@ -1,7 +1,12 @@
 debian-edu-config (1.706~svn) UNRELEASED; urgency=low
 
+  [ Wolfgang Schweer ]
   * cf/cf.lightdm: Try to configure artwork for lightdm (greeter).
 
+  [ Petter Reinholdtsen ]
+  * Add new test case to detect and report passwords lingering in the
+    debconf database (bug #711251).
+
  -- Wolfgang Schweer <wschweer at arcor.de>  Sat, 08 Jun 2013 16:52:31 +0200
 
 debian-edu-config (1.706~svn80374) wheezy-test; urgency=low

Modified: branches/wheezy/debian-edu-config/testsuite/kerberos
===================================================================
--- branches/wheezy/debian-edu-config/testsuite/kerberos	2013-06-08 14:55:34 UTC (rev 80375)
+++ branches/wheezy/debian-edu-config/testsuite/kerberos	2013-06-08 15:26:29 UTC (rev 80376)
@@ -10,6 +10,20 @@
     . /etc/debian-edu/config
 fi
 
+# Make sure all debconf templates with password passed from d-i to
+# cfengine are empty after installation (bug #711251).
+for template in debian-edu-config/kdc-password \
+    debian-edu-config/kdc-password-again \
+    debian-edu-config/ldap-password-again \
+    debian-edu-config/ldap-password \
+    debian-edu-config/first-user-password ; do
+    if [ -n "$(perl -MDebconf::Db -MDebconf::Template -e "Debconf::Db->load; my \$template = Debconf::Template->get('$template'); print \$template->default || \$template->value;")" ]; then
+	echo "error: debconf template $template is not empty! (BTS #711251)"
+    else
+	echo "success: debconf template $template is empty."
+    fi
+done
+
 # In case we are not a Main-Server profile, just exit gracefully
 if echo "$PROFILE" | grep -q Main-Server ; then
     :




More information about the debian-edu-commits mailing list