src/attribute.c file

Functions

static auto create_attribute_parent(LDHandle* handle) -> const char*
auto ld_add_attributes(LDHandle* handle, const char* cn, struct LDAPAttribute_s** attrs) -> enum OperationReturnCode
ld_add_attributes Adds list of attributes to ldap entry.
auto ld_del_attributes(LDHandle* handle, const char* cn, struct LDAPAttribute_s** attrs) -> enum OperationReturnCode
ld_del_attributes Deletes list of attributes from ldap entry.

Function documentation

enum OperationReturnCode ld_add_attributes(LDHandle* handle, const char* cn, struct LDAPAttribute_s** attrs)

ld_add_attributes Adds list of attributes to ldap entry.

Parameters
handle in Pointer to libdomain session handle.
cn in Entry's LDAP common name.
attrs in Pointer to NULL terminated array of attributes.
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.

enum OperationReturnCode ld_del_attributes(LDHandle* handle, const char* cn, struct LDAPAttribute_s** attrs)

ld_del_attributes Deletes list of attributes from ldap entry.

Parameters
handle in Pointer to libdomain session handle.
cn in Entry's LDAP common name.
attrs in Pointer to NULL terminated array of attributes.
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.