ITS#4359,#2615 add slapi_pw_find()

This commit is contained in:
Howard Chu 2009-01-26 22:36:36 +00:00
parent 071a6dc6ca
commit c0586f0f45

View File

@ -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;
}