0 Replies Latest reply on Dec 27, 2016 9:18 AM by alba latorre

    Problem with custom login jboss

    alba latorre Newbie



      Please i need help!


      I create a custom module for login, when i try to login against a database it works fine but when i try to login against ldap die.


      Don't show me any message!.


      When try to login from getRoleSets() method doesn't work  but when i call my method from getUsersPassword works!


      I don't understand, even set the answer of getRoleSets() method.


      My code


      SimpleGroup group = new SimpleGroup("Roles");

              try {


                  group.addMember(new SimplePrincipal("metallica"));

                  String user = getUsername();

                  String pass = getUsernameAndPassword()[1];

                  validar(user, pass);

              } catch (Exception e) {



              return new Group[]{group};


      Thanks for your time




      Work with Jboss 7 eap