]> granicus.if.org Git - apache/commitdiff
Add util_ldap_cache_getuserdn() prototype to the util_ldap.h header file
authorBradley Nicholes <bnicholes@apache.org>
Thu, 4 Nov 2004 21:00:00 +0000 (21:00 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Thu, 4 Nov 2004 21:00:00 +0000 (21:00 +0000)
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

index 36279f3492e5a11fc089a1c5205ff10e50b8e243..fd6f44f3ea50744c0cf19c3bac104e425cacb934 100644 (file)
@@ -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)