• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to map location of jaas.config file on Weblogic without using command Line arguments

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's the situation: I'm trying to implement JAAS LoginModule on weblogic server.My JASS.config file is as follows:

FooLogin{
com.example.authnticator.library.ExLoginModule required;
};

My JAAS.config file is availble in the path `BASE_DOMAIN/config/jass`.The problem i'm facing here is, how to map the JAAS.config file path to javax.security.auth.login.LoginContext ?..As per [oracle documentation][1] there are two ways to do the same.

one is to use the command Line :

-Djava.security.auth.login.config=${BASE_DOMAIN}/config/jass/JAAS.config
in the WebLogic domain environment setup script setDomainEnv.sh

Next one is to update the Java security properties file :

login.config.url.1=file:BASE_DOMAIN/config/jass/JAAS.config

But, is there an alternate way for doing the same?, Since i prefer not to edit the shell file and not to mess with the JDK in the weblogic server, which may also affect other applications running in the server.
It would be really useful if there is a way to map the configuration file without using the methods mentioned above.

[1]: https://docs.oracle.com/javase/8/docs/technotes/guides/security/jgss/tutorials/LoginConfigFile.html
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In weblogic, if you want to use a login module you will have to develop custom authenticators.
Please follow the steps here.

https://blogs.oracle.com/emeapartnerweblogic/entry/simple_sample_custom_database_authenticator1
 
Faisal W Khan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will need to write your own provider and configure it.
I have provided the steps on my website, you can refer this article.

http://weblogic-wonders.com/weblogic/2014/01/14/simple-sample-custom-database-authenticator-oracle-weblogic-server-11g/

-Faisal
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic