Bug 136 - erroneous empty 'passdb backend' list causes smbd to segfault
erroneous empty 'passdb backend' list causes smbd to segfault
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts
All Linux
: P2 minor
: none
Assigned To: Gerald (Jerry) Carter
Depends on:
  Show dependency treegraph
Reported: 2003-05-29 22:11 UTC by Steve Langasek
Modified: 2005-08-24 10:25 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Steve Langasek 2003-05-29 22:11:48 UTC
A Debian user has accidentally uncovered a problem with the passdb code: if the
'passdb backend' list is explicity set to an empty string in smb.conf, smbd will
segfault whenever an incoming connection attempt is received.  This is certainly
a meaningless configuration, but Samba should handle it more gracefully; at a
minimum, by throwing a comprehensible error to the logs when it happens and
throwing a warning in testparm, or possibly by treating an empty string as
equivalent to the default backend list.
Comment 1 Jim McDonough 2003-06-20 10:43:40 UTC
It will now spit out a level 0 debug when it is encountered, and testparm will
warn the users.  I chose not to have it default instead, because this is already
an advanced option, and this would actually muck up the loadparm logic a bit. 
It is handled as any other string parm, and an empty string is a valid parm.

It does not segfault anymore, but the user will get an access denied (because
smbd has no idea who it is).
Comment 2 Gerald (Jerry) Carter 2005-02-07 07:57:27 UTC
originally reported against 3.0aph24.  Bugzilla spring cleaning.  
Removing old alpha versions.
Comment 3 Gerald (Jerry) Carter 2005-08-24 10:25:59 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.