idmap: Print error from idmap_backends_unixid_to_sid
authorVolker Lendecke <vl@samba.org>
Fri, 3 May 2013 10:24:17 +0000 (10:24 +0000)
committerMichael Adam <obnox@samba.org>
Fri, 3 May 2013 10:58:35 +0000 (12:58 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/winbindd/idmap_util.c

index a068298968514fefb4c4152fe359760224445201..7bd81a141d25b373e9245f62678a75828c7a0ad3 100644 (file)
@@ -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;
        }