From d2806c397b50a7abaae9ed55fa59d23972ad67a1 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Thu, 4 Nov 2004 21:00:00 +0000 Subject: [PATCH] Add util_ldap_cache_getuserdn() prototype to the util_ldap.h header file Submitted by:Jari Ahonen [jah progress.com] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105685 13f79535-47bb-0310-9956-ffa450edef68 --- include/util_ldap.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/util_ldap.h b/include/util_ldap.h index 36279f3492e..fd6f44f3ea5 100644 --- a/include/util_ldap.h +++ b/include/util_ldap.h @@ -259,6 +259,28 @@ LDAP_DECLARE(int) util_ldap_cache_checkuserid(request_rec *r, util_ldap_connecti const char *url, const char *basedn, int scope, char **attrs, const char *filter, const char *bindpw, const char **binddn, const char ***retvals); +/** + * Searches for a specified user object in an LDAP directory + * @param r The request record + * @param ldc The LDAP connection being used. + * @param url The URL of the LDAP connection - used for deciding which cache to use. + * @param basedn The Base DN to search for the user in. + * @param scope LDAP scope of the search. + * @param attrs LDAP attributes to return in search. + * @param filter The user to search for in the form of an LDAP filter. This filter must return + * exactly one user for the check to be successful. + * @param binddn The DN of the user will be returned in this variable. + * @param retvals The values corresponding to the attributes requested in the attrs array. + * @tip The filter supplied will be searched for. If a single entry is returned, an attempt + * is made to bind as that user. If this bind succeeds, the user is not validated. + * @deffunc int util_ldap_cache_getuserdn(request_rec *r, util_ldap_connection_t *ldc, + * char *url, const char *basedn, int scope, char **attrs, + * char *filter, char **binddn, char ***retvals) + */ +LDAP_DECLARE(int) util_ldap_cache_getuserdn(request_rec *r, util_ldap_connection_t *ldc, + const char *url, const char *basedn, int scope, char **attrs, + const char *filter, const char **binddn, const char ***retvals); + /** * Checks if SSL support is available in mod_ldap * @deffunc int util_ldap_ssl_supported(request_rec *r) -- 2.47.2