file
group.c
Enums
- enum GroupAttributeIndex { OBJECT_CLASS = 0, CN = 1, DESCRIPTION = 2, GID_NUMBER = 3 }
Functions
-
auto ld_add_group(LDHandle* handle,
const char* name,
LDAPAttribute_
t** attributes, const char* parent) -> enum OperationReturnCode - ld_add_group Creates the group.
- auto ld_del_group(LDHandle* handle, const char* name, const char* parent) -> enum OperationReturnCode
- ld_del_group Deletes the group.
-
auto ld_mod_group(LDHandle* handle,
const char* name,
const char* parent,
LDAPAttribute_
t** group_attrs) -> enum OperationReturnCode - ld_mod_group Modifies the group.
- auto ld_rename_group(LDHandle* handle, const char* old_name, const char* new_name, const char* parent) -> enum OperationReturnCode
- ld_rename_group Renames group.
- static auto group_member_modify(LDHandle* handle, const char* group_dn, const char* user_dn, char mod_operation) -> enum OperationReturnCode
- auto ld_group_add_user(LDHandle* handle, const char* group_name, const char* user_name) -> enum OperationReturnCode
- ld_group_add_user Adds user to the group.
- auto ld_group_remove_user(LDHandle* handle, const char* group_name, const char* user_name) -> enum OperationReturnCode
- ld_group_remove_user Removes user from the group.
Function documentation
enum OperationReturnCode ld_add_group(LDHandle* handle,
const char* name,
LDAPAttribute_ t** attributes,
const char* parent)
ld_add_group Creates the group.
Parameters | |
---|---|
handle in | Pointer to libdomain session handle. |
name in | Name of a group. |
attributes in | List of group attributes depends on directory type. |
parent in | Parent container that holds the group. |
Returns |
|
enum OperationReturnCode ld_del_group(LDHandle* handle, const char* name, const char* parent)
ld_del_group Deletes the group.
Parameters | |
---|---|
handle in | Pointer to libdomain session handle. |
name in | Name of the group. |
parent in | Container that holds the group. |
Returns |
|
enum OperationReturnCode ld_mod_group(LDHandle* handle,
const char* name,
const char* parent,
LDAPAttribute_ t** group_attrs)
ld_mod_group Modifies the group.
Parameters | |
---|---|
handle in | Pointer to libdomain session handle. |
name in | Name of the group. |
parent in | Container that holds the group. |
group_attrs in | List of attributes to modify. |
Returns |
|
enum OperationReturnCode ld_rename_group(LDHandle* handle, const char* old_name, const char* new_name, const char* parent)
ld_rename_group Renames group.
Parameters | |
---|---|
handle in | Pointer to libdomain session handle. |
old_name in | Old name of the group. |
new_name in | New name of the group. |
parent in | Container that holds the group. |
Returns |
|
enum OperationReturnCode ld_group_add_user(LDHandle* handle, const char* group_name, const char* user_name)
ld_group_add_user Adds user to the group.
Parameters | |
---|---|
handle in | Pointer to libdomain session handle. |
group_name in | Name of the group to add user into. |
user_name in | Name of the user to add. |
Returns |
|
enum OperationReturnCode ld_group_remove_user(LDHandle* handle, const char* group_name, const char* user_name)
ld_group_remove_user Removes user from the group.
Parameters | |
---|---|
handle in | Pointer to libdomain session handle. |
group_name in | Name of the group to remove user from. |
user_name in | Name of the user. |
Returns |
|