Re: Bug#762906: krb5-auth-dialog debug output

2014-10-25 Thread Guido Günther
On Fri, Oct 24, 2014 at 10:26:09AM +0200, Wolfgang Schweer wrote:
 On Thu, Oct 23, 2014 at 11:40:15PM +0200, Guido Günther wrote:
  On Thu, Oct 23, 2014 at 11:36:18PM +0200, Wolfgang Schweer wrote:
   On Thu, Oct 23, 2014 at 07:31:40PM +0200, Guido Günther wrote:
Hi Wolfgang,
On Tue, Oct 21, 2014 at 04:40:30PM +0200, Wolfgang Schweer wrote:
 Hi Guido.
 
 On Tue, Oct 21, 2014 at 10:54:52AM +0200, Guido Günther wrote:
  
  Can you get me a backtrace with gdb (gdb -c core
  src/krb5-auth-dialog)? I can only assume that principal is NULL 
  which
  shouldn't happen. I doesn't crash here of course.

Could you check if the 3.12.0-2 crashes for you too? I've tested under
   
gnome-shell and xfce4 without any issues. 
   
   Hi Guido,
   
   where do I get 3.12.0-2?
  
  Should show up in unstable soonish. I at leat got the confirmation
  that it got picked up already.
 
 Tested along with Xfce and KDE Plasma: works like expected.

Thank you for your patience and for reporting back!
Cheers
 -- Guido


-- 
To UNSUBSCRIBE, email to debian-edu-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141025073422.ga2...@bogon.m.sigxcpu.org



Re: Bug#762906: krb5-auth-dialog debug output

2014-10-23 Thread Guido Günther
Hi Wolfgang,
On Tue, Oct 21, 2014 at 04:40:30PM +0200, Wolfgang Schweer wrote:
 Hi Guido.
 
 On Tue, Oct 21, 2014 at 10:54:52AM +0200, Guido Günther wrote:
  
  Can you get me a backtrace with gdb (gdb -c core
  src/krb5-auth-dialog)? I can only assume that principal is NULL which
  shouldn't happen. I doesn't crash here of course.

Could you check if the 3.12.0-2 crashes for you too? I've tested under
gnome-shell and xfce4 without any issues. If it crashes it'd be
awesome to see any possible console output.
Cheers
 -- Guido


-- 
To UNSUBSCRIBE, email to debian-edu-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141023173140.ga27...@bogon.m.sigxcpu.org



Re: Bug#762906: krb5-auth-dialog debug output

2014-10-23 Thread Guido Günther
On Thu, Oct 23, 2014 at 11:36:18PM +0200, Wolfgang Schweer wrote:
 On Thu, Oct 23, 2014 at 07:31:40PM +0200, Guido Günther wrote:
  Hi Wolfgang,
  On Tue, Oct 21, 2014 at 04:40:30PM +0200, Wolfgang Schweer wrote:
   Hi Guido.
   
   On Tue, Oct 21, 2014 at 10:54:52AM +0200, Guido Günther wrote:

Can you get me a backtrace with gdb (gdb -c core
src/krb5-auth-dialog)? I can only assume that principal is NULL which
shouldn't happen. I doesn't crash here of course.
  
  Could you check if the 3.12.0-2 crashes for you too? I've tested under
 
  gnome-shell and xfce4 without any issues. 
 
 Hi Guido,
 
 where do I get 3.12.0-2?

Should show up in unstable soonish. I at leat got the confirmation
that it got picked up already.
 -- Guido


-- 
To UNSUBSCRIBE, email to debian-edu-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141023214015.ga2...@bogon.m.sigxcpu.org



Re: Bug#762906: krb5-auth-dialog debug output

