git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
876f9cc
)
s3-passdb: Display username when reporting error on add_sam_account.
author
Amitay Isaacs
<amitay@gmail.com>
Fri, 19 Aug 2011 02:27:42 +0000
(12:27 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 19 Aug 2011 06:35:08 +0000
(16:35 +1000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source3/passdb/py_passdb.c
patch
|
blob
|
history
diff --git
a/source3/passdb/py_passdb.c
b/source3/passdb/py_passdb.c
index 54dbb0d3893bd357757d4d7ca6b2c423cc8b78b3..878886d6d520ab3f49b33509730a568237969750 100644
(file)
--- 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);