![]() |
Contains various functions which are handy for the management of users configured on the target control.
MLPIRESULT mlpiAccessControlGetUserPolicies | ( | const MLPIHANDLE | connection, |
MlpiUserPolicies * | userPolicies | ||
) |
This function returns information regarding the policies that apply to all users.
[in] | connection | Handle for multiple connections. |
[out] | userPolicies | Pointer to structure where the user policies will be stored. |
MLPIRESULT mlpiAccessControlGetPasswordPolicies | ( | const MLPIHANDLE | connection, |
MlpiPasswordPolicies * | passwordPolicies | ||
) |
This function returns information regarding the policies that apply to all the user passwords.
[in] | connection | Handle for multiple connections. |
[out] | passwordPolicies | Pointer to structure where the password policies will be stored. |
MLPIRESULT mlpiAccessControlGetAllUserInfos | ( | const MLPIHANDLE | connection, |
MlpiUserInfo * | userInfos, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function returns information regarding all the users currently found within the user manager located on the target device.
[in] | connection | Handle for multiple connections. |
[out] | userInfos | Array that will store all the available user information.. |
[in] | numElements | Size of the given userInfos array. |
[out] | numElementsRet | Return count representing the total amount of user information available on the target device. |
MLPIRESULT mlpiAccessControlAddUser | ( | const MLPIHANDLE | connection, |
MlpiUserDetails | userDetails, | ||
const WCHAR16 * | tmpPassword | ||
) |
This function adds a new user in the target that can be used for authentication. Once the user is added the password shall be changed immediately by logging in using the temporary password.
[in] | connection | Handle for multiple connections. |
[in] | userDetails | Structure to be written containing the information of the new user (the userId is obsolete, as it is defined automatically by the user manager on the target control). |
[in] | tmpPassword | Temporary password that is suggested to be modified during first login. |
MLPIRESULT mlpiAccessControlGetUser | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | username, | ||
MlpiUserDetails * | userDetails | ||
) |
This function obtains the user details of a specific user.
[in] | connection | Handle for multiple connections. |
[in] | username | Username that identifies the user, whose information will be retrieved. |
[out] | userDetails | Pointer to structure to be written containing the information of the indicated user. |
MLPIRESULT mlpiAccessControlSetUser | ( | const MLPIHANDLE | connection, |
MlpiUserDetails | userDetails | ||
) |
This function allows to modify the information of a user. Within the userDetails argument, the correct Id of the user (if known) or username must be given.
[in] | connection | Handle for multiple connections. |
[in] | userDetails | Allows to modify the information of a specific user. |
MLPIRESULT mlpiAccessControlDeleteUser | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | username | ||
) |
This function deletes a user specified by a given username.
[in] | connection | Handle for multiple connections. |
[in] | username | Username that identifies the user that is to be deleted. |
MLPIRESULT mlpiAccessControlChangePassword | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | username, | ||
const WCHAR16 * | oldPassword, | ||
const WCHAR16 * | newPassword | ||
) |
This function changes a user's password.
[in] | connection | Handle for multiple connections. |
[in] | username | Username that identifies the user, whose password will be changed. |
[in] | oldPassword | String that identifies the current password of the specified user. |
[in] | newPassword | String that identifies the new password to be set for the specified user. |
MLPIRESULT mlpiAccessControlGetAllGroupInfos | ( | const MLPIHANDLE | connection, |
MlpiGroupInfo * | groupInfos, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function provides information regarding all the groups of users currently supported by the user manager located on the target device.
[in] | connection | Handle for multiple connections. |
[out] | groupInfos | Array that will store all the available group information. |
[in] | numElements | Size of the given groupInfos array. |
[out] | numElementsRet | Return count representing the total amount of group information available on the target device. |
MLPIRESULT mlpiAccessControlGetAllGroupsOfUser | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | username, | ||
WCHAR16 * | groupNames, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function provides the general group information of all the groups assigned to the specified user.
[in] | connection | Handle for multiple connections. |
[in] | username | Name that identifies the user, whose group information will be retrieved. |
[out] | groupNames | String where the group names (separated by semicolons) will be stored. |
[in] | numElements | Number of WCHAR16 elements available in 'groupNames'. |
[out] | numElementsRet | Number of WCHAR16 elements in complete 'groupNames'. |
MLPIRESULT mlpiAccessControlGetAllUsersOfGroup | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | groupName, | ||
WCHAR16 * | usernames, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function obtains the user details of all the users assigned to the specified group.
[in] | connection | Handle for multiple connections. |
[in] | groupName | Name that identifies the group, whose users information will be retrieved. |
[out] | usernames | String where the user names (separated by semicolons) will be stored. |
[in] | numElements | Number of WCHAR16 elements available in 'usernames'. |
[out] | numElementsRet | Number of WCHAR16 elements in complete 'usernames'. |
MLPIRESULT mlpiAccessControlAddUserToGroup | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | groupName, | ||
const WCHAR16 * | username | ||
) |
This function add a user to a specified group. In other words, the user will be identified as a member of the assigned group.
[in] | connection | Handle for multiple connections. |
[in] | groupName | Name that identifies the group to which the user will be assigned. |
[out] | username | Name that identifies the user that is to be assigned to the specified group. |
MLPIRESULT mlpiAccessControlRemoveUserFromGroup | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | groupName, | ||
const WCHAR16 * | username | ||
) |
This function removes a user from specified group. In other words, the user will not be identified as a member of the assigned group and hence, it won't have the group permissions anymore.
[in] | connection | Handle for multiple connections. |
[in] | groupName | Name that identifies the group from which the user will be removed. |
[out] | username | Name that identifies the user that is to be removed from the specified group. |
MLPIRESULT mlpiAccessControlSetUsersOfGroup | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | groupName, | ||
const WCHAR16 * | usernames | ||
) |
This function sets the Users of a Group. It is capable of adding multiple new users or deleting pre-existing ones in the group. It is recommended to first use the function mlpiAccessControlGetAllUsersOfGroup in order to verify that no unwanted user is added/deleted.
[in] | connection | Handle for multiple connections. |
[in] | groupName | Name that identifies the group to which the users will be assigned. |
[out] | usernames | String that contains the user names separated by semicolons. |
MLPIRESULT mlpiAccessControlSetGroupsOfUser | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | username, | ||
const WCHAR16 * | groupNames | ||
) |
This function sets the Groups of a User. It is capable of adding multiple new groups to a user or deleting pre-existing ones in the user. It is recommended to first use the function mlpiAccessControlGetAllGroupsOfUser in order to verify that no unwanted group is added/deleted.
[in] | connection | Handle for multiple connections. |
[in] | username | Name that identifies the user to which the groups will be assigned. |
[out] | groupNames | String that contains the group names separated by semicolons. |
MLPIRESULT mlpiAccessControlGetGroupPolicies | ( | const MLPIHANDLE | connection, |
MlpiGroupPolicies * | groupPolicies | ||
) |
This function returns information regarding the policies that apply to all groups.
[in] | connection | Handle for multiple connections. |
[out] | groupPolicies | Pointer to structure where the group policies will be stored. |
MLPIRESULT mlpiAccessControlResetPassword | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | username, | ||
const WCHAR16 * | newPassword | ||
) |
This function sets a new password for a specific user (password reset). It is recommended that only users with high privileges (i.e. acting as administrators) have the permission to use this method. The assignment of these permissions should be carried out by adding a new group to which the privileges will be assigned (i.e. using mlpiAccessControlAddGroup) or using a preexisting one, adding the user(s) to the desired group (i.e. using mlpiAccessControlAddUserToGroup or mlpiAccessControlSetUsersOfGroup) and finally assigning the desired permissions (i.e. using mlpiAccessControlAddPermissionToGroup). Users without these privileges can only change their own password by using mlpiAccessControlChangePassword.
[in] | connection | Handle for multiple connections. |
[in] | username | Username that identifies the user, whose password will be changed. |
[in] | newPassword | String that identifies the new password to be set for the specified user. |
MLPIRESULT mlpiAccessControlAddGroup | ( | const MLPIHANDLE | connection, |
MlpiGroupDetails | groupDetails | ||
) |
This function adds a new group in the target that can be used for authorization.
[in] | connection | Handle for multiple connections. |
[in] | GroupDetails | Structure to be written containing the information of the new group (groupId is obsolete, as it is defined automatically on the target). |
MLPIRESULT mlpiAccessControlGetGroup | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | groupName, | ||
MlpiGroupDetails * | groupDetails | ||
) |
This function obtains the details of a specific group.
[in] | connection | Handle for multiple connections. |
[in] | groupName | Name that identifies the group, about which the information will be retrieved. |
[out] | groupDetails | Pointer to structure to be written containing the information of the indicated group. |
MLPIRESULT mlpiAccessControlSetGroup | ( | const MLPIHANDLE | connection, |
MlpiGroupDetails | groupDetails | ||
) |
This function allows to modify the information of a group. Within the groupDetails argument, the correct Id of the group (if known) or group name must be given.
[in] | connection | Handle for multiple connections. |
[in] | groupDetails | Allows to modify the information of a specific group. |
MLPIRESULT mlpiAccessControlDeleteGroup | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | groupName | ||
) |
This function deletes the group specified by the given group name.
[in] | connection | Handle for multiple connections. |
[in] | groupName | Name that identifies the group that is to be deleted. |
MLPIRESULT mlpiAccessControlSetPermissionsOfGroup | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | groupName, | ||
const WCHAR16 * | permissions | ||
) |
This function sets the permissions of the group specified by the given group name.
[in] | connection | Handle for multiple connections. |
[in] | groupName | Name that identifies the group that is to be deleted. |
[in] | permissions | The permissions to be added to the group (separated by semicolons). |
MLPIRESULT mlpiAccessControlGetAllPermissionsOfGroup | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | groupName, | ||
WCHAR16 * | permissions, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function obtains the permissions of the specified group.
[in] | connection | Handle for multiple connections. |
[in] | groupName | Name that identifies the group, whose users information will be retrieved. |
[out] | permissions | String where the permissions (separated by semicolons) will be stored. |
[in] | numElements | Number of WCHAR16 elements available in 'permissions'. |
[out] | numElementsRet | Total number of WCHAR16 elements returned. |
MLPIRESULT mlpiAccessControlGetAllPermissions | ( | const MLPIHANDLE | connection, |
WCHAR16 * | permissions, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function obtains all permissions that are available (and therefore may be added to a group) on the target system.
[in] | connection | Handle for multiple connections. |
[out] | permissions | String where the permissions (separated by semicolons) will be stored. |
[in] | numElements | Number of WCHAR16 elements available in 'permissions'. |
[out] | numElementsRet | Total number of WCHAR16 elements returned. |
MLPIRESULT mlpiAccessControlSetAuthorizedGroupsOfPermission | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | permission, | ||
const WCHAR16 * | groupNames | ||
) |
This function assigns the specified permission(s) to the specified groups. The purpose of the function is to provide a 'batch' functionality to add permissions to more than one group at a time.
[in] | connection | Handle for multiple connections. |
[in] | permission | The permission to be added to the groups. |
[in] | groupNames | Names that identify the groups (separated by semicolons) to which the permission is assigned. |
MLPIRESULT mlpiAccessControlGetAllAuthorizedGroupsOfPermission | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | permission, | ||
WCHAR16 * | groupNames, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function obtains the groups to which a specific permission is assigned.
[in] | connection | Handle for multiple connections. |
[in] | permission | Name that identifies the permission, to which the information will be retrieved. |
[out] | groupNames | String where the group names (separated by semicolons) will be stored. |
[in] | numElements | Number of WCHAR16 elements available in 'groupNames'. |
[out] | numElementsRet | Total number of WCHAR16 elements returned. |
MLPIRESULT mlpiAccessControlAddPermissionToGroup | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | groupName, | ||
const WCHAR16 * | permission | ||
) |
This function add a permission to a specified group.
[in] | connection | Handle for multiple connections. |
[in] | groupName | Name that identifies the group to which the specified permission will be assigned. |
[in] | permission | Name of the permission that will be assigned to the specified group. |
MLPIRESULT mlpiAccessControlRemovePermissionFromGroup | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | groupName, | ||
const WCHAR16 * | permission | ||
) |
This function removes a permission from the specified group.
[in] | connection | Handle for multiple connections. |
[in] | groupName | Name that identifies the group from which the specified permission will be removed. |
[in] | permission | Name of the permission that will be removed from the specified group. |