mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Issue 9497 - update debug logging in ipa_modrdn
Fixes: https://pagure.io/freeipa/issue/9497 Signed-off-by: Mark Reynolds <mreynolds@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
23ead1dc23
commit
79b08556a4
@ -30,7 +30,7 @@
|
|||||||
* Program may make changes or additions to the list of Approved
|
* Program may make changes or additions to the list of Approved
|
||||||
* Interfaces.
|
* Interfaces.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Red Hat, Inc.
|
* Copyright (C) 2010-2023 Red Hat, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* END COPYRIGHT BLOCK **/
|
* END COPYRIGHT BLOCK **/
|
||||||
|
|
||||||
@ -350,7 +350,6 @@ ipamodrdn_load_plugin_config(void)
|
|||||||
{
|
{
|
||||||
int status = EOK;
|
int status = EOK;
|
||||||
int result;
|
int result;
|
||||||
int i;
|
|
||||||
Slapi_PBlock *search_pb;
|
Slapi_PBlock *search_pb;
|
||||||
Slapi_Entry **entries = NULL;
|
Slapi_Entry **entries = NULL;
|
||||||
|
|
||||||
@ -379,7 +378,7 @@ ipamodrdn_load_plugin_config(void)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; (entries[i] != NULL); i++) {
|
for (size_t i = 0; (entries[i] != NULL); i++) {
|
||||||
/* We don't care about the status here because we may have
|
/* We don't care about the status here because we may have
|
||||||
* some invalid config entries, but we just want to continue
|
* some invalid config entries, but we just want to continue
|
||||||
* looking for valid ones. */
|
* looking for valid ones. */
|
||||||
@ -680,7 +679,8 @@ ipamodrdn_change_attr(struct configEntry *cfgentry,
|
|||||||
slapi_modify_internal_pb(mod_pb);
|
slapi_modify_internal_pb(mod_pb);
|
||||||
slapi_pblock_get(mod_pb, SLAPI_PLUGIN_INTOP_RESULT, &ret);
|
slapi_pblock_get(mod_pb, SLAPI_PLUGIN_INTOP_RESULT, &ret);
|
||||||
if (ret != LDAP_SUCCESS) {
|
if (ret != LDAP_SUCCESS) {
|
||||||
LOG_FATAL("Failed to change attribute with error %d\n", ret);
|
LOG_FATAL("Failed to change attribute '%s' in '%s' with error %d\n",
|
||||||
|
cfgentry->tattr, targetdn, ret);
|
||||||
ret = EFAIL;
|
ret = EFAIL;
|
||||||
}
|
}
|
||||||
ret = EOK;
|
ret = EOK;
|
||||||
|
Loading…
Reference in New Issue
Block a user