static void wbcLookupName_done(struct tevent_req *subreq);
/**
- * @brief Request a conversion of a domaind and name to a domain sid
+ * @brief Request a conversion of a domain and name to a domain sid
*
* @param mem_ctx talloc context to allocate the request from
* @param ev tevent context to use for async operation
}
/**
- * @brief Receive a conversion a SID to a domain and name
+ * @brief Receive a conversion of a domain and name to a domain SID.
+ *
+ * @param req The tevent request calling this function.
+ *
+ * @param sid A pointer to store the sid looked up.
*
- * @param *
- * @param *pname Resolved User or group name
- * @param *pname_type Pointer to the resolved SID type
+ * @param name_type Pointer to store the resolved SID name type.
*
* @return #wbcErr
*/
-
wbcErr wbcLookupName_recv(struct tevent_req *req,
struct wbcDomainSid *sid,
enum wbcSidType *name_type)
/**
* @brief Receive a conversion a SID to a domain and name
*
- * @param *mem_ctx, talloc context to move results to
- * @param *pdomain Resolved Domain name (possibly "")
- * @param *pname Resolved User or group name
- * @param *pname_type Pointer to the resolved SID type
+ * @param req The tevent request calling this function.
+ *
+ * @param mem_ctx A talloc context to move results to.
+ *
+ * @param pdomain A pointer to store the resolved domain name
+ * (possibly "").
+ *
+ * @param pname A pointer to store the resolved user or group name.
+ *
+ * @param pname_type A pointer to store the resolved SID type.
*
* @return #wbcErr
*/
-
wbcErr wbcLookupSid_recv(struct tevent_req *req,
TALLOC_CTX *mem_ctx,
char **pdomain,
struct winbindd_request *request,
struct winbindd_response *response);
-/** @brief Wrapper around Winbind's send/receive API call
- *
- * @param cmd Winbind command operation to perform
- * @param request Send structure
- * @param response Receive structure
- *
- * @return #wbcErr
- **/
-
-/**********************************************************************
+/*
result == NSS_STATUS_UNAVAIL: winbind not around
result == NSS_STATUS_NOTFOUND: winbind around, but domain missing
(as far as I have seen) with the callers of is_trusted_domains.
--Volker
-**********************************************************************/
+*/
static wbcErr wbcRequestResponseInt(
int cmd,
return wbc_status;
}
+/**
+ * @brief Wrapper around Winbind's send/receive API call
+ *
+ * @param cmd Winbind command operation to perform
+ * @param request Send structure
+ * @param response Receive structure
+ *
+ * @return #wbcErr
+ */
wbcErr wbcRequestResponse(int cmd,
struct winbindd_request *request,
struct winbindd_response *response)
/**
* @brief Lookup the current status of a trusted domain
*
- * @param domain Domain to query
- * @param *info Pointer to returned domain_info struct
+ * @param domain The domain to query
+ *
+ * @param dinfo A pointer to store the returned domain_info struct.
*
* @return #wbcErr
**/
wbcErr wbcDomainInfo(const char *domain,
- struct wbcDomainInfo **info);
+ struct wbcDomainInfo **dinfo);
/**
* @brief Enumerate the domain trusts known by Winbind