Hello jfina,

Wednesday, June 05, 2002, 2:26:51 PM, you wrote:

>> Do you have jaas config file on the client side? For example let's
>> call it jaas.config:
>> /** Login Configuration for JAAS **/
>> TestClient {
>>     org.jboss.security.ClientLoginModule required unauthenticatedIdentity=nobody;
>> };
>>
>> Then you have to add this option to command line running the client:
>> -Djava.security.auth.login.config=path\to\the\jaas_config_file\jaas.config

j> thanks,
j> I tried doing so; but i was able to call the create the bean with/without a 
username/pwd - which is weird since i've declared the
j> ejbcreate methods to be: @ejb:permission role-name="administrator".

have you declared security-domain in jboss.xml?

j> I've renamed 'TestClient' to 'other' which is defined in login-conf.xml.

That's wrong. You need to declare "other" in security-domain element
in jboss.xml.

And the client code should look like this:
try {
  AppCallbackHandler handler = new AppCallbackHandler(name, password);
  LoginContext lc = new LoginContext("TestClient", handler);
  cat.debug("Created LoginContext");
  lc.login();
} catch(LoginException le) {
  cat.debug("Login failed", le);
}

-- 
Best regards,
 Alex Loubyansky



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to