|
|
a42499 |
From 38e6908f259b2bdbdba38a856b9d67585453af9a Mon Sep 17 00:00:00 2001
|
|
|
a42499 |
From: Andreas Schneider <asn@samba.org>
|
|
|
a42499 |
Date: Mon, 29 Oct 2018 19:45:58 +0100
|
|
|
a42499 |
Subject: [PATCH] s3:winbind: Check return code of initialize_password_db()
|
|
|
a42499 |
|
|
|
a42499 |
See https://retrace.fedoraproject.org/faf/reports/1577174/
|
|
|
a42499 |
|
|
|
a42499 |
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13668
|
|
|
a42499 |
|
|
|
a42499 |
Signed-off-by: Andreas Schneider <asn@samba.org>
|
|
|
a42499 |
Reviewed-by: Jeremy Allison <jra@samba.org>
|
|
|
a42499 |
|
|
|
a42499 |
(cherry picked from commit ba17cae4cab686b8d018c39d16706e621f9f93ac)
|
|
|
a42499 |
---
|
|
|
a42499 |
source3/winbindd/winbindd.c | 8 +++++++-
|
|
|
a42499 |
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
a42499 |
|
|
|
a42499 |
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
|
|
|
a42499 |
index 254d93b344d..a8ffc31778c 100644
|
|
|
a42499 |
--- a/source3/winbindd/winbindd.c
|
|
|
a42499 |
+++ b/source3/winbindd/winbindd.c
|
|
|
a42499 |
@@ -1845,7 +1845,13 @@ int main(int argc, const char **argv)
|
|
|
a42499 |
if (!NT_STATUS_IS_OK(status)) {
|
|
|
a42499 |
exit_daemon("Winbindd reinit_after_fork() failed", map_errno_from_nt_status(status));
|
|
|
a42499 |
}
|
|
|
a42499 |
- initialize_password_db(true, server_event_context());
|
|
|
a42499 |
+
|
|
|
a42499 |
+ ok = initialize_password_db(true, server_event_context());
|
|
|
a42499 |
+ if (!ok) {
|
|
|
a42499 |
+ exit_daemon("Failed to initialize passdb backend! "
|
|
|
a42499 |
+ "Check the 'passdb backend' variable in your "
|
|
|
a42499 |
+ "smb.conf file.", EINVAL);
|
|
|
a42499 |
+ }
|
|
|
a42499 |
|
|
|
a42499 |
/*
|
|
|
a42499 |
* Do not initialize the parent-child-pipe before becoming
|
|
|
a42499 |
--
|
|
|
a42499 |
2.19.1
|
|
|
a42499 |
|