0 Replies Latest reply on Oct 22, 2009 11:28 PM by Sebastian Mohan

    Multi Domain Login

    Sebastian Mohan Newbie

      Hi

      I have created multiple application policy (LDAP, DB and file based). I would like to associate all of them to the same security domain in my application so that the user can login with a prefix.

      db/user ---> authenticated against the DB application policy
      ldap/user ----> authenticated against the LDAP application policy
      file/user -----> authenticated against the file application policy

      I created a DomainLoginModuleDelegate to instantiate the corresponding LoginModules based on the prefix and delegate the method calls to them

      My login-config.xml will have DomainLoginModule defined against the application jaas security domain.

      I am wondering if there is any other better way to handle this situation

      Thanks
      Sebastian