mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#4359,#2615 add slapi_pw_find()
This commit is contained in:
parent
071a6dc6ca
commit
c0586f0f45
@ -26,6 +26,7 @@
|
||||
#include <ac/stdarg.h>
|
||||
#include <ac/ctype.h>
|
||||
#include <ac/unistd.h>
|
||||
#include <lutil.h>
|
||||
|
||||
#include <slap.h>
|
||||
#include <slapi.h>
|
||||
@ -1820,9 +1821,16 @@ slapi_pw_find(
|
||||
struct berval **vals,
|
||||
struct berval *v )
|
||||
{
|
||||
/*
|
||||
* FIXME: what's the point?
|
||||
*/
|
||||
int i;
|
||||
|
||||
if( ( vals == NULL ) || ( v == NULL ) )
|
||||
return 1;
|
||||
|
||||
for ( i = 0; vals[i] != NULL; i++ ) {
|
||||
if ( !lutil_passwd( vals[i], v, NULL, NULL ) )
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user