Bug 155616 - system-config-samba doesn't gracefully handle syntax errors in smb.conf
system-config-samba doesn't gracefully handle syntax errors in smb.conf
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: system-config-samba (Show other bugs)
rawhide
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Nils Philippsen
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-21 16:56 EDT by Ian Richardson
Modified: 2008-08-14 11:22 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-08-14 11:22:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
my old smb.conf (1.38 KB, text/plain)
2005-04-21 17:02 EDT, Ian Richardson
no flags Details
The fixed version of smb.conf (1.73 KB, text/plain)
2005-04-21 17:03 EDT, Ian Richardson
no flags Details

  None (edit)
Description Ian Richardson 2005-04-21 16:56:49 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

Description of problem:
When you go to:
system settings > server settings > click on samba

It asks you for the root password and then just hangs afterwards.



Version-Release number of selected component (if applicable):
system-config-samba-1.2.21-1 and python-2.3.4-11

How reproducible:
Always

Steps to Reproduce:
1.system settings
2.server settings
3.click on samba
4.enter root password
  

Actual Results:  nothing comes up

Expected Results:  samba configuration tool to load up.

Additional info:

when system-config-samba is run from a terminal; it errors with:
" File "/usr/share/system-config-samba/sambaToken.py", line 36, in __init__
raise AttributeError, value
AttributeError: ('192.168.0.3', '') "

Problem is solved by removing my smb.conf and then making another.
Comment 1 Ian Richardson 2005-04-21 17:02:11 EDT
Created attachment 113489 [details]
my old smb.conf

This is the config file that the problem happens under
Comment 2 Ian Richardson 2005-04-21 17:03:34 EDT
Created attachment 113490 [details]
The fixed version of smb.conf

Once i had changed it to this smb.conf the problem was resolved
Comment 3 Nils Philippsen 2005-06-14 11:18:32 EDT
Your original smb.conf contains IP addresses on their own lines, these must be
on one line with the "host allow" parameter. I plan to change s-c-samba so that
it gives a suitable warning in that case.
Comment 4 Nils Philippsen 2008-08-14 11:22:34 EDT
Current system-config-samba-1.2.63-1.fc9.noarch gives such a warning and doesn't hang.

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