From 859500001cc1704561c3de0cdfed4e84464a93a1 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Mon, 26 Jan 2009 23:03:13 +0000 Subject: [PATCH] ITS#2615,ITS#4359 --- CHANGES | 1 + servers/slapd/slapi/slapi_utils.c | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index cde9f34d17..13439c53c9 100644 --- a/CHANGES +++ b/CHANGES @@ -14,6 +14,7 @@ OpenLDAP 2.4.14 Engineering Fixed slapd bconfig encoding incorrectly (ITS#5897) Fixed slapd connection assert (ITS#5835) Fixed slapd epoll handling (ITS#5886) + Added slapd slapi_pw_find (ITS#2615,ITS#4359) Fixed slapd syncrepl rename handling (ITS#5809) Fixed slapd syncrepl MMR when adding new server (ITS#5850) Fixed slapd syncrepl MMR with deleted entries (ITS#5843) diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 3e1eb22693..ecf351d90d 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -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; } -- 2.39.5