From: Howard Chu Date: Wed, 1 Dec 2004 16:01:04 +0000 (+0000) Subject: Pass entire entry to password_quality check module, not just attrs X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~163 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=996354e2ddbd10e2ab4ed63023772030a5ac14ec;p=openldap Pass entire entry to password_quality check module, not just attrs --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index c22b295072..fc441f6d31 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -503,7 +503,7 @@ check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyE pp->pwdCheckModule, err, 0 ); ok = LDAP_OTHER; /* internal error */ } else { - int (*prog)( char *passwd, char **text, Attribute *attrs ); + int (*prog)( char *passwd, char **text, Entry *ent ); if ((prog = lt_dlsym( mod, "check_password" )) == NULL) { err = lt_dlerror(); @@ -516,7 +516,7 @@ check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyE char *txt = NULL; ldap_pvt_thread_mutex_lock( &chk_syntax_mutex ); - ok = prog( cred->bv_val, &txt, e ? e->e_attrs : NULL ); + ok = prog( cred->bv_val, &txt, e ); ldap_pvt_thread_mutex_unlock( &chk_syntax_mutex ); if (txt) { Debug(LDAP_DEBUG_ANY,