Bug 1117852 - [GSS] (6.3.x) Using the CLI to setup a security domain with two login modules with the same "code" fails.
Summary: [GSS] (6.3.x) Using the CLI to setup a security domain with two login modules...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Security
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: EAP 6.3.1
Assignee: Anil Saldhana
QA Contact: Josef Cacek
Russell Dickenson
URL:
Whiteboard:
Depends On: 1117846
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-09 13:58 UTC by Tom Fonteyne
Modified: 2018-12-06 17:15 UTC (History)
5 users (show)

Fixed In Version:
Clone Of: 1117846
Environment:
Last Closed: 2014-07-10 11:11:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-3604 0 Major Resolved cannot use 2 login modules with the same "code" in one security domain 2014-07-29 06:37:51 UTC

Description Tom Fonteyne 2014-07-09 13:58:18 UTC
+++ This bug was initially created as a clone of Bug #1117846 +++


# add a new domain
/subsystem=security/security-domain=test:add

# setup auth with 2 "UsersRoles", modules.
/subsystem=security/security-domain=test/authentication=classic:add(login-modules=[{ "code" => "UsersRoles", "flag" => "required", "module-options" => { "usersProperties" => "/home/tom/etc/UsersRoles/my-users.properties", "rolesProperties" => "/home/tom/etc/UsersRoles/my-roles.properties" }},{ "code" => "UsersRoles", "flag" => "required", "module-options" => { "usersProperties" => "/home/tom/etc/UsersRoles/my-users.properties", "rolesProperties" => "/home/tom/etc/UsersRoles/my-roles.properties" }}])

{ "outcome" => "failed", "rolled-back" => true }

Same thing happens with for example 2 LdapExt modules

Modifying the xml manually and it will work fine though

--- Additional comment from Tom Fonteyne on 2014-07-09 09:46:25 EDT ---

tested on snapshot build of 2014-06-10 (also happens in wildfly)

Comment 1 JBoss JIRA Server 2014-07-10 11:10:58 UTC
Tom Fonteyne <tfonteyn> updated the status of jira WFLY-3604 to Resolved

Comment 2 Tom Fonteyne 2014-07-10 11:11:58 UTC
ok.. me bad

"attributes" => {"login-modules" => {
...
"deprecated" => {
"since" => "1.2.0",
"reason" => "This attribute was replaced with sub resource"

Using the sub resource works

closing as not a bug


Note You need to log in before you can comment on or make changes to this bug.