mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
tests: Use MUST_USE_KERBEROS over AUTO_USE_KERBEROS in auth_log tests
The s3 SMB client bindings seem slightly different to s4, in that they default to setting the CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS flag. This seems to fallback to finding a valid KRB TGT (from a previous successful test), which results in the connection succeeding rather than failing. Setting MUST_USE_KERBEROS explicitly avoids this behaviour. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
065faa6a14
commit
e82e1b31e3
@ -752,6 +752,7 @@ class AuthLogTests(samba.tests.auth_log_base.AuthLogTestBase):
|
||||
"ENC-TS Pre-authentication"))
|
||||
|
||||
creds = self.insta_creds(template=self.get_credentials())
|
||||
creds.set_kerberos_state(MUST_USE_KERBEROS)
|
||||
creds.set_password("badPassword")
|
||||
|
||||
thrown = False
|
||||
@ -784,6 +785,7 @@ class AuthLogTests(samba.tests.auth_log_base.AuthLogTestBase):
|
||||
EVT_LOGON_NETWORK))
|
||||
|
||||
creds = self.insta_creds(template=self.get_credentials())
|
||||
creds.set_kerberos_state(MUST_USE_KERBEROS)
|
||||
creds.set_username("badUser")
|
||||
|
||||
thrown = False
|
||||
|
Loading…
Reference in New Issue
Block a user