Hello jfina,
Wednesday, June 05, 2002, 3:03:25 PM, you wrote:
>> have you declared security-domain in jboss.xml?
j> no, i can find very little about it in the jboss doc's.
j> xdoclet mentions something about a jboss-security file that is supposed to contain
such information but i dont know the format. Is
j> this meant to be an additional file in the server folder or in my bean jar file?
>> That's wrong. You need to declare "other" in security-domain element
>> in jboss.xml.
j> I cant find that xdoclet does this so i quess i must do it manually then.
Indeed, I haven't found tags in xdoclet for that too and do it
manually. Here is the snippet of jboss.xml for "other":
<jboss>
<security-domain>java:/jaas/other</security-domain>
>> 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);
j> ok, thanks. So the sercuritydomain maps the TestClient to the other module then?
TestClient is a configuration for client login module Client side
security manager just passes authentication info to server side
security manager.
You need to read Scott Stark's article on javaworld.com.
--
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