[debian-edu-commits] debian-edu/ 01/01: Extend testsuite/ldap-client to check if the local users is present in LDAP.

Petter Reinholdtsen pere at moszumanska.debian.org
Thu Sep 4 06:17:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

pere pushed a commit to branch master
in repository debian-edu-config.

commit d272b45cef0bf5cc9be07a334701073e70b4c527
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Thu Sep 4 08:16:53 2014 +0200

    Extend testsuite/ldap-client to check if the local users is present in LDAP.
---
 debian/changelog      | 7 +++++++
 testsuite/ldap-client | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index f6e0e6b..4e3a2fa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debian-edu-config (1.725) UNRELEASED; urgency=low
+
+  * Extend testsuite/ldap-client to check if the local users is present
+    in LDAP.
+
+ -- Petter Reinholdtsen <pere at debian.org>  Thu, 04 Sep 2014 08:16:49 +0200
+
 debian-edu-config (1.724) unstable; urgency=high
 
   * Change cups test to only expect port 631 listening on localhost.
diff --git a/testsuite/ldap-client b/testsuite/ldap-client
index f6ec011..9af35ee 100755
--- a/testsuite/ldap-client
+++ b/testsuite/ldap-client
@@ -104,6 +104,13 @@ else
     RESULT=1
 fi
 
+if getent passwd |grep -z home0; then
+    echo "success: $0: getent found LDAP user (with home0 home)."
+else
+    echo "error: $0: getent failed to find LDAP user (with home0 home)."
+    RESULT=1
+fi
+
 for service in $SERVICES ; do
     if /etc/init.d/$service status > /dev/null 2>&1; then
 	echo "success: $0: $service service is operational."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list