Because we have tests for this in the auth audit code, we do not need to have
the complexity of checking that we got DCE/RPC over SMB as an authorization
message here.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
self.remoteAddress)
session_id = self.get_session()
self.assertEquals(session_id, audit["sessionId"])
self.remoteAddress)
session_id = self.get_session()
self.assertEquals(session_id, audit["sessionId"])
- service_description = self.get_service_description()
- self.assertEquals(service_description, "DCE/RPC")
+ # We skip the check for self.get_service_description() as this
+ # is subject to a race between smbd and the s4 rpc_server code
+ # as to which will set the description as it is DCE/RPC over SMB
+
self.assertTrue(self.is_guid(audit["transactionId"]))
attributes = audit["attributes"]
self.assertTrue(self.is_guid(audit["transactionId"]))
attributes = audit["attributes"]
self.remoteAddress)
session_id = self.get_session()
self.assertEquals(session_id, audit["sessionId"])
self.remoteAddress)
session_id = self.get_session()
self.assertEquals(session_id, audit["sessionId"])
- service_description = self.get_service_description()
- self.assertEquals(service_description, "DCE/RPC")
+ # We skip the check for self.get_service_description() as this
+ # is subject to a race between smbd and the s4 rpc_server code
+ # as to which will set the description as it is DCE/RPC over SMB
+
self.assertTrue(self.is_guid(audit["transactionId"]))
attributes = audit["attributes"]
self.assertTrue(self.is_guid(audit["transactionId"]))
attributes = audit["attributes"]
self.assertTrue(self.is_guid(audit["sessionId"]))
session_id = self.get_session()
self.assertEquals(session_id, audit["sessionId"])
self.assertTrue(self.is_guid(audit["sessionId"]))
session_id = self.get_session()
self.assertEquals(session_id, audit["sessionId"])
- service_description = self.get_service_description()
- self.assertEquals(service_description, "DCE/RPC")
+
+ # We skip the check for self.get_service_description() as this
+ # is subject to a race between smbd and the s4 rpc_server code
+ # as to which will set the description as it is DCE/RPC over SMB
+
attributes = audit["attributes"]
self.assertEquals(2, len(attributes))
attributes = audit["attributes"]
self.assertEquals(2, len(attributes))
self.assertTrue(self.is_guid(audit["sessionId"]))
session_id = self.get_session()
self.assertEquals(session_id, audit["sessionId"])
self.assertTrue(self.is_guid(audit["sessionId"]))
session_id = self.get_session()
self.assertEquals(session_id, audit["sessionId"])
- service_description = self.get_service_description()
- self.assertEquals(service_description, "DCE/RPC")
+
+ # We skip the check for self.get_service_description() as this
+ # is subject to a race between smbd and the s4 rpc_server code
+ # as to which will set the description as it is DCE/RPC over SMB
+