s4-dsdb Give a less worrying error message on failure to get a transaction
authorAndrew Bartlett <abartlet@samba.org>
Thu, 11 Aug 2011 05:49:37 +0000 (15:49 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 13 Aug 2011 02:30:49 +0000 (12:30 +1000)
source4/dsdb/common/util_samr.c

index 3ce8d76018da191bb004596b470cffea6ee78347..b9663ef0ac81c79a3c9e0c547917dc611889560b 100644 (file)
@@ -70,7 +70,7 @@ NTSTATUS dsdb_add_user(struct ldb_context *ldb,
                DEBUG(0,("Failed to start a transaction for user creation: %s\n",
                         ldb_errstring(ldb)));
                talloc_free(tmp_ctx);
                DEBUG(0,("Failed to start a transaction for user creation: %s\n",
                         ldb_errstring(ldb)));
                talloc_free(tmp_ctx);
-               return NT_STATUS_INTERNAL_DB_CORRUPTION;
+               return NT_STATUS_LOCK_NOT_GRANTED;
        }
 
        /* check if the user already exists */
        }
 
        /* check if the user already exists */