mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
Pass entire entry to password_quality check module, not just attrs
This commit is contained in:
parent
5fb9c3d5a0
commit
996354e2dd
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue