Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

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: SecurityAssignee: Darran Lofthouse <darran.lofthouse>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Slavicek <pslavice>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: 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:

Description Josef Cacek 2014-09-24 13:37:15 UTC
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.

Comment 2 Josef Cacek 2014-10-02 08:15:59 UTC
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

Comment 3 JBoss JIRA Server 2015-04-28 15:05:19 UTC
John Doyle <jdoyle> updated the status of jira EAP6-191 to Closed