From 996354e2ddbd10e2ab4ed63023772030a5ac14ec Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 1 Dec 2004 16:01:04 +0000 Subject: [PATCH] Pass entire entry to password_quality check module, not just attrs --- servers/slapd/overlays/ppolicy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.39.5