|
|
adf540 |
Correct log levels in ppolicy overlay.
|
|
|
adf540 |
|
|
|
adf540 |
Author: Matus Honek <mhonek@redhat.com>
|
|
|
adf540 |
Resolves: #1356158
|
|
|
adf540 |
|
|
|
adf540 |
diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c
|
|
|
adf540 |
--- a/servers/slapd/overlays/ppolicy.c
|
|
|
adf540 |
+++ b/servers/slapd/overlays/ppolicy.c
|
|
|
adf540 |
@@ -643,7 +643,7 @@ check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyE
|
|
|
adf540 |
if ((mod = lt_dlopen( pp->pwdCheckModule )) == NULL) {
|
|
|
adf540 |
err = lt_dlerror();
|
|
|
adf540 |
|
|
|
adf540 |
- Debug(LDAP_DEBUG_ANY,
|
|
|
adf540 |
+ Log3(LDAP_DEBUG_ANY, LDAP_LEVEL_WARNING,
|
|
|
adf540 |
"check_password_quality: lt_dlopen failed: (%s) %s.\n",
|
|
|
adf540 |
pp->pwdCheckModule, err, 0 );
|
|
|
adf540 |
ok = LDAP_OTHER; /* internal error */
|
|
|
adf540 |
@@ -658,7 +658,7 @@ check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyE
|
|
|
adf540 |
if ((prog = lt_dlsym( mod, "check_password" )) == NULL) {
|
|
|
adf540 |
err = lt_dlerror();
|
|
|
adf540 |
|
|
|
adf540 |
- Debug(LDAP_DEBUG_ANY,
|
|
|
adf540 |
+ Log3(LDAP_DEBUG_ANY, LDAP_LEVEL_WARNING,
|
|
|
adf540 |
"check_password_quality: lt_dlsym failed: (%s) %s.\n",
|
|
|
adf540 |
pp->pwdCheckModule, err, 0 );
|
|
|
adf540 |
ok = LDAP_OTHER;
|
|
|
adf540 |
@@ -667,7 +667,7 @@ check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyE
|
|
|
adf540 |
ok = prog( ptr, txt, e );
|
|
|
adf540 |
ldap_pvt_thread_mutex_unlock( &chk_syntax_mutex );
|
|
|
adf540 |
if (ok != LDAP_SUCCESS) {
|
|
|
adf540 |
- Debug(LDAP_DEBUG_ANY,
|
|
|
adf540 |
+ Log3(LDAP_DEBUG_ANY, LDAP_LEVEL_WARNING,
|
|
|
adf540 |
"check_password_quality: module error: (%s) %s.[%d]\n",
|
|
|
adf540 |
pp->pwdCheckModule, *txt ? *txt : "", ok );
|
|
|
adf540 |
}
|