diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-05-03 13:46:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:29 -0500 |
commit | eb3b5f28d4686802070a770ef29bb71dd4d82d54 (patch) | |
tree | fca42c3d2816bbcd6bc221ae28d9373144b63d53 /source4/gtk/tools/gregedit.c | |
parent | 46727924a0ca1c255311121e8f0e2ecf7a66db1a (diff) | |
download | samba-eb3b5f28d4686802070a770ef29bb71dd4d82d54.tar.gz samba-eb3b5f28d4686802070a770ef29bb71dd4d82d54.tar.bz2 samba-eb3b5f28d4686802070a770ef29bb71dd4d82d54.zip |
r6600: Rework of the GTK credentials system; the credentials information is
now in a seperate (optional) dialog rather then in the binding dialog; also
supports specifying anonymous connections (which we didn't before).
(This used to be commit 8671e1a1fa8ef416c1819f811653eff190d3074a)
Diffstat (limited to 'source4/gtk/tools/gregedit.c')
-rw-r--r-- | source4/gtk/tools/gregedit.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/gtk/tools/gregedit.c b/source4/gtk/tools/gregedit.c index 472a5683ed..5a9994df9c 100644 --- a/source4/gtk/tools/gregedit.c +++ b/source4/gtk/tools/gregedit.c @@ -396,9 +396,10 @@ static void on_open_local_activate(GtkMenuItem *menuitem, gpointer user_data) static void on_open_remote_activate(GtkMenuItem *menuitem, gpointer user_data) { char *tmp; - GtkWidget *rpcwin = GTK_WIDGET(gtk_rpc_binding_dialog_new(FALSE, NULL)); + GtkWidget *rpcwin = GTK_WIDGET(gtk_rpc_binding_dialog_new(NULL)); gint result = gtk_dialog_run(GTK_DIALOG(rpcwin)); WERROR error; + struct cli_credentials *creds; if(result != GTK_RESPONSE_ACCEPT) { @@ -406,8 +407,12 @@ static void on_open_remote_activate(GtkMenuItem *menuitem, gpointer user_data) return; } + creds = cli_credentials_init(mem_ctx); + cli_credentials_guess(creds); + cli_credentials_set_gtk_callbacks(creds); + error = reg_open_remote(®istry, - gtk_rpc_binding_dialog_get_credentials(GTK_RPC_BINDING_DIALOG(rpcwin)), + creds, gtk_rpc_binding_dialog_get_binding_string(GTK_RPC_BINDING_DIALOG(rpcwin), mem_ctx)); if(!W_ERROR_IS_OK(error)) { |