s4-samdb: give a more useful debug when we can't open the privileges db
[samba.git] / 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;
                }
        }