summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-10-29 19:45:58 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-10-29 20:09:25 +0100
commitba17cae4cab686b8d018c39d16706e621f9f93ac (patch)
treec5a128af72cb7cd1dd3cd6b08ee991df151cde17 /source3/winbindd
parent5391e21dea3168691cee1e6ef6c5959e46d62d1e (diff)
downloadsamba-ba17cae4cab686b8d018c39d16706e621f9f93ac.tar.gz
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 <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd.c8
1 files changed, 7 insertions, 1 deletions
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