Role Store

Description

The role store is a repository of roles (groups) and a mapping of users and roles. ArcGIS Server uses the roles and the mapping during authorization of a request. The authorization module fetches all the roles that have been assigned to a user and then computes the privileges as the sum total of all the privileges assigned to individual roles.

In addition to connecting to your enterprise role store such as Windows Domain or any other directory service that supports an LDAP interface, ArcGIS Server also ships with a built-in storage mechanism where you can create your roles and define a user-to-role mapping.

ArcGIS Server requires you to configure a role store while setting up security on your site.

Role store properties

LDAP

PropertyDetails

ldapURLForRoles

The LDAP URL pointing to the roles if roles are stored within the LDAP.

Example
Use dark colors for code blocksCopy
1
"ldapURLForRoles": "ldap://server:389/dc=mydomain,dc=com???(&(objectClass=group))?"

memberAttributeInRoles

The attribute of the role entry that contains user membership information.

Example
Use dark colors for code blocksCopy
1
"memberAttributeInRoles": "member"

usernameAttribute

The attribute of the user entry that is to be treated as the username.

Example
Use dark colors for code blocksCopy
1
"usernameAttribute": "name"

rolenameAttribute

The attribute of the role entry that is to be treated as the rolename.

Example
Use dark colors for code blocksCopy
1
"rolenameAttribute": "name"

adminUser

The administrative account to the LDAP that has at least read access.

Example
Use dark colors for code blocksCopy
1
"adminUser": "cn=admin,cn=users,dc=mydomain,dc=com"

adminUserPassword

The credentials for the administrative account.

Example
Use dark colors for code blocksCopy
1
"adminUserPassword": "secret"

Windows

PropertyDetails

adminUser

The administrative account to the LDAP that has at least read access.

Example
Use dark colors for code blocksCopy
1
"adminUser": "cn=admin,cn=users,dc=mydomain,dc=com"

adminUserPassword

The credentials for the administrative account.

Example
Use dark colors for code blocksCopy
1
"adminUserPassword": "secret"

useSSLOnly

This property applies to the Windows Active Directory only. It enforces encrypted communication between ArcGIS Server and Active Directory. When the property is set to true, if encrypted communication fails, ArcGIS Server does not attempt to communicate without encryption. This property is set to false by default.

Values: true | false

Custom

PropertyDetails

class

The fully qualified name of the Java class that implements custom access to the role store.

Example
Use dark colors for code blocksCopy
1
"class": "com.myorg.userstore.DBUserStore"

...

Any custom properties that are required by your class.

Role store syntax

Use dark colors for code blocksCopy
1
2
3
4
{
  "type": "<BUILTIN | WINDOWS | LDAP | CUSTOM>",
  "properties": <properties>
}

Role store examples

The JSON representation of a connection to LDAP:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
{
  "type": "LDAP",
  "properties": {
    "ldapURLForRoles": "ldap://server:389/dc=mydomain,dc=com???(&(objectClass=group))?",
    "memberAttributeInRoles": "member",
    "usernameAttribute": "name",
    "rolenameAttribute": "name",
    "adminUser": "cn=admin,cn=users,dc=mydomain,dc=com",
    "adminUserPassword": "secret"
  }
}

The JSON representation of a connection to Windows Domain roles:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
{
  "type": "WINDOWS",
  "properties": {
    "adminUser": "ourdomain\\myreadonlyaccount",
    "adminUserPassword": "secret"
  }
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.