summaryrefslogtreecommitdiffstats
path: root/source3/winbindd/idmap_util.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-05-03 10:24:17 +0000
committerMichael Adam <obnox@samba.org>2013-05-03 12:58:35 +0200
commit1966e28d157da3ef561a6e760eb4736e917fdd81 (patch)
treefa41b59df1e70ab4724bdbbd3056fd38407d9a3f /source3/winbindd/idmap_util.c
parent5f82641553e33bc236b6c8a4f5cfc1cf3b722eea (diff)
downloadsamba-1966e28d157da3ef561a6e760eb4736e917fdd81.tar.gz
samba-1966e28d157da3ef561a6e760eb4736e917fdd81.tar.xz
samba-1966e28d157da3ef561a6e760eb4736e917fdd81.zip
idmap: Print error from idmap_backends_unixid_to_sid
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/winbindd/idmap_util.c')
-rw-r--r--source3/winbindd/idmap_util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/winbindd/idmap_util.c b/source3/winbindd/idmap_util.c
index a0682989685..7bd81a141d2 100644
--- a/source3/winbindd/idmap_util.c
+++ b/source3/winbindd/idmap_util.c
@@ -68,7 +68,8 @@ backend:
ret = idmap_backends_unixid_to_sid(domname, &map);
if ( ! NT_STATUS_IS_OK(ret)) {
- DEBUG(10, ("error mapping uid [%lu]\n", (unsigned long)uid));
+ DEBUG(10, ("error mapping uid [%lu]: %s\n", (unsigned long)uid,
+ nt_errstr(ret)));
return ret;
}
@@ -131,7 +132,8 @@ backend:
ret = idmap_backends_unixid_to_sid(domname, &map);
if ( ! NT_STATUS_IS_OK(ret)) {
- DEBUG(10, ("error mapping gid [%lu]\n", (unsigned long)gid));
+ DEBUG(10, ("error mapping gid [%lu]: %s\n", (unsigned long)gid,
+ nt_errstr(ret)));
return ret;
}