0 Replies Latest reply on Mar 24, 2008 9:40 AM by ollka k

    JAAS on CORBA client

    ollka k Newbie

      Hi. I have jnp client, that use JAAS:

      LoginContext loginContext = new LoginContext("java:/jaas/mylogin",
       new UsernamePasswordHandler("username",""));
       loginContext.login();
       Context ctx = getContext();
      ...
      

      And it works fine.
      I need a CORBA client, which will be work in the same way. But if I try to use the same code before ORB.init(), it doesnot work.
      LoginContext loginContext = new LoginContext("java:/jaas/mylogin",
       new UsernamePasswordHandler("username",""));
       loginContext.login();
       ORB orb = ORB.init(args, null);
      ...
      

      It connects as anonymous anyway. So, how i must specify my principals?