mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
NULL LDAP context in call to ldap_search_ext_s during search
KDC crashes on quite random interval while trying to reach LDAP https://pagure.io/freeipa/issue/7017 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
64375ba65b
commit
0f0423cf53
@ -465,6 +465,12 @@ int ipadb_get_connection(struct ipadb_context *ipactx)
|
||||
ret = ipadb_reinit_mspac(ipactx, false);
|
||||
if (ret && ret != ENOENT) {
|
||||
/* TODO: log that there is an issue with adtrust settings */
|
||||
if (ipactx->lcontext == NULL) {
|
||||
/* for some reason ldap connection was reset in ipadb_reinit_mspac
|
||||
* and is no longer established => failure of ipadb_get_connection
|
||||
*/
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user