mirror of
https://github.com/samba-team/samba.git
synced 2025-12-07 20:23:50 +03:00
Give a better error message why NetServerSetInfo() may fail in the gui.
Guenther
This commit is contained in:
@@ -154,7 +154,7 @@ static void callback_apply_description_change(GtkWidget *widget,
|
|||||||
GTK_MESSAGE_ERROR,
|
GTK_MESSAGE_ERROR,
|
||||||
GTK_BUTTONS_OK,
|
GTK_BUTTONS_OK,
|
||||||
"Failed to change computer description: %s.",
|
"Failed to change computer description: %s.",
|
||||||
libnetapi_errstr(status));
|
libnetapi_get_error_string(state->ctx, status));
|
||||||
g_signal_connect_swapped(dialog, "response",
|
g_signal_connect_swapped(dialog, "response",
|
||||||
G_CALLBACK(gtk_widget_destroy),
|
G_CALLBACK(gtk_widget_destroy),
|
||||||
dialog);
|
dialog);
|
||||||
|
|||||||
@@ -185,6 +185,9 @@ static WERROR NetServerSetInfoLocal_1005(struct libnetapi_ctx *ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!lp_config_backend_is_registry()) {
|
if (!lp_config_backend_is_registry()) {
|
||||||
|
libnetapi_set_error_string(ctx,
|
||||||
|
"Configuration manipulation requested but not "
|
||||||
|
"supported by backend");
|
||||||
return WERR_NOT_SUPPORTED;
|
return WERR_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user