hi!

I'm trying to configure client login and have some issues to clear out (jboss3.0 
latest).

1: My entitybean role is configured using xdoclet and the tag: @ejb:security-role-ref 
role-name="administrator"
role-link="administrator".

2: I guessed that the role administrator must exist in the roles.properties file. so 
this file is like:
        jon.Roles=administrator
        jon.CallerPrincipal=caller_jon

3: I've defined users in users.properties like:
        jon=mypwd

4: So, with my testclient i create the logincontext: LoginContext("other", handler) 
with jon and mypwd in handler using the "other"
module in login-conf.xml

5: I get this error:
         +++ Running ClientTest with username=jon, password=[C@45a877
         java.lang.SecurityException: Unable to locate a login configuration

First question : What am i missing?

Second question: Are all the roles defined in the roles.properties and edited there?

Third question : In login-conf.xml the following is defined:
    <application-policy name = "MySqlDbRealm">
       <authentication>
          <login-module code = 
"org.jboss.resource.security.ConfiguredIdentityLoginModule"
             flag = "required">
             <module-option name = "principal">administrator</module-option>
             <module-option name = "userName">root</module-option>
             <module-option name = "password"></module-option>
             <module-option name = 
"managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=MySqlDS module-option>
          </login-module>
       </authentication>
    </application-policy>
What is the principal module-option good for?

/Jon


_______________________________________________________________

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