Bug 1963 - testparm does not check if passdb backend is valid
testparm does not check if passdb backend is valid
Product: Samba 3.0
Classification: Unclassified
Component: Config Files
All Linux
: P3 enhancement
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2004-10-23 04:02 UTC by Nowicki Christophe
Modified: 2004-10-23 18:43 UTC (History)
0 users

See Also:


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

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.
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 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 ).