Skip to content

Commit

Permalink
Issue 9497 - update debug logging in ipa_uuid
Browse files Browse the repository at this point in the history
Fixes: https://pagure.io/freeipa/issue/9497

Signed-off-by: Mark Reynolds <mreynolds@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
  • Loading branch information
mreynolds389 authored and flo-renaud committed Dec 14, 2023
1 parent 0007876 commit 6d3d191
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions daemons/ipa-slapi-plugins/ipa-uuid/ipa_uuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* Program may make changes or additions to the list of Approved
* Interfaces.
*
* Copyright (C) 2010 Red Hat, Inc.
* Copyright (C) 2010-2023 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/

Expand Down Expand Up @@ -1185,7 +1185,7 @@ static int ipauuid_pre_op(Slapi_PBlock *pb, int modtype)
* enforce is enabled. */
errstr = slapi_ch_smprintf("Only the Directory Manager "
"can set arbitrary values "
"for %s\n", cfgentry->attr);
"for %s", cfgentry->attr);
ret = LDAP_INSUFFICIENT_ACCESS;
goto done;
}
Expand Down Expand Up @@ -1221,7 +1221,7 @@ static int ipauuid_pre_op(Slapi_PBlock *pb, int modtype)
}

if (ret) {
LOG("operation failure [%d]\n", ret);
LOG("operation failure [%d] - %s\n", ret, errstr);
slapi_send_ldap_result(pb, ret, NULL, errstr, 0, NULL);
slapi_ch_free((void **)&errstr);
ret = EFAIL;
Expand Down

0 comments on commit 6d3d191

Please sign in to comment.