User management and access control
Authentication and user database settings
Manage users and usergroups locally on SPS
The AAA endpoint contains the configuration endpoints for the authentication, authorization, and account (AAA) settings of the users who access SPS.
GET https://<IP-address-of-SPS>/api/configuration/aaa/
Cookie name | Description | Required | Values |
---|---|---|---|
session_id | Contains the authentication token of the user | Required |
The value of the session ID cookie received from the REST server in the authentication response, for example, a1f71d030e657634730b9e887cb59a5e56162860. For details on authentication, see Authenticate to the SPS REST API. Note that this session ID refers to the connection between the REST client and the SPS REST API. It is not related to the sessions that SPS records (and which also have a session ID, but in a different format). |
The following command lists the AAA configuration endpoints.
curl --cookie cookies https://<IP-address-of-SPS>/api/configuration/aaa/
The following is a sample response received when listing AAA configuration endpoints.
For details of the meta object, see Message format.
{ "items": [ { "key": "acls", "meta": { "href": "/api/configuration/aaa/acls" } }, { "key": "local_database", "meta": { "href": "/api/configuration/aaa/local_database" } }, { "key": "settings", "meta": { "href": "/api/configuration/aaa/settings" } } ], "meta": { "first": "/api/configuration/aaa", "href": "/api/configuration/aaa", "last": "/api/configuration/x509", "next": "/api/configuration/alerting", "parent": "/api/configuration", "previous": null, "transaction": "/api/transaction" } }
Element | Description |
---|---|
acls | Access control settings for usergroups. |
local_database | Local users and usergroups. |
settings | Authentication and user database settings. |
The following table lists the typical status and error codes for this request. For a complete list of error codes, see Application level error codes.
Code | Description | Notes |
---|---|---|
401 | Unauthenticated | The requested resource cannot be retrieved because the client is not authenticated and the resource requires authorization to access it. The details section contains the path that was attempted to be accessed, but could not be retrieved. |
401 | AuthenticationFailure | Authenticating the user with the given credentials has failed. |
404 | NotFound | The requested object does not exist. |
Contains settings for authenticating to SPS. You can create a user database locally on SPS, or connect to an LDAP server to authenticate users. You can configure authentication with passwords, X.509 certificates, or against a RADIUS server.
GET https://<IP-address-of-SPS>/api/configuration/aaa/settings
Cookie name | Description | Required | Values |
---|---|---|---|
session_id | Contains the authentication token of the user | Required |
The value of the session ID cookie received from the REST server in the authentication response, for example, a1f71d030e657634730b9e887cb59a5e56162860. For details on authentication, see Authenticate to the SPS REST API. Note that this session ID refers to the connection between the REST client and the SPS REST API. It is not related to the sessions that SPS records (and which also have a session ID, but in a different format). |
The following command lists the authentication and user database settings.
curl --cookie cookies https://<IP-address-of-SPS>/api/configuration/aaa/settings
The following is a sample response received when listing authentication and user database settings.
For details of the meta object, see Message format.
{ "key": "settings", "body": { "method": { "selection": "x509", "admin_fallback": true, "trusted_ca": { "key": "18610698755c8de61207a7", "meta": {"href": "/api/configuration/policies/trusted_ca_lists/18610698755c8de61207a7"} }, "username_attribute": "commonName" }, "backend": { "selection": "ldap", "schema": { "selection": "ad", "membership_check": { "enabled": true, "nested_groups": false }, "memberof_check": { "enabled": true, "memberof_user_attribute": "memberOf" }, "user_dn_in_groups": [] }, "servers": [ { "host": { "selection": "ip", "value": "10.110.0.1" }, "port": 389 }, { "host": { "selection": "fqdn", "value": "my.example" }, "port": 389 } ], "user_base_dn": "ou=People,dc=example", "group_base_dn": "ou=Groups,dc=example", "bind_dn": "cn=admin,dc=example", "bind_password": { "key": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "meta": {"href": "/api/configuration/passwords#XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"} }, "encryption": { "selection": "starttls", "server_certificate_check": { "enabled": false }, "client_authentication": { "enabled": true, "x509_identity": { "key": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "meta": {"href": "/api/configuration/x509/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"} } } } }, "require_commitlog": true } }
Element | Type | Description | |
---|---|---|---|
key | string | Top level element, contains the ID of the endpoint. | |
body | Top level element (string) | Contains the authentication settings. | |
backend | Top level item | Settings for the user database (local or LDAP), and password policy. | |
method | Top level item | Settings for the authentication method (password, RADIUS server, or X.509 certificate). | |
require_commitlog | boolean | Set to true to request the user to write an explanation to every configuration change. |
Elements of backend | Type | Description | ||||
---|---|---|---|---|---|---|
selection | string |
Defines the user database back-end. Possible values are:
| ||||
cracklib_enabled | boolean |
Password setting. Set to false if a RADIUS server or X.509 certificate is used for authentication. Must be used if the value of the selection element is set to local. Set to true to test the strength of user passwords with simple dictionary attacks before they are committed.
| ||||
expiration_days | int |
Password setting. Set to 0 if a RADIUS server or X.509 certificate is used for authentication. Must be used if the value of the selection element is set to local. Configures the number of days the user passwords are considered valid. Expired passwords must be changed upon login. The 0 value means the passwords do not expire. The highest value you can configure is 365. | ||||
minimum_password_strength | string |
Password setting. Set to disabled if a RADIUS server or X.509 certificate is used for authentication. Must be used if the value of the selection element is set to local. Configures the required password strength for new passwords. Possible values are:
| ||||
remember_previous_passwords | int |
Password setting. Set to 0 if a RADIUS server or X.509 certificate is used for authentication. Must be used if the value of the selection element is set to local. Configures the number of previous passwords to retain to prevent password reuse. The 0 value means passwords can be reused. | ||||
user_base_dn | string |
Must be used if the value of the selection element is set to ldap. Name of the DN to be used as the base of queries regarding users.
| ||||
group_base_dn | string |
Must be used if the value of the selection element is set to ldap. Name of the DN to be used as the base of queries regarding groups.
| ||||
bind_dn | string |
The Distinguished Name that SPS should use to bind to the LDAP directory. Must be used if the value of the selection element is set to ldap.
| ||||
bind_password | string |
Must be used if the value of the selection element is set to ldap. References the password SPS uses to authenticate on the server. You can configure passwords at the /api/configuration/passwords/ endpoint. To modify or add a password, use the value of the returned key as the value of the password element, and remove any child elements (including the key).
| ||||
encryption | Top level item |
Must be used if the value of the selection element is set to ldap. Configuration settings for encrypting the communication between SPS and the LDAP server. | ||||
selection | string |
Defines the type of encryption SPS uses to communicate with the LDAP server. Possible values are:
| ||||
client_authentication | Top level item |
Must be used with the selection child element. Configures the X.509 certificate SPS uses to authenticate on the LDAP server. | ||||
enabled | boolean |
Must be used with the client-authentication parent element. Set to true if the LDAP server requires mutual authentication. | ||||
x509_identity | string |
Must be used if the enabled element is set to true. References the identifier of the X.509 certificate stored on SPS. You can configure certificates at the /api/configuration/x509/ endpoint. To modify or add an X.509 host certificate, use the value of the returned key as the value of the x509_identity element, and remove any child elements (including the key). | ||||
server_certificate_check | Top level item |
Must be used with the enabled child element. Configuration settings for verifying the LDAP server's certificate. | ||||
enabled | boolean |
Must be used with the server_certificate_check parent element. Set to true to verify the LDAP server's certificate using the certificate of a Certificate Authority (CA). | ||||
server_certificate_ca | string |
Must be used if the enabled element is set to true. The certificate of the CA. | ||||
schema | Top level item |
Must be used if the value of the selection element is set to ldap. Schema settings for AD and POSIX servers. | ||||
selection | string |
Configures which LDAP schema to use: AD or POSIX. Possible values are:
| ||||
membership_check | Top level element | |||||
enabled | boolean |
POSIX: Enables POSIX primary and supplementary group membership checking. AD: Enables Active Directory specific non-primary group membership checking. | ||||
nested_groups | boolean |
Must be used if the selection element is set to ad. Enable nested groups allows AD nested group support. | ||||
member_uid_attribute | string |
Must be used if the value of the selection element is set to posix. The POSIX group membership attribute name is the name of the attribute in a posixGroup group object, which lists the plain usernames that are members of the group. These groups are usually referred to as supplementary groups of the referred user. Can be null. | ||||
memberof_check | Top level element |
The Enable checking for group DNs in user objects setting allows checking a configurable attribute in the user object. This attribute contains a list of group DNs the user is additionally a member of. This user attribute is usually memberOf. | ||||
enabled | boolean |
To enable memberof_check, set it to true. | ||||
memberof_user_attribute | string |
Must be used if the memberof_check is set it to true. The name of the user attribute (for example, memberOf) that contains the group DNs. | ||||
memberof_group_objectclass | string |
Must be used if the value of the selection element is set to posix. The objectClass of the referred groups that can be referred in the memberof_user_attribute. | ||||
username_attribute | string |
Must be used if the value of the selection element is set to posix. Username (user ID) attribute name is the name of the attribute in the user object, which contains the user’s plain username. | ||||
user_dn_in_groups | Top level list |
Check the user DN in these groups is a list of additional group object classes and their respective attributes where SPS will look for member user DNs. Add object_class / attribute pairs. SPS will search for the user DN in the group's attribute defined here. For example: "user_dn_in_groups": [ { "object_class": "groupOfNames", "attribute": "member" }, { "object_class": "groupOfUniqueNames", "attribute": "uniqueMember" } ] | ||||
object_class | string | Consider groups of this objectClass. | ||||
attribute | string | Name of the group attribute which contains the user DN. | ||||
servers | Top level list |
Must be used if the value of the selection element is set to ldap. Contains the addresses and ports of the LDAP servers. | ||||
host | Top level item | Contains the address of the LDAP server. | ||||
selection | string |
Defines the address type (IP or domain name). Possible values are:
| ||||
value | string |
The address of the LDAP server.
| ||||
port | int | The port of the LDAP server. |
Elements of method | Type | Description | ||||
---|---|---|---|---|---|---|
selection | string |
Configures the authentication method. Possible values are:
| ||||
servers | Top level list |
RADIUS setting. Must be used if the value of the selection element is set to radius. Contains the RADIUS server addresses and port numbers, and references the shared secrets. | ||||
address | Top level item |
RADIUS setting. Must be used if the value of the selection element is set to radius. The address and port number of the RADIUS server. | ||||
authentication_protocol | Top level item |
RADIUS setting. Set to pap to use the Password Authentication Protocol. To use the Challenge-Handshake Authentication Protocol, set it to chap. | ||||
selection | string |
RADIUS setting. Must be used if the value of the selection element is set to radius. Defines the address type (IP or domain name). Possible values are:
| ||||
value | string |
RADIUS setting. Must be used if the value of the selection element is set to radius. The address of the RADIUS server. | ||||
port | int |
RADIUS setting. Must be used if the value of the selection element is set to radius. The port number of the RADIUS server. | ||||
shared_secret | string |
RADIUS setting. Must be used if the value of the selection element is set to radius. References the identifier of the shared secret. You can view or modify the list of shared secrets at the /api/configuration/passwords/ endpoint. To modify or add a shared secret, use the value of the returned key as the value of the shared_secret element, and remove any child elements (including the key). | ||||
admin_fallback | boolean |
X.509 setting. Must be used if the value of the selection element is set to x509. Set to true to allow the admin user to use password for login. | ||||
dn | string |
X.509 setting. Must be used if the value of the selection element is set to x509. X.509 DN field name of the username (case sensitive). In most cases, this value is either CN or UID. | ||||
trusted_ca | string |
X.509 setting. Must be used if the value of the selection element is set to x509. References the identifier of the trusted CA. You can view or modify the list of trusted CAs at the /api/configuration/policies/trusted_ca_lists/ endpoint. To modify or add a trusted CA, use the value of the returned key as the value of the trusted_ca element, and remove any child elements (including the key). |
This example configures a local user database with a password policy to authenticate the users of SPS:
|
NOTE:
One Identity Safeguard for Privileged Sessions (SPS) accepts passwords that are not longer than 150 characters. The following special characters can be used: !"#$%&'()*+,-./:;<=>?@[\]^-`{|} |
|
NOTE:
The strength of the password is determined by its entropy: the variety of numbers, letters, capital letters, and special characters used, not only by its length. To execute some simple dictionary-based attacks to find weak passwords, set Cracklib (eg. dictionary) check on password to Enabled. |
|
NOTE:
Changes to the password policy do not affect existing passwords. However, setting password expiry will require every user to change their passwords after the expiry date, and the new passwords must comply with the strength requirements set in the password policy. |
{ "backend": { "cracklib_enabled": false, "expiration_days": 0, "minimum_password_strength": "good", "remember_previous_passwords": 10, "selection": "local" }, "method": { "selection": "passwd" }, "require_commitlog": false }
This example configures a local user database with a RADIUS server to authenticate the users of SPS. Note that the password-related elements have to be disabled, as the RADIUS server determines the password policy.
|
Caution:
The challenge/response authentication method is currently not supported. Other authentication methods (for example password, SecureID) should work. |
|
Caution:
After you commit this configuration, the SPS web interface will be available only after successfully authenticating to the RADIUS server. Note that the default admin account of SPS will be able to login normally, even if the RADIUS server is unaccessible. |
{ "backend": { "cracklib_enabled": false, "expiration_days": 0, "minimum_password_strength": "disabled", "remember_previous_passwords": 0, "selection": "local" }, "method": { "selection": "radius", "servers": [ { "address": { "selection": "ip", "value": "<server-ip>" }, "port": <port>, "shared_secret": "<id-of-the-password>" } ] }, "require_commitlog": false }
This example configures a local user database with X.509 certificates to authenticate the users of SPS. Note that the password-related elements have to be disabled.
{ "backend": { "cracklib_enabled": false, "expiration_days": 0, "minimum_password_strength": "disabled", "remember_previous_passwords": 0, "selection": "local" }, "method": { "admin_fallback": true, "dn": "<CN>", "selection": "x509", "trusted_ca": "<id-of-the-trusted-ca>" }, "require_commitlog": false }
|
NOTE:
|
|
Caution:
Nested groups can slow down the query and cause the connection to timeout if the LDAP tree is very large. In this case, disable the Enable nested groups option. |
|
NOTE:
You also have to configure the usergroups in SPS and possibly in your LDAP database. For details on using usergroups, see "Using usergroups" in the Administration Guide. |
This example configures a POSIX LDAP server, communication between SPS and the LDAP server is not encrypted. Note that for password authentication, the password-related elements have to be omitted from the JSON, as the POSIX server determines the password policy.
{ "backend": { "selection": "ldap", "user_base_dn": "<base-dn>", "group_base_dn": "<base-dn>", "bind_dn": "<bind-dn>", "bind_password": "<id-of-the-password>", "schema": { "selection": "posix", "username_attribute": "<uid-attr>", "membership_check": { "enabled": true, "member_uid_attribute": "<memberUid-attr>" }, "memberof_check": { "enabled": true, "memberof_user_attribute": "<user-attr-of-group-dns>", "memberof_group_objectclass": "<object-class-of-groups>" }, "user_dn_in_groups": [] }, "servers": [ { "host": { "selection": "ip", "value": "<ip-of-server>" }, "port": <port> } ], "encryption": { "selection": "disabled" } }, "method": { "selection": "passwd" }, "require_commitlog": false }
|
NOTE:
|
|
Caution:
Nested groups can slow down the query and cause the connection to timeout if the LDAP tree is very large. In this case, disable the Enable nested groups option. |
|
NOTE:
You also have to configure the usergroups in SPS and possibly in your LDAP database. For details on using usergroups, see "Using usergroups" in the Administration Guide. |
This example configures a Microsoft Active Directory server with mutual authentication, and SPS verifies the certificate of the server. Note that for password authentication, the password-related elements have to be omitted from the JSON, as the AD server determines the password policy.
{ "backend": { "selection": "ldap", "user_base_dn": "<base-dn>", "group_base_dn": "<base-dn>", "bind_dn": "<bind-dn>", "bind_password": "<id-of-the-password>", "schema": { "selection": "ad", "membership_check": { "enabled": true, "nested_groups": true }, "memberof_check": { "enabled": true, "memberof_user_attribute": "<user-attr-of-group-dns>" }, "user_dn_in_groups": [] }, "servers": [ { "host": { "selection": "ip", "value": "<ip-of-server>" }, "port": <port> } ], "encryption": { "selection": "starttls", "server_certificate_check": { "enabled": true, "server_certificate_ca": "<cert>" }, "client_authentication": { "enabled": true, "x509_identity": "<id-of-the-cert-and-key>" } } }, "method": { "selection": "passwd" }, "require_commitlog": false }
To modify the authentication and user database settings, you have to:
For details, see Open a transaction.
PUT the modified JSON object to the https://<IP-address-of-SPS>/api/configuration/aaa/settings endpoint. You can find a detailed description of the available parameters listed in Element .
For details, see Commit a transaction.
The following table lists the typical status and error codes for this request. For a complete list of error codes, see Application level error codes.
Code | Description | Notes |
---|---|---|
201 | Created | The new resource was successfully created. |
401 | Unauthenticated | The requested resource cannot be retrieved because the client is not authenticated and the resource requires authorization to access it. The details section contains the path that was attempted to be accessed, but could not be retrieved. |
401 | AuthenticationFailure | Authenticating the user with the given credentials has failed. |
404 | NotFound | The requested object does not exist. |
This endpoint lists the usergroups configured on SPS, and the privileges (ACLs) of each group.
Note that currently you cannot edit the privileges (ACLs) of the groups using the REST API. If you change the privileges of a usergroup on the SPS web interface, the changes will apply to the users when they authenticate again on SPS, the privileges of active sessions are not affected.
GET https://<IP-address-of-SPS>/api/configuration/aaa/acls
Cookie name | Description | Required | Values |
---|---|---|---|
session_id | Contains the authentication token of the user | Required |
The value of the session ID cookie received from the REST server in the authentication response, for example, a1f71d030e657634730b9e887cb59a5e56162860. For details on authentication, see Authenticate to the SPS REST API. Note that this session ID refers to the connection between the REST client and the SPS REST API. It is not related to the sessions that SPS records (and which also have a session ID, but in a different format). |
The following command lists the local users.
curl --cookie cookies https://<IP-address-of-SPS>/api/configuration/aaa/acls
The following is a sample response received when querying the endpoint.
For details of the meta object, see Message format.
{ "body": [ { "group": "basic-view", "objects": [ "/special/basic" ], "permission": "read" }, { "group": "basic-write", "objects": [ "/special/basic" ], "permission": "write" }, { "group": "auth-view", "objects": [ "/special/auth" ], "permission": "read" }, { "group": "auth-write", "objects": [ "/special/auth" ], "permission": "write" }, { "group": "search", "objects": [ "/special/searchmenu" ], "permission": "read" }, { "group": "changelog", "objects": [ "/special/changelog" ], "permission": "read" }, { "group": "policies-view", "objects": [ "/special/pol" ], "permission": "read" }, { "group": "policies-write", "objects": [ "/special/pol" ], "permission": "write" }, { "group": "ssh-view", "objects": [ "/special/ssh" ], "permission": "read" }, { "group": "ssh-write", "objects": [ "/special/ssh" ], "permission": "write" }, { "group": "rdp-view", "objects": [ "/special/rdp" ], "permission": "read" }, { "group": "rdp-write", "objects": [ "/special/rdp" ], "permission": "write" }, { "group": "telnet-view", "objects": [ "/special/telnet" ], "permission": "read" }, { "group": "telnet-write", "objects": [ "/special/telnet" ], "permission": "write" }, { "group": "vnc-view", "objects": [ "/special/vnc" ], "permission": "read" }, { "group": "vnc-write", "objects": [ "/special/vnc" ], "permission": "write" }, { "group": "indexing", "objects": [ "/special/search/search", "/special/bap" ], "permission": "write" }, { "group": "ica-view", "objects": [ "/special/ica" ], "permission": "read" }, { "group": "ica-write", "objects": [ "/special/ica" ], "permission": "write" }, { "group": "api", "objects": [ "/special/rpcapi" ], "permission": "write" }, { "group": "http-view", "objects": [ "/special/http" ], "permission": "read" }, { "group": "http-write", "objects": [ "/special/http" ], "permission": "write" }, { "group": "indexer-view", "objects": [ "/special/indexer" ], "permission": "read" }, { "group": "indexer-write", "objects": [ "/special/indexer" ], "permission": "write" }, ], "key": "acls", "meta": { "first": "/api/configuration/aaa/acls", "href": "/api/configuration/aaa/acls", "last": "/api/configuration/aaa/settings", "next": "/api/configuration/aaa/local_database", "parent": "/api/configuration/aaa", "previous": null, "transaction": "/api/transaction" } }
Element | Type | Description | |
---|---|---|---|
body | Top level element (JSON object) | Contains the properties of the user. | |
group | string | The name of the usergroup. | |
objects | list | The list of privileges that the group has access to. | |
permission | read | write | The type of the permission. The group needs write access to configure an object, or to perform certain actions. |
The following table lists the typical status and error codes for this request. For a complete list of error codes, see Application level error codes.
Code | Description | Notes |
---|---|---|
401 | Unauthenticated | The requested resource cannot be retrieved because the client is not authenticated and the resource requires authorization to access it. The details section contains the path that was attempted to be accessed, but could not be retrieved. |
401 | AuthenticationFailure | Authenticating the user with the given credentials has failed. |
404 | NotFound | The requested object does not exist. |
© ALL RIGHTS RESERVED. 이용 약관 개인정보 보호정책 Cookie Preference Center