Configuring basic authentication using an identity mapper
About this task
By default, the SCIM servlet is configured to use the Exact Match Identity Mapper, which matches against the uid
attribute. In this example, an alternate Identity Mapper is created so that clients can authenticate using cn
values.
Steps
-
Create a new Identity Mapper that uses a match attribute of cn.
Example:
$ bin/dsconfig create-identity-mapper \ --mapper-name "CN Identity Mapper" \ --type exact-match \ --set enabled:true \ --set match-attribute:cn
-
Configure the SCIM servlet to use the new Identity Mapper.
Example:
$ bin/dsconfig set-http-servlet-extension-prop \ --extension-name SCIM \ --set "identity-mapper:CN Identity Mapper"