-
1. Re: Where to put auth.conf in client.jar?
jarikr Jul 24, 2003 6:14 PM (in response to bentzn)Did you set the System property java.security.auth.login.conf to the path of the auth.conf?
regards,
Jari -
2. Re: Where to put auth.conf in client.jar?
jarikr Jul 24, 2003 6:16 PM (in response to bentzn)Sorry I meant java.security.auth.login.config
-
3. Re: Where to put auth.conf in client.jar?
bentzn Jul 25, 2003 2:53 AM (in response to bentzn)Well, yes.... :-)
-maybe it's just because I don't know how to make a relative reference to a file inside a jar-file
I've tried all variations of "file:auth.conf" - with or without slashes...
Any help would be greatly appreciated... :-)
bentzn -
4. Re: Where to put auth.conf in client.jar?
jarikr Jul 26, 2003 5:33 AM (in response to bentzn)Well you can use
java -Djava.security.auth.login.config=jar:file://test.jar!/auth.conf -jar test.jar
note that the "!" is important..
regards,
Jari -
5. Re: Where to put auth.conf in client.jar?
bentzn Jul 27, 2003 11:59 PM (in response to bentzn)Thank you very much!!!
I had a feeling that it was just a question of the reference...
Thanks
bentzn -
6. Re: Where to put auth.conf in client.jar?
bentzn Jul 29, 2003 5:06 PM (in response to bentzn)Hmmm....
That didn't solve my problem...
What I need is to pack _everything_ in one executable jar-file - for download...
So I need to set the system-property (java.security...) programmatically inside...
Is it at all possible?
best regards
bentzn -
7. Re: Where to put auth.conf in client.jar?
jarikr Jul 30, 2003 12:47 AM (in response to bentzn)Hi again,
well what you can do is to use System.setProperty( java.security.. ) or write your own configuration as a java class. You have to extend javax.security.auth.login.Configuration and override the methods. Before you create a LoginContext, you have to call the static method Configuration.setConfiguration( yourConf ). This way you don't need the auth.conf. -
8. Re: Where to put auth.conf in client.jar?
bentzn Aug 13, 2003 5:00 AM (in response to bentzn)I tried it and it works fine!
Thanks a lot!