Users and Groups
A user needs to be assigned to a group within ODK-X Sync Endpoint to set their permissions and roles for ODK-X apps. More information about groups and roles is available in Data Permission Filters section.
The instructions below assumes you have access to the phpLDAPAdmin web administration interface. Note that this is not enabled by default, so you may want to enable it by following the instructions in the LDAP Web administration documentation.
Creating users
- Click: login on the left and login as admin.
Start by logging into the ldap-service. Copy the login below.- login DN: cn=admin,dc=example,dc=org- password: admin (or the password you chose in the setup wizard)
Expand the tree view on the left until you see ou=people. Click the + sign next to dc=example, dc=org to expand it. Within the unfolded menu, in the ou=people section, click on Create a child entry (new person).
Then, select the Generic: User Account template.
Fill out information for the new user and “create object.” Assign it to the default_prefix_synchronize_tables group. You will need to commit (confirm) that you want to create this entry on the next screen.
Creating groups
Click: login on the left and login as admin.
Expand the tree view on the left until you see ou=groups.
Click on ou=default_prefix and choose Create a child entry.
Choose the Generic: Posix Group template.
Fill out the form and click Create Object.
Note
The group name must start with the group prefix, in this case the group prefix is default_prefix so for example: default_prefix my-new-group
Assign users to groups with these instructions.
Assigning users to groups
Click: login on the right and login as admin.
Expand the tree view on the right until you see ou=default_prefix, then expand ou=default_prefix.
This list is all the groups under ou=default_prefix.
Click on the group that you want to assign users to. In this section, click on gidNumber=503, which is the group ID that corresponds to default_prefix_synchronize_tables. Groups correspond to the access permissions available to a certain user.
A few groups are created when the LDAP server is brought up, refer to Data Permission Filters for descriptions of these groups.
Note
A user needs to be assigned one of the roles in addition to any other group of your choosing. These roles are available as groups 500 (SITE_ADMIN), 501 (ADMINISTER_TABLES), 502 (SUPER_USER_TABLES), 503 (SYNCHRONIZE_TABLES).
Assign users to groups with these instructions.
If the memberUid section is not present:
Choose Add new attribute.
Choose memberUid from the dropdown, then enter uid of the user you want to assign.
Click Update Object at the bottom to update.
If the memberUid section is present,
Navigate to http://[IP_ADDRESS]/web-ui/login in order to access the login screen.