1 2 Previous Next 17 Replies Latest reply: Apr 11, 2012 3:53 PM by Fred Curry Go to original post RSS
  • 15. Re: Automatically put users from LDAP into /plateform/users?
    Shannon Sumner Newbie

    If I comment this out

     

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

     

    Everything works fine ...

  • 16. Re: Automatically put users from LDAP into /plateform/users?
    Shannon Sumner Newbie

    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?
    Fred Curry Newbie

    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