Bug 1117846 - Using the CLI to setup a security domain with two login modules with the same "code" fails.
Summary: Using the CLI to setup a security domain with two login modules with the same...
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: ---
: ---
Assignee: Anil Saldhana
QA Contact: Josef Cacek
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks: 1117852
TreeView+ depends on / blocked
 
Reported: 2014-07-09 13:45 UTC by Tom Fonteyne
Modified: 2018-12-06 17:15 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
: 1117852 (view as bug list)
Environment:
Last Closed: 2014-07-10 11:12:50 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-28 13:39:33 UTC

Description Tom Fonteyne 2014-07-09 13:45:48 UTC
# 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

Comment 1 Tom Fonteyne 2014-07-09 13:46:25 UTC
tested on snapshot build of 2014-06-10 (also happens in wildfly)

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

Comment 3 Tom Fonteyne 2014-07-10 11:12:50 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.