selftest: Use NETLOGON_NEG_STRONG_KEYS constant in AuthLogTestsNetLogonBadCreds
authorAndrew Bartlett <abartlet@samba.org>
Mon, 17 Jul 2017 21:03:17 +0000 (09:03 +1200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 31 Jul 2017 09:31:13 +0000 (11:31 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Jul 25 03:21:19 CEST 2017 on sn-devel-144

(cherry picked from commit a420b1bdccbba72faf1108f7fae8b8202075db97)

python/samba/tests/auth_log_netlogon_bad_creds.py

index fedd8a1d412a96423959e369e29a23cb120d21ae..2bae02e21baf615e1942ec8f697e9c874f17dfc5 100644 (file)
@@ -36,7 +36,7 @@ from samba.auth import system_session
 from samba.tests import delete_force
 from samba.dsdb import UF_WORKSTATION_TRUST_ACCOUNT, UF_PASSWD_NOTREQD
 from samba.dcerpc.misc import SEC_CHAN_WKSTA
-
+from samba.dcerpc.netlogon import NETLOGON_NEG_STRONG_KEYS
 
 class AuthLogTestsNetLogonBadCreds(samba.tests.auth_log_base.AuthLogTestBase):
 
@@ -172,7 +172,7 @@ class AuthLogTestsNetLogonBadCreds(samba.tests.auth_log_base.AuthLogTestBase):
                                        SEC_CHAN_WKSTA,
                                        self.netbios_name,
                                        creds,
-                                       0x00004000)
+                                       NETLOGON_NEG_STRONG_KEYS)
         except NTSTATUSError:
             pass
         self.waitForMessages(isLastExpectedMessage)