/** Search for something in the LDAP directory
*
- * Binds as the administrative user and performs a search, dealing with any errors.
+ * Performs an LDAP search, typically on a connection bound as the
+ * administrative user, dealing with any errors.
+ * Called from the trunk mux function and elsewhere where appropriate
+ * event handlers have been set on the connection fd.
*
* @param[out] msgid to match response to request.
* @param[in] request Current request.
return UNLANG_ACTION_PUSHED_CHILD;
}
-/** Run an async or sync modification LDAP query on a trunk connection
+/** Run an async modification LDAP query on a trunk connection
*
* @param[out] p_result from synchronous evaluation.
* @param[in] ctx to allocate the query in.
/** Modify something in the LDAP directory
*
- * Binds as the administrative user and attempts to modify an LDAP object.
+ * Used on connections bound as the administrative user to attempt to modify an LDAP object.
+ * Called by the trunk mux function
*
* @param[out] msgid LDAP message ID.
* @param[in] request Current request.
return query;
}
+/** Allocate a new LDAP modify object
+ *
+ * @param[in] ctx to allocate the query in.
+ * @param[in] dn of the object to modify.
+ * @param[in] mods to apply to the object.
+ * @param[in] serverctrls Controls to pass to the server. May be NULL.
+ * @param[in] clientctrls Client controls. May be NULL.
+ * @return LDAP query object
+ */
fr_ldap_query_t *fr_ldap_modify_alloc(TALLOC_CTX *ctx, char const *dn,
LDAPMod *mods[], LDAPControl **serverctrls, LDAPControl **clientctrls)
{
* @param[in] inst rlm_ldap instance.
* @param[in] request Current request.
* @param[in] section that holds the map to process.
+ * @param[in] mod_env Module environment. Contains expanded base and filter to find user.
* @return one of the RLM_MODULE_* values.
*/
static unlang_action_t user_modify(rlm_rcode_t *p_result, rlm_ldap_t const *inst, request_t *request,