diff options
author | Stefan Metzmacher <metze@samba.org> | 2022-03-04 21:50:15 +0100 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-03-16 14:27:11 +0000 |
commit | 5ca483720320fa8662ab3aca375c48b9e1347859 (patch) | |
tree | 7f2ff6c4ef6b98da5e770313448177f67196357d | |
parent | 0e793fe124bee7b8b8aba023796a7578ec42c6a8 (diff) | |
download | samba-5ca483720320fa8662ab3aca375c48b9e1347859.tar.gz |
python:tests: let insta_creds() also copy the bind_dn from the template
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13879
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit a30a7626254c863f95b98c97ea46ff54b98078ad)
-rw-r--r-- | python/samba/tests/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/samba/tests/__init__.py b/python/samba/tests/__init__.py index 3812f5bad4a..d0cf59e4615 100644 --- a/python/samba/tests/__init__.py +++ b/python/samba/tests/__init__.py @@ -172,6 +172,8 @@ class TestCase(unittest.TestCase): username = template.get_username() userpass = template.get_password() + simple_bind_dn = template.get_bind_dn() + if kerberos_state is None: kerberos_state = template.get_kerberos_state() @@ -185,6 +187,8 @@ class TestCase(unittest.TestCase): c.set_gensec_features(c.get_gensec_features() | gensec.FEATURE_SEAL) c.set_kerberos_state(kerberos_state) + if simple_bind_dn: + c.set_bind_dn(simple_bind_dn) return c def assertStringsEqual(self, a, b, msg=None, strip=False): |