From 1966e28d157da3ef561a6e760eb4736e917fdd81 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 3 May 2013 10:24:17 +0000 Subject: idmap: Print error from idmap_backends_unixid_to_sid Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- source3/winbindd/idmap_util.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/idmap_util.c b/source3/winbindd/idmap_util.c index a068298968..7bd81a141d 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; } -- cgit