idmap_autorid: improve two debug messages by printing NT error codes
authorMichael Adam <obnox@samba.org>
Wed, 4 Sep 2013 11:13:15 +0000 (13:13 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 1 Oct 2013 08:49:17 +0000 (10:49 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
source3/winbindd/idmap_autorid_tdb.c

index a9c4014e207c01074ec57ec04e93d461551e9903..c4a7b6c78e85e513a1b5c0594d51d82d6566fead 100644 (file)
@@ -184,7 +184,7 @@ static NTSTATUS idmap_autorid_addrange_action(struct db_context *db,
        ret = dbwrap_store_uint32_bystring(db, keystr, requested_rangenum);
        if (!NT_STATUS_IS_OK(ret)) {
                DEBUG(1, ("Fatal error while storing new "
-                         "domain->range assignment!\n"));
+                         "domain->range assignment: %s\n", nt_errstr(ret)));
                goto error;
        }
 
@@ -199,8 +199,8 @@ static NTSTATUS idmap_autorid_addrange_action(struct db_context *db,
 
        talloc_free(numstr);
        if (!NT_STATUS_IS_OK(ret)) {
-               DEBUG(1, ("Fatal error while storing "
-                         "new domain->range assignment!\n"));
+               DEBUG(1, ("Fatal error while storing new "
+                         "domain->range assignment: %s\n", nt_errstr(ret)));
                goto error;
        }
        DEBUG(5, ("Acquired new range #%d for domain %s "