dsapi.h
DS_Status DS_Indication_GetEntryList(DS_Indication *indication, const DS_EntryList **entry_list_p)
Return the set of entries contained in the operation outcome.
DS_Status DS_RenameSync(DS_Session *session, const DS_DN *old_dn, const DS_DN *new_dn, int delete_old_rdn, const DS_CommonArgs *common_args, DS_Indication **indication_p)
Perform a synchronous directory rename operation.
DS_Status DS_AddSync(DS_Session *session, const DS_Entry *entry, const DS_CommonArgs *common_args, DS_Indication **indication_p)
Perform a synchronous directory add operation.
DS_Status DS_GetAllowUnknownAttrs(DS_Session *session, int *allow_unknown_p)
Get the values of the flag that allows unknown attributes to be read over LDAP.
DS_Status DS_Indication_GetSignatureError(DS_Indication *indication, int *sign_error_p)
Determine whether signature verification failed for a signed operation.
void DS_UninitializeSecurity(void)
Disable strong operations and release any resources associated with the security environment.
DS_Status DS_Indication_HasMoreResults(const DS_Indication *indication, int *more_pages)
Check if there are more pages for a paged results search.
DS_Status DS_BindSync_Simple(const char *address, const DS_DN *dn, const char *password, DS_Session **session_p) DSAPI_DEPRECATED
Perform a synchronous directory bind using simple credentials.
DS_Status DS_NextPageSync(DS_Session *session, DS_Indication *di)
Request the next page of a paged results search.
DS_Entry * DS_Indication_GetFirstEntry(DS_Indication *indication)
Return the first entry from an Indication.
DS_Status DS_TxnStartSync(DS_Session *session, DS_Indication **indication_p)
Perform a synchronous directory transaction start operation.
DS_Status DS_BindSync_Anonymous(const char *address, DS_Session **session_p) DSAPI_DEPRECATED
Perform an anonymous synchronous directory bind.
DS_Status DS_Cancel(DS_Session *session, int op_id)
Cancel a previously issued asynchronous operation.
DS_Status DS_Indication_GetStatus(DS_Indication *indication, DS_ErrorType *type_p)
Get the directory (operation) error type.
DS_Status DS_ReadAsync(DS_Session *session, const DS_DN *dn, const char *attr_selection[], DS_CommonArgs *common_args, int *ret_op_id)
Invoke an asynchronous directory read entry operation.
DS_Status DS_SearchSync(DS_Session *session, const DS_DN *base_dn, const char *filter, DSSearchScope search_scope, const char *attr_selection[], DS_CommonArgs *common_args, DS_Indication **indication_p)
Perform a synchronous directory search operation.
DS_Status DS_CompareSync(DS_Session *session, const DS_DN *dn, const DS_Attr *attr, const DS_CommonArgs *common_args, DS_Indication **indication_p)
Perform a synchronous directory compare operation.
DS_Status DS_BindSync_Strong(const char *address, const DS_DN *dsa_dn, const DS_DN *dn, const char *password, DS_Session **session_p) DSAPI_DEPRECATED
Perform a synchronous directory bind using strong credentials.
DS_Status DS_TxnEndSync(DS_Session *session, unsigned char *txn_id, size_t txn_id_len, char commit, DS_Indication **indication_p)
Perform a synchronous directory transaction start (commit) operation.
DS_Status DS_Indication_GetEntryCount(DS_Indication *indication, int *ret_num_p)
Return a count of the set of entries contained in the operation outcome.
Directory client API methods for handling referral and continuation reference information.
DS_Status DS_BindSync_SASL(const char *address, const char *mechanism, const char *userid, const char *secret, DS_Session **session_p) DSAPI_DEPRECATED
Perform a synchronous directory bind using SASL.
DS_Status DS_Indication_GetExtraErrorText(const DS_Indication *indication, const char **error_text_p)
Determine the supplementary text string returned by the directory.
DS_Status DS_BindSimpleSync(DS_Session *session, const DS_DN *dn, const char *password, DS_CommonArgs *common_args, DS_Indication **indication_p)
Perform a synchronous directory bind using simple credentials.
DS_Status DS_Indication_GetTxnEndResult(DS_Indication *indication, int *fail_msg_id)
Return the result of a transaction end request. On success error the message ID of the update request...
DS_Status DS_ModifySync(DS_Session *session, const DS_Entry *entry, const DS_CommonArgs *common_args, DS_Indication **indication_p)
Perform a synchronous directory modify operation.
DS_Status DS_Indication_GetReferrals(const DS_Indication *indication, const DS_ReferralList **referral_list_p)
Return information about an operation for which the directory returned a referral.
Simple directory API methods for handling entries, attributes and values.
DS_Status DS_Indication_GetContinuationReferences(const DS_Indication *indication, const DS_ReferralList **referral_list_p)
Return the set of continuation references resulting from a search operation.
DS_Status DS_Indication_GetErrorCodes(DS_Indication *indication, DS_ErrorType *type_p, DS_ErrorValue *value_p)
Get the directory (operation) error type and value codes.
Directory client API methods for handling directory entries.
DS_Status DS_Indication_GetLimitProblem(DS_Indication *indication, DSLimitProblem *limit_p)
Get any limit problem associated with a search result.
DS_Status DS_BindWithParameters(DS_Session *session, const DS_BindParams *bind_params, DS_CommonArgs *common_args, DS_Indication **indication_p)
Bind using a set of bind parameters.
DS_Status DS_Session_New(const char *address, int force_tls, DS_Session **session_p)
Create an unbound directory session, validating the specified address.
DS_Status DS_GetSessionState(const DS_Session *session_p, DSSessionState *state_p)
Get the current session state.
DS_Status DS_DeleteSync(DS_Session *session, const DS_DN *dn, const DS_CommonArgs *common_args, DS_Indication **indication_p)
Perform a synchronous directory delete operation.
API methods for reading and writing LDIF files.
DS_Status DS_AddSyncByDN(DS_Session *session, const DS_DN *dn, const DS_AttrList *attrs, const DS_CommonArgs *common_args, DS_Indication **indication_p)
Perform a synchronous directory add operation.
DS_Status DS_BindStrongSync(DS_Session *session, const DS_DN *dsa_dn, const DS_DN *dn, const char *password, DS_CommonArgs *common_args, DS_Indication **indication_p)
Perform a synchronous directory bind using strong credentials.
DS_Status DS_GetSessionCertificates(const DS_Session *session_p, DS_AttrValList **av_list_p, int *identity_check_result)
Get and/or verify certificates that were sent by a server during a strong bind operation.
DS_Status DS_Indication_GetPasswordPolicyGraceWarning(const DS_Indication *indication, int *grace_authentications_remaining_p)
Return the number of grace authentications left for the current account's password.
DS_Status DS_Indication_GetPasswordPolicyErrorCode(const DS_Indication *indication, DS_PasswordPolicyError *error_p)
Return the error code relating to the current account's password.
Symbolic constants used in the Directory Service API.
DS_Status DS_BindAnonymousSync(DS_Session *session, DS_CommonArgs *common_args, DS_Indication **indication_p)
Perform an anonymous synchronous directory bind.
Handling of the directory common arguments.
DS_Status DS_Poll(DS_Session *session, int op_id, DS_Indication **indication_p)
Poll for an asynchronous operation indication.
void DS_Indication_Delete(DS_Indication *indication)
Free a DS_Indication structure.
DS_Status DS_Indication_GetPasswordPolicyExpiryWarning(const DS_Indication *indication, int *time_before_expiration_p)
Return the expiry time of the current account's password.
DS_Status DS_ReadSync(DS_Session *session, const DS_DN *dn, const char *attr_selection[], DS_CommonArgs *common_args, DS_Indication **indication_p)
Perform a synchronous directory read entry operation.
DS_Status DS_ModifySyncByDN(DS_Session *session, const DS_DN *dn, const DS_AttrList *changes, const DS_CommonArgs *common_args, DS_Indication **indication_p)
Perform a synchronous directory modify operation.
DS_Status DS_InitializeSecurity(const char *path)
Initialize the security environment.
DS_Status DS_Indication_GetCompareResult(DS_Indication *indication, int *matched)
Return a flag indicating whether a compare operation found a match.
Directory client API methods for handling directory names.
DS_Status DS_AllowUnknownAttrs(DS_Session *session, int allow_unknown)
Turn on or off the flag that allows unknown attributes to be read over LDAP.
DS_Status DS_Indication_GetTxnStartResult(DS_Indication *indication, unsigned char **txn_id, size_t *txn_id_len)
Return the result of a transaction start request. On success the result is an identifier in the form ...