summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2011-08-19 12:27:42 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-19 16:35:08 +1000
commitdadaca01d2c4ac272b3f684eaee85cf5800f5f69 (patch)
tree8bd3e73f1ddf7c653f683a4848bcf8b44166b597
parent876f9cc29009b73ac7645a03d271b9e72b1a6ea2 (diff)
downloadsamba-dadaca01d2c4ac272b3f684eaee85cf5800f5f69.tar.gz
samba-dadaca01d2c4ac272b3f684eaee85cf5800f5f69.tar.bz2
samba-dadaca01d2c4ac272b3f684eaee85cf5800f5f69.zip
s3-passdb: Display username when reporting error on add_sam_account.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source3/passdb/py_passdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c
index 54dbb0d389..878886d6d5 100644
--- a/source3/passdb/py_passdb.c
+++ b/source3/passdb/py_passdb.c
@@ -1366,7 +1366,8 @@ static PyObject *py_pdb_add_sam_account(pytalloc_Object *self, PyObject *args)
status = methods->add_sam_account(methods, sam_acct);
if (!NT_STATUS_IS_OK(status)) {
- PyErr_Format(py_pdb_error, "Unable to add sam account, (%d,%s)",
+ PyErr_Format(py_pdb_error, "Unable to add sam account '%s', (%d,%s)",
+ sam_acct->username,
NT_STATUS_V(status),
get_friendly_nt_error_msg(status));
talloc_free(tframe);