Description:
|
Currently the LDAP store configuration forces users to provide the supported types as follows:
{code} .ldap() .supportType(Agent.class) // redundant supported type configuration .mapping(Agent.class) .objectClasses("account") .attribute("loginName", UID, true) .readOnlyAttribute("createdDate", CREATE_TIMESTAMP) {code}
We can simplify the configuration by discovering all supported types from the mapping configuration, as follows:
{code}
.ldap() .mapping(Agent.class) // the Agent type is automatically added to the lit of supported types .objectClasses("account") .attribute("loginName", UID, true) .readOnlyAttribute("createdDate", CREATE_TIMESTAMP) {code}
|