"--attributes=%s" % attributes,
"--decrypt-samba-gpg")
self.assertCmdSuccess(result, out, err, "Ensure getpassword runs")
- self.assertEqual(err, "", "getpassword without url")
- self.assertMatch(out, "Got password OK", "getpassword without url")
+ self.assertEqual(err, "Got password OK\n", "getpassword without url")
self.assertMatch(out, "sAMAccountName: %s" % (user["name"]),
"getpassword: 'sAMAccountName': %s out[%s]" % (user["name"], out))
if expect_nt_hash:
self.assertNotIn("unicodePwd:: %s" % unicodePwd, out)
self.assertMatch(out, "supplementalCredentials:: ",
"getpassword supplementalCredentials: out[%s]" % out)
- self._verify_supplementalCredentials(out.replace("\nGot password OK\n", ""))
+ self._verify_supplementalCredentials(out)
if "virtualSambaGPG:: " in out:
self.assertMatch(out, "virtualClearTextUTF8:: %s" % virtualClearTextUTF8,
"getpassword virtualClearTextUTF8: out[%s]" % out)
out,
err,
"Ensure getpassword runs")
- self.assertEqual(err, "", "getpassword")
- self.assertMatch(out,
- "Got password OK",
- "getpassword out[%s]" % out)
+ self.assertEqual(err, "Got password OK\n", "getpassword")
return out
# Change the just the NT password hash, as would happen if the password
out,
err,
"Ensure getpassword runs")
- self.assertEqual(err, "", "getpassword")
- self.assertMatch(out,
- "Got password OK",
- "getpassword out[%s]" % out)
+ self.assertEqual(err, "Got password OK\n", "getpassword")
return out
# Change the just the NT password hash, as would happen if the password
out,
err,
"Ensure getpassword runs")
- self.assertEqual(err, "", "getpassword")
- self.assertMatch(out,
- "Got password OK",
- "getpassword out[%s]" % out)
+ self.assertEqual(err, "Got password OK\n", "getpassword")
if missing:
self.assertTrue(attribute not in out)