• 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

Adding new security realms in WebSphere (Properties File Realm) without using administrative console

 
Greenhorn
Posts: 16
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We are adding new security realms (Properties file realms) in WebSphere Application Server Community Edition by going to administrative console and we are creating new realm in Security Realms tab in administrative console. I need to know how to add new security realm without using the console i.e. doing the same manually by modifying any XMLs. The below things I have noticed while adding new security realm from console.

1. One new .car file is created with the name of that realm which I have added through console and that .car file has config.info, config.ser, config.ser.sha1, geronimo-plugin.xml, MANIFEST.MF, plan.xml files under META-INF folder. So if we can able to create the car file manually under C:\Program Files\IBM\WebSphere\AppServerCommunityEdition\repository\console\realm, there is a possibility.

2. We need to modify the config.xml under C:\Program Files\IBM\WebSphere\AppServerCommunityEdition\var\config and add the .car file <module> tag (<module name="console.realm/SampleSecurityRealm/1.0/car"/>).

The above mentoned 2 steps I have figured out which could be the possible way. Please help me on this.
I need to add new security realms without using the administrative console.
 
Bartender
Posts: 3908
43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !

Sorry, I can't help you, and probably nobody can guarantee you success by using direct XML editing approach.

What I can suggest you - create Profile and configs backup before you edit anything. Seems like you can do backup only by copying files, because backup by WAS scripts would require from you root authority.

Not completely understand your situation - Web Admin Console not deployed ?

Why can't you deploy Web Admin Console app ? Also you still can use Jython and JACL from command line. Is it possible?

Sorry, just random thoughts.

Best regards,
MZ
 
Arka Mitra
Greenhorn
Posts: 16
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mikalai Zaikin,

Thanks for your reply. Let me put my situation in the below way.

I have to know the exact mechanism of adding a new security realm in WebSphere App Server Community Edition. When we are adding new realms through Administrative Console in WAS, we use to go to security realms tab and add new security realm. After the process of adding realms, we can see the realm name is displayed there.

I need to know this mechanism that when we are adding new realms how WAS modifies internally that the security realm is added. Hence if we manually do the same procedure, we can able to add new realm manually, not by using administrative console of WAS. Hope I have made you understand this time.

I really need to know this. If you can give me any idea, it will be much helpful for me.
 
Mikalai Zaikin
Bartender
Posts: 3908
43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

In traditional WAS (not Community Edition) there is a possibility to see Jython equivalent of the latest action performed via Web Admin Console, so you can copy it to text file and later reproduce the same action via command line wsadmin scripting utility (and don't forget to call AdminConfig.save ).

Useful links:
1) View last action performed via Web Admin Console
2) Command assistance (logs in text file all history of scripting equivalents of all performed commands)

Best regards,
MZ
 
Arka Mitra
Greenhorn
Posts: 16
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply Mikalai. I will try out this possible way. I need to automate the administration. Hence need to know without using the administrative console of WAS how can I perform it's utility (like adding new seciruty realms, deploying an web app etc).
 
Mikalai Zaikin
Bartender
Posts: 3908
43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Arkaa Mitra wrote:Thanks for your reply Mikalai. I will try out this possible way. I need to automate the administration. Hence need to know without using the administrative console of WAS how can I perform it's utility (like adding new seciruty realms, deploying an web app etc).



And my final suggestion: never edit directly XML configuration files for WebSphere (Base, Network Deployment, or Community Edition, does not matter), unless this is your last fallback.
 
Arka Mitra
Greenhorn
Posts: 16
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any type of command assistance for websphere application server community edition is availble? The Links you have provided to me, talk about WAS other version but not Community Edition I think.
 
Mikalai Zaikin
Bartender
Posts: 3908
43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Arkaa Mitra wrote:Is there any type of command assistance for websphere application server community edition is availble? The Links you have provided to me, talk about WAS other version but not Community Edition I think.



I don't know, I never used WAS Community Edition.
 
Arka Mitra
Greenhorn
Posts: 16
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Mikalai for your suggestion.
 
We don't have time for this. We've gotta save the moon! Or check this out:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic