summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBradley Nicholes <bnicholes@apache.org>2004-11-10 16:35:23 +0000
committerBradley Nicholes <bnicholes@apache.org>2004-11-10 16:35:23 +0000
commitebf5c2c124ba1d8d8ffecfa64886c2254219b691 (patch)
tree31948cdee14af74aa99462fd27ff46fe0c6a0380 /include
parent1f755e3bacde45ffed43d21d6f30c7b641ecb6a4 (diff)
downloadhttpd-ebf5c2c124ba1d8d8ffecfa64886c2254219b691.tar.gz
Implement the util_ldap_cache_getuserdn() API so that the ldap authorization only modules have access to the util_ldap user cache without having to require ldap authentication as well. [PR 31898]
Submitted by: Jari Ahonen [jah progress.com] Reviewed by: bnicholes, wrowe, jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@105744 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/util_ldap.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/util_ldap.h b/include/util_ldap.h
index 52363efbb3..b44ab03377 100644
--- a/include/util_ldap.h
+++ b/include/util_ldap.h
@@ -260,6 +260,27 @@ 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);
/**
+ * Retrieves the LDAP DN of the user without the need to know user password
+ * @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. A single entry matching the search is returned.
+ * @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)
*/