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