src/domain_p.h file

Classes

struct ld_config_s
struct ldhandle

Typedefs

using ld_config_t = struct ld_config_s
using LDHandle = struct ldhandle
using LDAPAttribute_t = struct LDAPAttribute_s

Functions

auto ld_add_entry(LDHandle* handle, const char* name, const char* parent, const char* prefix, LDAPAttribute_t** entry_attrs) -> enum OperationReturnCode
ld_add_entry Creates the entry.
auto ld_del_entry(LDHandle* handle, const char* name, const char* parent, const char* prefix) -> enum OperationReturnCode
ld_del_entry Deletes entry.
auto ld_mod_entry(LDHandle* handle, const char* name, const char* parent, const char* prefix, LDAPAttribute_t** entry_attrs) -> enum OperationReturnCode
ld_mod_entry Modifies the entry.
auto ld_rename_entry(LDHandle* handle, const char* old_name, const char* new_name, const char* parent, const char* prefix) -> enum OperationReturnCode
ld_rename_entry Renames the entry.
auto ld_mod_entry_attrs(LDHandle* handle, const char* name, const char* parent, const char* prefix, LDAPAttribute_t** entry_attrs, int opcode) -> enum OperationReturnCode
ld_mod_entry_attrs Modifies list of attributes using supplied operation.

Defines

#define check_handle(handle, function_name)
#define check_string(input, output, function_name)
#define check_and_assign_attribute(error_handler, attrs, value, index, talloc_ctx)

Function documentation

enum OperationReturnCode ld_add_entry(LDHandle* handle, const char* name, const char* parent, const char* prefix, LDAPAttribute_t** entry_attrs)

ld_add_entry Creates the entry.

Parameters
handle in Pointer to libdomain session handle.
name in Name of the entry.
parent in Parent container that holds the entry.
prefix
entry_attrs in List of the attributes to create entry with.
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.

enum OperationReturnCode ld_del_entry(LDHandle* handle, const char* name, const char* parent, const char* prefix)

ld_del_entry Deletes entry.

Parameters
handle in Pointer to libdomain session handle.
name in Name of the entry.
parent in Parent container that holds the entry.
prefix in Prefix of the entry.
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.

enum OperationReturnCode ld_mod_entry(LDHandle* handle, const char* name, const char* parent, const char* prefix, LDAPAttribute_t** entry_attrs)

ld_mod_entry Modifies the entry.

Parameters
handle in Pointer to libdomain session handle.
name in Name of the entry.
parent in Parent container that holds the entry.
prefix
entry_attrs in List of the attributes to modify.
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.

enum OperationReturnCode ld_rename_entry(LDHandle* handle, const char* old_name, const char* new_name, const char* parent, const char* prefix)

ld_rename_entry Renames the entry.

Parameters
handle in Pointer to libdomain session handle.
old_name in Old name of the entry.
new_name in New name of the entry.
parent in Parent container that holds the entry.
prefix in Prefix for entry type.
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.

enum OperationReturnCode ld_mod_entry_attrs(LDHandle* handle, const char* name, const char* parent, const char* prefix, LDAPAttribute_t** entry_attrs, int opcode)

ld_mod_entry_attrs Modifies list of attributes using supplied operation.

Parameters
handle in Pointer to libdomain session handle.
name in Name of the entry.
parent in Parent container that holds the entry.
prefix in Prefix of the entry.
entry_attrs in List of the attributes to modify.
opcode in Code of operation e.g. LDAP_MOD_REPLACE.
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.