Red Hat Bugzilla – Bug 124513
smbpasswd: blank lines
Last modified: 2007-11-30 17:10:43 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Description of problem:
This tool has never worked for me, so I got curious as to why. It was
because I had blank lines in smbpasswd, which I think the code should
be able to handle.
[phantom@cobra phantom]$ system-config-samba
Traceback (most recent call last):
File "/usr/share/system-config-samba/system-config-samba.py", line
38, in ?
File "/usr/share/system-config-samba/mainWindow.py", line 82, in
self.samba_user_data = sambaUserData.SambaUserData(self)
File "/usr/share/system-config-samba/sambaUserData.py", line 40, in
File "/usr/share/system-config-samba/sambaUserData.py", line 53, in
if string.strip(line) != "#":
IndexError: string index out of range
I got rid of blank lines, and it works now.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Put blank lines in smbpasswd
Created attachment 100754 [details]
Fix for this problem
The fix is easy: Ignore lines smaller than length = one (one means only a new
Cool. Too bad now selinux is broken and the graphical auth utility
won't work at all - but that's a different story...