mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
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)
This commit is contained in:
parent
1fcb5ed30f
commit
528ed90d03
@ -171,6 +171,8 @@ class TestCase(unittest.TestCase):
|
|||||||
username = template.get_username()
|
username = template.get_username()
|
||||||
userpass = template.get_password()
|
userpass = template.get_password()
|
||||||
|
|
||||||
|
simple_bind_dn = template.get_bind_dn()
|
||||||
|
|
||||||
if kerberos_state is None:
|
if kerberos_state is None:
|
||||||
kerberos_state = template.get_kerberos_state()
|
kerberos_state = template.get_kerberos_state()
|
||||||
|
|
||||||
@ -184,6 +186,8 @@ class TestCase(unittest.TestCase):
|
|||||||
c.set_gensec_features(c.get_gensec_features()
|
c.set_gensec_features(c.get_gensec_features()
|
||||||
| gensec.FEATURE_SEAL)
|
| gensec.FEATURE_SEAL)
|
||||||
c.set_kerberos_state(kerberos_state)
|
c.set_kerberos_state(kerberos_state)
|
||||||
|
if simple_bind_dn:
|
||||||
|
c.set_bind_dn(simple_bind_dn)
|
||||||
return c
|
return c
|
||||||
|
|
||||||
def assertStringsEqual(self, a, b, msg=None, strip=False):
|
def assertStringsEqual(self, a, b, msg=None, strip=False):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user