]> git.sur5r.net Git - openldap/commitdiff
Pass entire entry to password_quality check module, not just attrs
authorHoward Chu <hyc@openldap.org>
Wed, 1 Dec 2004 16:01:04 +0000 (16:01 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 1 Dec 2004 16:01:04 +0000 (16:01 +0000)
servers/slapd/overlays/ppolicy.c

index c22b295072bd277ea0f696be2ed2cc20e8e0e8b8..fc441f6d318cf5ef2b88d832ef39aa9bb0371b5f 100644 (file)
@@ -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,