timekpr-gui and kerberos user hang GUI fails to start if no normal users present

Bug #1467654 reported by lours974 Vitry David Gilbert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
timekpr
New
Undecided
Unassigned

Bug Description

timekpr-gui and kerberos hang with GUI fails to start if no normal users present.

timekpr-gui.py check shadow password to list user but kerberos authentification doesn't use shadow so it's hang

My patch to make it work use pwd instead of spwd

compiled and working for debian 8

Thanks

--- timekpr-gui.py.orig 2015-06-22 23:28:30.490843849 +0400
+++ timekpr-gui.py 2015-06-22 23:28:35.478891820 +0400
@@ -7,7 +7,7 @@
 from os import remove, mkdir, geteuid, getenv
 from os.path import isdir, isfile, realpath, dirname
 from time import strftime, sleep
-from pwd import getpwnam
+from pwd import getpwnam,getpwall
 from spwd import getspall

 import pygtk
@@ -156,7 +156,8 @@
   self.wTree.signal_autoconnect(dic)

   #Using /etc/shadow spwd module
- for userinfo in getspall():
+ #for userinfo in getspall():
+ for userinfo in getpwall():
    if isnormal(userinfo[0]):
     self.userSelect.append_text(userinfo[0])
     self.userSelect.set_active(0)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.