summaryrefslogtreecommitdiff
path: root/source4/gtk/tools/gwcrontab.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-05-03 13:46:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:29 -0500
commiteb3b5f28d4686802070a770ef29bb71dd4d82d54 (patch)
treefca42c3d2816bbcd6bc221ae28d9373144b63d53 /source4/gtk/tools/gwcrontab.c
parent46727924a0ca1c255311121e8f0e2ecf7a66db1a (diff)
downloadsamba-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/gwcrontab.c')
-rw-r--r--source4/gtk/tools/gwcrontab.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/gtk/tools/gwcrontab.c b/source4/gtk/tools/gwcrontab.c
index a1b57225db..2a8ee5049e 100644
--- a/source4/gtk/tools/gwcrontab.c
+++ b/source4/gtk/tools/gwcrontab.c
@@ -87,10 +87,11 @@ on_connect_activate (GtkMenuItem *menuitem,
{
GtkRpcBindingDialog *d;
NTSTATUS status;
+ struct cli_credentials *credentials;
gint result;
TALLOC_CTX *mem_ctx;
- d = GTK_RPC_BINDING_DIALOG(gtk_rpc_binding_dialog_new(FALSE, NULL));
+ d = GTK_RPC_BINDING_DIALOG(gtk_rpc_binding_dialog_new(NULL));
result = gtk_dialog_run(GTK_DIALOG(d));
switch(result) {
case GTK_RESPONSE_ACCEPT:
@@ -102,12 +103,16 @@ on_connect_activate (GtkMenuItem *menuitem,
mem_ctx = talloc_init("gwcrontab_connect");
/* If connected, get list of jobs */
+
+ credentials = cli_credentials_init(mem_ctx);
+ cli_credentials_guess(credentials);
+ cli_credentials_set_gtk_callbacks(credentials);
status = dcerpc_pipe_connect_b(mem_ctx, &at_pipe,
gtk_rpc_binding_dialog_get_binding(d, mem_ctx),
DCERPC_ATSVC_UUID,
DCERPC_ATSVC_VERSION,
- gtk_rpc_binding_dialog_get_credentials(d));
+ credentials);
if(!NT_STATUS_IS_OK(status)) {
gtk_show_ntstatus(mainwin, "Error while connecting to at service", status);