summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBradley Nicholes <bnicholes@apache.org>2004-11-04 22:00:00 +0100
committerBradley Nicholes <bnicholes@apache.org>2004-11-04 22:00:00 +0100
commitd2806c397b50a7abaae9ed55fa59d23972ad67a1 (patch)
treea4b7bf191993d573e6af52bc182ff8afd61a3dbb /include
parentDocument SSLPassPhraseDialog's piped input mode. (diff)
downloadapache2-d2806c397b50a7abaae9ed55fa59d23972ad67a1.tar.xz
apache2-d2806c397b50a7abaae9ed55fa59d23972ad67a1.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/util_ldap.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/util_ldap.h b/include/util_ldap.h
index 36279f3492..fd6f44f3ea 100644
--- a/include/util_ldap.h
+++ b/include/util_ldap.h
@@ -260,6 +260,28 @@ LDAP_DECLARE(int) util_ldap_cache_checkuserid(request_rec *r, util_ldap_connecti
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)
*/