s4-samdb: give a more useful debug when we can't open the privileges db
authorAndrew Tridgell <tridge@samba.org>
Thu, 13 Jan 2011 05:55:34 +0000 (16:55 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 14 Jan 2011 05:39:33 +0000 (16:39 +1100)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/dsdb/samdb/samdb.c

index a8428a9c5480ce7f6095e48a5d0594140734bf6e..11913fbbced79b4e9d39f427c3a716f8af4f6765 100644 (file)
@@ -242,6 +242,7 @@ NTSTATUS security_token_create(TALLOC_CTX *mem_ctx,
                status = samdb_privilege_setup(lp_ctx, ptoken);
                if (!NT_STATUS_IS_OK(status)) {
                        talloc_free(ptoken);
+                       DEBUG(1,("Unable to access privileges database\n"));
                        return status;
                }
        }