2 Replies Latest reply on Dec 23, 2016 10:01 AM by Martin Choma

    Multiple login modules of the same type via CLI

    Stefan Maier Newbie

      Hello,

       

      I'm using WildFly 8.2.1 in domain mode and would like to configure multiple login modules via CLI. Unfortunately, this does not seem to work for multiple login modules of the same type, e.g. LdapExtended, see the example below (for brevity I have stripped down the module options to just one. If the login modules are of different types, e.g. LdapExtended and UsersRoles, then it works fine. Can anybody help me?

       

      /profile=full-ha/subsystem=security/security-domain=MySecurityDomain:add(cache-type=default)
      /profile=full-ha/subsystem=security/security-domain=MySecurityDomain/authentication=classic:add( \
          login-modules=[ \
              { \
                  "code" => "LdapExtended", \
                  "flag" => "sufficient", \
                  "module-options" => [ \
                      ("java.naming.factory.initial"=>"com.sun.jndi.ldap.LdapCtxFactory"), \
                  ] \            
              }, \
              { \
                  "code" => "LdapExtended", \
                  "flag" => "sufficient", \
                  "module-options" => [ \
                      ("java.naming.factory.initial"=>"com.sun.jndi.ldap.LdapCtxFactory"), \
                  ] \
              } \
          ] \
      )