Bug 1146117
| Summary: | Unable to set LDAP cache in security realms under "authorization=ldap/group-search=principal-to-group" | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Josef Cacek <jcacek> |
| Component: | Security | Assignee: | Darran Lofthouse <darran.lofthouse> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavel Slavicek <pslavice> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4.0 | CC: | anmiller, darran.lofthouse, kkhan |
| Target Milestone: | DR3 | ||
| Target Release: | EAP 6.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-08-19 12:43:53 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Verified in 6.4.0.DR3 CLI Steps: /core-service=management/ldap-connection=ldapConnection:add(url="ldap://localhost:10389", search-credential="secret", search-dn="uid=admin,ou=system") /core-service=management/security-realm=JBossTest:add /core-service=management/security-realm=JBossTest/authentication=ldap:add(connection=ldapConnection, base-dn="dc=jboss,dc=org", recursive=true, username-attribute=uid) batch /core-service=management/security-realm=JBossTest/authorization=ldap:add(connection=ldapConnection) /core-service=management/security-realm=JBossTest/authorization=ldap/group-search=principal-to-group:add(group-name=SIMPLE, group-name-attribute=cn, iterative=true, group-attribute=description) run-batch reload |
It's not possible to configure LDAP cache in security realms under "authorization=ldap/group-search=principal-to-group" Possible reason: The LdapCacheResourceDefinition is not registered under the org.jboss.as.domain.management.security.PrincipalToGroupResourceDefinition When I try to add the cache configuration manually to standalone.xml, server doesn't start and reports: 15:23:44,619 ERROR [org.jboss.as.controller] (Controller Boot Thread) JBAS014629: No resource definition is registered for address [ ("core-service" => "management"), ("security-realm" => "JBossTest"), ("authorization" => "ldap"), ("group-search" => "principal-to-group"), ("cache" => "by-search-time") ] 15:23:44,621 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.