src/computer.c file

Enums

enum ComputerAttributeIndex { OBJECT_CLASS = 0, CN = 1, DESCRIPTION = 2, SERIAL_NUMBER = 3, SEE_ALSO = 4, ORGANIZATION_NAME = 5, LOCALITY_NAME = 6, OWNER = 7, ORGANIZATION_UNIT_NAME = 8 }

Functions

static auto create_computer_parent(TALLOC_CTX* talloc_ctx, LDHandle* handle) -> const char*
auto ld_add_computer(LDHandle* handle, const char* name, LDAPAttribute_t** attrs, const char* parent) -> enum OperationReturnCode
ld_add_computer Creates new computer
auto ld_del_computer(LDHandle* handle, const char* name, const char* parent) -> enum OperationReturnCode
ld_del_computer Deletes computer
auto ld_mod_computer(LDHandle* handle, const char* name, const char* parent, LDAPAttribute_t** computer_attrs) -> enum OperationReturnCode
ld_mod_computer Modifies computer
auto ld_rename_computer(LDHandle* handle, const char* old_name, const char* new_name, const char* parent) -> enum OperationReturnCode
ld_rename_computer Renames computer

Function documentation

enum OperationReturnCode ld_add_computer(LDHandle* handle, const char* name, LDAPAttribute_t** attrs, const char* parent)

ld_add_computer Creates new computer

Parameters
handle in LibDomain handle
name in name of the computer
attrs in Attributes of the computer
parent in Parent container of the computer.
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.

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

ld_del_computer Deletes computer

Parameters
handle in Pointer to libdomain session handle.
name in Name of the computer.
parent in Parent container of the computer.
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.

enum OperationReturnCode ld_mod_computer(LDHandle* handle, const char* name, const char* parent, LDAPAttribute_t** computer_attrs)

ld_mod_computer Modifies computer

Parameters
handle in Pointer to libdomain session handle.
name in Name of the computer.
parent in Parent container of the computer.
computer_attrs in List of the attributes to modify.
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.

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

ld_rename_computer Renames computer

Parameters
handle in Pointer to libdomain session handle.
old_name in Old name of the computer.
new_name in New name of the computer.
parent in Parent container of the computer.
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.