When commissioning a machine, there's a good chance the developer won't know the proper name of the groups that the domain administrator will use in the Active Directory or LDAP server.
To overcome this issue, this example uses the Roles
of FactoryTalk Optix to enable some UI elements, then when the project is deployed to the target device, an administrator can create the list of groups coming from the domain controller, and assign them one or more roles.
Rockwell Automation maintains these repositories as a convenience to you and other users. Although Rockwell Automation reserves the right at any time and for any reason to refuse access to edit or remove content from this Repository, you acknowledge and agree to accept sole responsibility and liability for any Repository content posted, transmitted, downloaded, or used by you. Rockwell Automation has no obligation to monitor or update Repository content
The examples provided are to be used as a reference for building your application and should not be used in production as-is. It is recommended to adapt the example for the purpose, of observing the highest safety standards.
Important
This project requires an Active Directory server to be reachable
- Make sure the server has some valid certificates
- Create some users
- Create some groups
- Assign users to groups (for example:
user1
toLine1_User
)
- Navigate to
Optix_Sample_AssignRolesToGroupsAtRuntime/Authentication/DefaultDomainName
and set the default domain name - Navigate to
Optix_Sample_AssignRolesToGroupsAtRuntime/Authentication/DomainServerAddress
and set the IP Address (or DNS) of the Active Directory server - Navigate to
Optix_Sample_AssignRolesToGroupsAtRuntime/Authentication/CACertificateFile
and import the CA certificate of the Active Directory server - Make sure the machine can ping the Active Directory server address/DNS
- Navigate to the
RolesToGroups
page - Create the groups with the same
Group name
as shown in the Active Directory server console (for example:Line1_User
,Line1_SuperUser
) - Select one of the created groups from the ListBox and select which roles to assign (for example:
Line1_User
toRole1
) - Hit
Apply
to save the changes - Navigate to the
Permissions
page - Login with one of the users from the AD (for example:
user1
which was assigned toLine1_User
) - Check that
Role1
LED turns on