From f2f4f7c4b42b0eed0f9f81610e7ef4e93f943dfb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 07:31:47 +0200 Subject: Adding debian version 2.9.4-1. Signed-off-by: Daniel Baumann --- debian/tests/ldap-user-group-ldap-auth | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 debian/tests/ldap-user-group-ldap-auth (limited to 'debian/tests/ldap-user-group-ldap-auth') diff --git a/debian/tests/ldap-user-group-ldap-auth b/debian/tests/ldap-user-group-ldap-auth new file mode 100755 index 0000000..c25cff0 --- /dev/null +++ b/debian/tests/ldap-user-group-ldap-auth @@ -0,0 +1,29 @@ +#!/bin/sh + +set -ex + +. debian/tests/util +. debian/tests/common-tests + +mydomain="example.com" +myhostname="ldap.${mydomain}" +mysuffix="dc=example,dc=com" +admin_dn="cn=admin,${mysuffix}" +admin_pw="secret" +ldap_user="testuser1" +ldap_user_pw="testuser1secret" +ldap_group="ldapusers" + +adjust_hostname "${myhostname}" +reconfigure_slapd +generate_certs "${myhostname}" +enable_ldap_ssl +populate_ldap_rfc2307 +configure_sssd_ldap_rfc2307 +enable_pam_mkhomedir + +# tests begin here +run_common_tests + +echo "The LDAP user can login on a terminal" +/usr/bin/expect -f debian/tests/login.exp "${ldap_user}" "${ldap_user_pw}" -- cgit v1.2.3