Description of problem: While system-config-samba displays the "Samba Users" dialog, clicking the "Edit Users" results in the Traceback below without opening the expected dialog. ---------------- Traceback (most recent call last): File "/usr/share/system-config-samba/sambaUserWin.py", line 144, in onEditUserButtonClicked user_dict = self.samba_user_data.getUserDict() File "/usr/share/system-config-samba/sambaUserData.py", line 86, in getUserDict if tmp_line[0] != '#': IndexError: string index out of range ---------------- The "Delete User" button displays this similar Traceback, but appears to correctly remove the user from the dialog listbox. ---------------- Traceback (most recent call last): File "/usr/share/system-config-samba/sambaUserWin.py", line 164, in onDeleteUserButtonClicked self.samba_user_data.deleteUser(name, line) File "/usr/share/system-config-samba/sambaUserData.py", line 178, in deleteUser user_dict = self.getUserDict() File "/usr/share/system-config-samba/sambaUserData.py", line 86, in getUserDict if tmp_line[0] != '#': IndexError: string index out of range ---------------- Version-Release number of selected component (if applicable): system-config-samba-1.2.5-1 Related: python-2.3.3-2.1 pygtk2-2.0.0-5.1 libuser-0.51.7-7.1.1 htmlview-2.0.0-12 samba-3.0.2a-1.1 usermode-1.69-5 How reproducible: always Steps to Reproduce: 1. Run system-config-samba as root 2. Select menu "Preferences", option "Samba Users" 3. Select a local logon user 4. Click the "Edit User" button Actual results: Edit Users dialog fails to display, Traceback displayed Expected results: Edit Users dialog box displayed Additional info: Last rawhide update 03/10/04 14:29:14 PST Samba users have been previously configured with both the command line tools and SWAT
This bug was caused due to blank lines in the smbusers file which was not expected. Should be fixed in system-config-samba-1.2.6-1 in Rawhide. Thanks for your report.