timekpr-gui and kerberos user hang GUI fails to start if no normal users present
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.
#Using /etc/shadow spwd module
- for userinfo in getspall():
+ #for userinfo in getspall():
+ for userinfo in getpwall():
if isnormal(
self.
self.