1 2 Previous Next 17 Replies Latest reply on Apr 11, 2012 3:53 PM by fredcurry Go to original post
      • 15. Re: Automatically put users from LDAP into /plateform/users?
        shannonsumner

        If I comment this out

         

        //if (identity == null)
        //{
        //return true;
        //}

         

        Everything works fine ...

        • 16. Re: Automatically put users from LDAP into /plateform/users?
          shannonsumner

          Hi I finally fixed it by adding

           

          if (username == null || password == null)

                      {

                          Callback callbacks[] = new Callback[2];

                          callbacks[0] = new NameCallback("Username");

                          callbacks[1] = new PasswordCallback("Password", false);

           

                          callbackHandler.handle(callbacks);

                          username = new String(

                                  ((NameCallback) callbacks[0]).getName());

                          password = new String(

                                  ((PasswordCallback) callbacks[1]).getPassword());

           

                          sharedState.put("javax.security.auth.login.name", username);

                          sharedState.put("javax.security.auth.login.password",

                                  password);

           

                      }

           

          to the SharedStateLoginModule class

           

          For some reason WCILoginModule is not being called (perhaps becuase it is optional?)

           

          Thanks,

           

          Shannon

          • 17. Re: Automatically put users from LDAP into /plateform/users?
            fredcurry

            We are using Novell eDirectory, so I have set /platform/users up as a dynamic group that contains all directory objects with an object class of "person". This seems to work well.

             

            Fred

            1 2 Previous Next