From 5ea77a75dd2d2158401331879f3c8f47940a732c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 18:35:32 +0200 Subject: Adding upstream version 2.5.13+dfsg. Signed-off-by: Daniel Baumann --- tests/data/remoteauth/config.ldif | 21 +++++++++++++++++++++ tests/data/remoteauth/default_domain | 3 +++ tests/data/remoteauth/remoteauth.conf | 21 +++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 tests/data/remoteauth/config.ldif create mode 100644 tests/data/remoteauth/default_domain create mode 100644 tests/data/remoteauth/remoteauth.conf (limited to 'tests/data/remoteauth') diff --git a/tests/data/remoteauth/config.ldif b/tests/data/remoteauth/config.ldif new file mode 100644 index 0000000..f59351a --- /dev/null +++ b/tests/data/remoteauth/config.ldif @@ -0,0 +1,21 @@ +dn: olcOverlay={0}remoteauth,olcDatabase={1}@BACKEND@,cn=config +objectClass: olcOverlayConfig +objectclass: olcRemoteAuthCfg +olcOverlay: {0}remoteauth +olcRemoteAuthRetryCount: 3 +olcRemoteAuthTLS: starttls=critical + tls_cert="@TESTDIR@/tls/certs/localhost.crt" + tls_key="@TESTDIR@/tls/private/localhost.key" + tls_cacert="@TESTDIR@/tls/ca/certs/testsuiteCA.crt" + tls_reqcert=demand tls_reqsan=allow +#openssl# tls_crlcheck=none +olcRemoteAuthDNAttribute: seeAlso +olcRemoteAuthDomainAttribute: o +olcRemoteAuthDefaultDomain: default +olcRemoteAuthDefaultRealm: @SURIP3@ +olcRemoteAuthStore: FALSE +olcRemoteAuthMapping: default file://@TESTDIR@/default_domain +olcRemoteAuthMapping: working_ldaps @SURIP3@ +olcRemoteAuthMapping: failing_ldaps @SURIP2@ +olcRemoteAuthMapping: self @URIP1@ + diff --git a/tests/data/remoteauth/default_domain b/tests/data/remoteauth/default_domain new file mode 100644 index 0000000..6a88463 --- /dev/null +++ b/tests/data/remoteauth/default_domain @@ -0,0 +1,3 @@ +ldap://we/should/not/be/able/to/connect/to +@SURIP2@ +@SURIP3@ diff --git a/tests/data/remoteauth/remoteauth.conf b/tests/data/remoteauth/remoteauth.conf new file mode 100644 index 0000000..9f30e17 --- /dev/null +++ b/tests/data/remoteauth/remoteauth.conf @@ -0,0 +1,21 @@ +overlay remoteauth + +# defaults +#remoteauth_retry_count 3 +#remoteauth_store off + +remoteauth_tls starttls=critical + tls_cert=@TESTDIR@/tls/certs/localhost.crt + tls_key=@TESTDIR@/tls/private/localhost.key + tls_cacert=@TESTDIR@/tls/ca/certs/testsuiteCA.crt + +remoteauth_dn_attribute seeAlso +remoteauth_domain_attribute o +remoteauth_default_domain default +remoteauth_default_realm @SURIP3@ + +# It's a trap! (ehm... stack) cn=config entries will be emitted in reverse order +remoteauth_mapping self @URIP1@ +remoteauth_mapping failing_ldaps @SURIP2@ +remoteauth_mapping working_ldaps @SURIP3@ +remoteauth_mapping default file://@TESTDIR@/default_domain -- cgit v1.2.3