From: Andreas Schneider Date: Mon, 29 Oct 2018 18:45:58 +0000 (+0100) Subject: s3:winbind: Check return code of initialize_password_db() X-Git-Tag: tdb-1.3.17~1135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba17cae4cab686b8d018c39d16706e621f9f93ac;p=thirdparty%2Fsamba.git s3:winbind: Check return code of initialize_password_db() See https://retrace.fedoraproject.org/faf/reports/1577174/ BUG: https://bugzilla.samba.org/show_bug.cgi?id=13668 Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index ae25c6affa3..237841881ac 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -1846,7 +1846,13 @@ int main(int argc, const char **argv) if (!NT_STATUS_IS_OK(status)) { exit_daemon("Winbindd reinit_after_fork() failed", map_errno_from_nt_status(status)); } - initialize_password_db(true, global_event_context()); + + ok = initialize_password_db(true, global_event_context()); + if (!ok) { + exit_daemon("Failed to initialize passdb backend! " + "Check the 'passdb backend' variable in your " + "smb.conf file.", EINVAL); + } /* * Do not initialize the parent-child-pipe before becoming