mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
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>
This commit is contained in:
parent
5391e21dea
commit
ba17cae4ca
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user