48 lines
1.9 KiB
Diff
48 lines
1.9 KiB
Diff
From e4aebc121c9242390da86fe6bda3e8c28edfb746 Mon Sep 17 00:00:00 2001
|
|
From: Mark Reynolds <mreynolds@redhat.com>
|
|
Date: Tue, 12 Dec 2023 08:37:41 -0500
|
|
Subject: [PATCH] Issue 9497 - update debug logging in ipa_graceperiod
|
|
|
|
Fixes: https://pagure.io/freeipa/issue/9497
|
|
|
|
Signed-off-by: Mark Reynolds <mreynolds@redhat.com>
|
|
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
|
|
---
|
|
daemons/ipa-slapi-plugins/ipa-graceperiod/ipa_graceperiod.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/daemons/ipa-slapi-plugins/ipa-graceperiod/ipa_graceperiod.c b/daemons/ipa-slapi-plugins/ipa-graceperiod/ipa_graceperiod.c
|
|
index 345e1dee7d163167373ca82dedb1e827f0e1bc8c..7a2d4f2aaea677d1fb3553fe49e6aa17c3e7a38c 100644
|
|
--- a/daemons/ipa-slapi-plugins/ipa-graceperiod/ipa_graceperiod.c
|
|
+++ b/daemons/ipa-slapi-plugins/ipa-graceperiod/ipa_graceperiod.c
|
|
@@ -30,7 +30,7 @@
|
|
* Program may make changes or additions to the list of Approved
|
|
* Interfaces.
|
|
*
|
|
- * Copyright (C) 2022 Red Hat, Inc.
|
|
+ * Copyright (C) 2022-2023 Red Hat, Inc.
|
|
* All rights reserved.
|
|
* END COPYRIGHT BLOCK **/
|
|
|
|
@@ -447,7 +447,7 @@ static int ipagraceperiod_preop(Slapi_PBlock *pb)
|
|
LOG_TRACE("grace limit disabled, skipping\n");
|
|
goto done;
|
|
} else if (grace_limit < -1) {
|
|
- LOG_FATAL("Invalid passwordGraceLimit value %d\n", grace_limit);
|
|
+ LOG_FATAL("Invalid passwordGraceLimit value %ld\n", grace_limit);
|
|
return LDAP_OPERATIONS_ERROR;
|
|
}
|
|
|
|
@@ -480,7 +480,7 @@ static int ipagraceperiod_preop(Slapi_PBlock *pb)
|
|
slapi_pwpolicy_make_response_control(pb, -1, grace_limit - grace_user_time , -1);
|
|
}
|
|
} else if (grace_user_time >= grace_limit) {
|
|
- LOG_TRACE("%s password is expired and out of grace limit\n", dn);
|
|
+ LOG_PWDPOLICY("%s password is expired and out of grace limit\n", dn);
|
|
errstr = "Password is expired.\n";
|
|
ret = LDAP_INVALID_CREDENTIALS;
|
|
|
|
--
|
|
2.43.0
|
|
|