To try to divide and conquer this problem some more, I've decided to attack the 
java.security and java.policy files in the jvm\lib\security directory of the 
Lotus Notes JVM.  These files and their behaviors ought to be fairly normal for 
a JVM regardless of whether its running inside Notes or not, or not.

I have pared down the java.policy file to just this:

  | grant {
  |     permission java.security.AllPermission;
  | };
  | 

My java.security file has an interesting addition that I found somewhere out on 
the internet...

  | login.configuration.provider=com.sun.security.auth.login.ConfigFile
  | login.config.url.1=file:${java.home}/lib/security/java.login.config
  | 
That code is supposed to declare whose config file format I intend to use and 
the second line says where my config file is.  It turns out that an auth.conf 
file is trickier to deal with than a simple java.login.config.  
So, I made a config file with the following contents:

  | client-login {
  |     org.jboss.security.ClientLoginModule required;
  | };
  | 
So now I'm expecting my client to work a little better.  Here's the current 
version of my client:

  | Properties props = new Properties();
  | props.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | props.put(Context.PROVIDER_URL, "localhost:1099");
  | props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
  | LoginHandler lh = new LoginHandler("admin","admin");
  | LoginContext lc = new LoginContext("client-login",lh);
  | lc.login();
  | Context ctx = new InitialContext(props);
  | 
I get an exception about javax.xml.parsers.FactoryConfigurationError class not 
being found right when the client tries to do the new LoginContext().  I 
removed the out statements that confirm for me where it blows up.  That error 
seems to be a symptom so I'm still heading in the same direction.  
Assuming that my LoginHandler is OK, I still can't get a LoginContext.

Maybe I have to try something else.

Spoon

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861021#3861021

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861021


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to