2014-10-22 Thread Guido Günther
On Wed, Oct 22, 2014 at 08:23:17AM +, Mike Gabriel wrote:
 Thanks. I can reproduce it here now (you just have to clear the
 principal names from the preferences). The bug doesn't seem to be in
 krb5-auth-dialog itself since we get the prompt passed in from the
 Kerberos libs and it's already lacking the username. I'll investigate
 further.
 
 The attached patch should fix this.
  -- Guido
 
 It seems this bug (#762906) is a duplicate of #764669 [1].
 
 Right? Please confirm and merge, if so.

#762906 is purely krb5-auth-dialog related, #764669 seems to also
affect kinit.
Cheers,
 -- Guido


-- 
To UNSUBSCRIBE, email to debian-edu-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141022133821.ga2...@bogon.m.sigxcpu.org



Re: Bug#762906: krb5-auth-dialog debug output

2014-10-21 Thread Guido Günther
On Mon, Oct 20, 2014 at 03:23:24PM +0200, Wolfgang Schweer wrote:
 On Mon, Oct 20, 2014 at 10:14:35AM +0200, Guido Günther wrote:
   Thanks. I can reproduce it here now (you just have to clear the
   principal names from the preferences). The bug doesn't seem to be in
   krb5-auth-dialog itself since we get the prompt passed in from the
   Kerberos libs and it's already lacking the username. I'll investigate
   further.
  
  The attached patch should fix this.
   -- Guido
 
  diff --git a/src/ka-kerberos.c b/src/ka-kerberos.c
  index fc6d63f..a17dee3 100644
  --- a/src/ka-kerberos.c
  +++ b/src/ka-kerberos.c
  @@ -649,6 +649,10 @@ ka_parse_name (KaApplet *applet, krb5_context 
  krbcontext,
   krb5_free_principal (krbcontext, *kprinc);
   
   g_object_get (applet, KA_PROP_NAME_PRINCIPAL, principal, NULL);
  +if (principal[0] == '\0') {
  +g_free (principal);
  +principal = g_strdup (g_get_user_name());
  +}
   ret = krb5_parse_name (krbcontext, principal, kprinc);
   
   g_free (principal);
 
 With the patch applied, the tray icon now disappears if clicked.
 
 krb5-auth-dialog (with patch) compiled again with '--enable-debug' and 
 running it out of a terminal shows that the reason is a segmentation 
 fault.

Can you get me a backtrace with gdb (gdb -c core
src/krb5-auth-dialog)? I can only assume that principal is NULL which
shouldn't happen. I doesn't crash here of course.
Cheers,
 -- Guido


-- 
To UNSUBSCRIBE, email to debian-edu-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141021085452.ga3...@bogon.m.sigxcpu.org



Re: Bug#762906: krb5-auth-dialog debug output

2014-10-20 Thread Guido Günther
Hi Wolfgang,
On Sun, Oct 12, 2014 at 07:35:13PM +0200, Wolfgang Schweer wrote:
 On Sun, Oct 12, 2014 at 10:00:32AM +0200, Guido Günther wrote:
  
  ...and the process keeps runnng? Is that all the output you're seeing?
  IN that case that's probably not the debug build.
 
 You're right, ran it on the wrong vm. This is the output using the debug
 build:
 
 test@tjener:~$ killall -s9 krb5-auth-dialog
 test@tjener:~$ krb5-auth-dialog
 
 ** (krb5-auth-dialog:3265): WARNING **: Couldn't register with 
 accessibility bus: Did not receive a reply. Possible causes include: the 
 remote application did not send a reply, the message bus security policy 
 blocked the reply, the reply timeout expired, or the network connection 
 was broken.
 DEBUG: ka_applet_set_property: principal: 
 DEBUG: ka_applet_set_property: pk-userid: 
 DEBUG: ka_applet_set_property: pk-anchors: 
 DEBUG: ka_applet_set_property: pw-prompt-mins: 30
 DEBUG: ka_applet_set_property: tgt-forwardable: False
 DEBUG: ka_applet_set_property: tgt-proxiable: False
 DEBUG: ka_applet_set_property: tgt-renewable: False
 DEBUG: ka_applet_set_property: conf-tickets: False
 DEBUG: ka_applet_set_property: principal: 
 DEBUG: ka_applet_set_property: pk-userid: 
 DEBUG: ka_applet_set_property: pk-anchors: 
 DEBUG: ka_applet_set_property: pw-prompt-mins: 30
 DEBUG: ka_applet_set_property: tgt-forwardable: False
 DEBUG: ka_applet_set_property: tgt-proxiable: False
 DEBUG: ka_applet_set_property: tgt-renewable: False
 DEBUG: ka_applet_set_property: conf-tickets: False
 DEBUG: ka_applet_local_command_line: Parsing local command line
 DEBUG: ka_applet_startup: Primary application
 DEBUG: ka_nm_client_state_changed_cb: Network connected
 DEBUG: monitor_ccache: Monitoring /tmp/krb5cc_1000_w9KVYa
 DEBUG: ka_applet_command_line: Evaluating command line
 DEBUG: credentials_expiring: Checking expiry 1800s
 DEBUG: ka_nm_client_state_changed_cb: Network connected
 DEBUG: credentials_expiring: Checking expiry 1800s

Thanks. I can reproduce it here now (you just have to clear the
principal names from the preferences). The bug doesn't seem to be in
krb5-auth-dialog itself since we get the prompt passed in from the
Kerberos libs and it's already lacking the username. I'll investigate
further.
Cheers,
 -- Guido


-- 
To UNSUBSCRIBE, email to debian-edu-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141020074229.ga3...@bogon.m.sigxcpu.org



Re: Bug#762906: krb5-auth-dialog debug output

2014-10-20 Thread Guido Günther
On Mon, Oct 20, 2014 at 09:42:29AM +0200, Guido Günther wrote:
 Hi Wolfgang,
 On Sun, Oct 12, 2014 at 07:35:13PM +0200, Wolfgang Schweer wrote:
  On Sun, Oct 12, 2014 at 10:00:32AM +0200, Guido Günther wrote:
   
   ...and the process keeps runnng? Is that all the output you're seeing?
   IN that case that's probably not the debug build.
  
  You're right, ran it on the wrong vm. This is the output using the debug
  build:
  
  test@tjener:~$ killall -s9 krb5-auth-dialog
  test@tjener:~$ krb5-auth-dialog
  
  ** (krb5-auth-dialog:3265): WARNING **: Couldn't register with 
  accessibility bus: Did not receive a reply. Possible causes include: the 
  remote application did not send a reply, the message bus security policy 
  blocked the reply, the reply timeout expired, or the network connection 
  was broken.
  DEBUG: ka_applet_set_property: principal: 
  DEBUG: ka_applet_set_property: pk-userid: 
  DEBUG: ka_applet_set_property: pk-anchors: 
  DEBUG: ka_applet_set_property: pw-prompt-mins: 30
  DEBUG: ka_applet_set_property: tgt-forwardable: False
  DEBUG: ka_applet_set_property: tgt-proxiable: False
  DEBUG: ka_applet_set_property: tgt-renewable: False
  DEBUG: ka_applet_set_property: conf-tickets: False
  DEBUG: ka_applet_set_property: principal: 
  DEBUG: ka_applet_set_property: pk-userid: 
  DEBUG: ka_applet_set_property: pk-anchors: 
  DEBUG: ka_applet_set_property: pw-prompt-mins: 30
  DEBUG: ka_applet_set_property: tgt-forwardable: False
  DEBUG: ka_applet_set_property: tgt-proxiable: False
  DEBUG: ka_applet_set_property: tgt-renewable: False
  DEBUG: ka_applet_set_property: conf-tickets: False
  DEBUG: ka_applet_local_command_line: Parsing local command line
  DEBUG: ka_applet_startup: Primary application
  DEBUG: ka_nm_client_state_changed_cb: Network connected
  DEBUG: monitor_ccache: Monitoring /tmp/krb5cc_1000_w9KVYa
  DEBUG: ka_applet_command_line: Evaluating command line
  DEBUG: credentials_expiring: Checking expiry 1800s
  DEBUG: ka_nm_client_state_changed_cb: Network connected
  DEBUG: credentials_expiring: Checking expiry 1800s
 
 Thanks. I can reproduce it here now (you just have to clear the
 principal names from the preferences). The bug doesn't seem to be in
 krb5-auth-dialog itself since we get the prompt passed in from the
 Kerberos libs and it's already lacking the username. I'll investigate
 further.

The attached patch should fix this.
 -- Guido
diff --git a/src/ka-kerberos.c b/src/ka-kerberos.c
index fc6d63f..a17dee3 100644
--- a/src/ka-kerberos.c
+++ b/src/ka-kerberos.c
@@ -649,6 +649,10 @@ ka_parse_name (KaApplet *applet, krb5_context krbcontext,
 krb5_free_principal (krbcontext, *kprinc);
 
 g_object_get (applet, KA_PROP_NAME_PRINCIPAL, principal, NULL);
+if (principal[0] == '\0') {
+g_free (principal);
+principal = g_strdup (g_get_user_name());
+}
 ret = krb5_parse_name (krbcontext, principal, kprinc);
 
 g_free (principal);


Re: Bug#762906: krb5-auth-dialog debug output

2014-10-11 Thread Guido Günther
Hi,
On Tue, Sep 30, 2014 at 10:22:07PM +0200, Wolfgang Schweer wrote:
 Hi,
 
 this is the output running krb5-auth-dialog in an x-terminal:
 
 ** (krb5-auth-dialog:2988): WARNING **: Couldn't register with accessibility 
 bus: Did not receive a reply. Possible causes include: the remote application 
 did not send a reply, the message bus security policy blocked the reply, the 
 reply timeout expired, or the network connection was broken.
 DEBUG: ka_applet_set_property: principal: 
 DEBUG: ka_applet_set_property: pk-userid: 
 DEBUG: ka_applet_set_property: pk-anchors: 
 DEBUG: ka_applet_set_property: pw-prompt-mins: 30
 DEBUG: ka_applet_set_property: tgt-forwardable: False
 DEBUG: ka_applet_set_property: tgt-proxiable: False
 DEBUG: ka_applet_set_property: tgt-renewable: False
 DEBUG: ka_applet_set_property: conf-tickets: False
 
 (krb5-auth-dialog:2988): GLib-GObject-WARNING **: The property 
 GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It 
 will be removed in a future version.
 
 (krb5-auth-dialog:2988): GLib-GObject-WARNING **: The property 
 GtkImageMenuItem:use-stock is deprecated and shouldn't be used anymore. It 
 will be removed in a future version.
 
 (krb5-auth-dialog:2988): GLib-GObject-WARNING **: The property 
 GtkImageMenuItem:accel-group is deprecated and shouldn't be used anymore. It 
 will be removed in a future version.
 
 (krb5-auth-dialog:2988): GLib-GObject-WARNING **: The property 
 GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It 
 will be removed in a future version.
 
 (krb5-auth-dialog:2988): GLib-GObject-WARNING **: The property GtkImage:stock 
 is deprecated and shouldn't be used anymore. It will be removed in a future 
 version.
 DEBUG: ka_applet_set_property: principal: 
 DEBUG: ka_applet_set_property: pk-userid: 
 DEBUG: ka_applet_set_property: pk-anchors: 
 DEBUG: ka_applet_set_property: pw-prompt-mins: 30
 DEBUG: ka_applet_set_property: tgt-forwardable: False
 DEBUG: ka_applet_set_property: tgt-proxiable: False
 DEBUG: ka_applet_set_property: tgt-renewable: False
 DEBUG: ka_applet_set_property: conf-tickets: False
 DEBUG: ka_applet_local_command_line: Parsing local command line

Could you check if krb5-auth-dialog is already running? If so,
terminate it first and then run it again please.
Cheers,
 -- Guido

 
 
 Wolfgang
 



-- 
To UNSUBSCRIBE, email to debian-edu-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/2014102544.ga1...@bogon.m.sigxcpu.org