Bug 1963 - testparm does not check if passdb backend is valid
Summary: testparm does not check if passdb backend is valid
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Config Files (show other bugs)
Version: 3.0.7
Hardware: All Linux
: P3 enhancement
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-23 04:02 UTC by Nowicki Christophe
Modified: 2004-10-23 18:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nowicki Christophe 2004-10-23 04:02:03 UTC
Hi,

I've made a spelling error in my smb.conf file but testparm did not detect it.

$ grep backend /etc/samba/smb.conf
        passdb backend = tdbsamt
tdbsamt is not a valide password backend but testparm is working.

$Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[test]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[ ... ]
        passdb backend = tdbsamt
[ ... ]

I suggest to check passdb backend value.

Best Regards,
Comment 1 Gerald (Jerry) Carter (dead mail address) 2004-10-23 18:43:46 UTC
This is not easy as it seems since passdb backends can be 
dynamically loaded at run time.  testparm will only check 
types of values for parameters that make sense (like mixing a string
for a boolean ).