Bug 168529 - system-config-users will not show user properties if shadow passwords aren't used
Summary: system-config-users will not show user properties if shadow passwords aren't ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: system-config-users
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Nils Philippsen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-16 21:28 UTC by Josef Bacik
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-30 15:10:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to fix the not having shadow passwords problem (3.37 KB, patch)
2005-09-16 21:29 UTC, Josef Bacik
no flags Details | Diff

Description Josef Bacik 2005-09-16 21:28:42 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050719 Red Hat/1.0.6-1.4.1 Firefox/1.0.6

Description of problem:
If you do not have shadow passwords enabled, clicking on users and then properties causes a python traceback to be shown and the dialog does not come up.

Version-Release number of selected component (if applicable):
system-config-users-1.2.27-0.EL4.1

How reproducible:
Always

Steps to Reproduce:
1.dont use shadow passwords
2.click on a user in system-config-users
3.click on properties
  

Actual Results:  the dialog does not come up and a traceback is shown

Traceback (most recent call last):
  File "/usr/share/system-config-users/mainWindow.py", line 739, in on_properties_activate
    self.user_properties()
  File "/usr/share/system-config-users/mainWindow.py", line 748, in user_properties
    self.userProperties.showUserProperties(userEnt)
  File "/usr/share/system-config-users/userProperties.py", line 230, in showUserProperties
    if int(min[0]) == 0 and int(max[0]) == 99999 and int(warning[0]) == 7 and int(inactive[0]) == -1:
IndexError: list index out of range


Expected Results:  should show the dialog and not give a traceback

Additional info:

Comment 1 Josef Bacik 2005-09-16 21:29:41 UTC
Created attachment 118919 [details]
patch to fix the not having shadow passwords problem

this patch checks to see if shadow is enabled, and if its not do not try to
initialize the shadow variables, since they are not needed.

Comment 2 Nils Philippsen 2005-09-30 15:10:27 UTC
Fixed in system-config-users-1.2.40 in Rawhide.


Note You need to log in before you can comment on or make changes to this bug.