Using the WLS 7.0 default realm can users/groups be added/deleted within a web app?

If I use the default realm provided in WebLogic Server 7.0,
is it possible for me to programatically add/delete users/groups
from within a web application? Is there an API I can use to
add/delete users/groups from the embedded LDAP server? Or can
you only add/delete users/groups using the WebLogic Admin Console?

Tom,
The below is the program for creating a new user:
import weblogic.management.MBeanHome;
import weblogic.management.configuration.DomainMBean;
import weblogic.management.configuration.SecurityConfigurationMBean;
import weblogic.management.security.RealmMBean;
import
weblogic.management.security.authentication.AuthenticationProviderMBean;
import weblogic.management.security.authentication.UserEditorMBean;
import weblogic.management.security.authentication.GroupEditorMBean;
import weblogic.management.utils.InvalidParameterException;
import weblogic.management.utils.AlreadyExistsException;
import weblogic.servlet.security.ServletAuthentication;
import javax.naming.NamingException;
import javax.naming.Context;
import javax.naming.InitialContext;
MBeanHome mbh;
try{
Hashtable env = new Hashtable();
env.put( Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory" );
// use administrator account in order to create a user
env.put( Context.SECURITY_PRINCIPAL, "system" );
env.put( Context.SECURITY_CREDENTIALS, "weblogic" );
Context ctx = new InitialContext( env );
mbh = (MBeanHome)ctx.lookup( "weblogic.management.home.localhome" );
catch( NamingException e ){
throw new ServletException( e.toString() );
DomainMBean dmb = mbh.getActiveDomain();
SecurityConfigurationMBean scmb = dmb.getSecurityConfiguration();
RealmMBean rmb = scmb.findDefaultRealm();
AuthenticationProviderMBean providers[] = rmb.getAuthenticationProviders();
for( int i = 0; i < providers.length; i++ ){
if( providers[i] instanceof UserEditorMBean ){
UserEditorMBean uemb = (UserEditorMBean)providers;
uemb.createUser( username, password, "dynamically created user" );
hope this helps,
Koji
"Tom" <[email protected]> wrote in message
news:[email protected]...
>
If I use the default realm provided in WebLogic Server 7.0,
is it possible for me to programatically add/delete users/groups
from within a web application? Is there an API I can use to
add/delete users/groups from the embedded LDAP server? Or can
you only add/delete users/groups using the WebLogic Admin Console?

Similar Messages

  • I currently have a mac osx, and my CC keeps coming saying its expired, when it should be running the CS6 design standard.  So how do I get my platform to use the CS6 as my default instead of the CC one.

    I currently have a mac osx, and my CC keeps coming saying its expired, when it should be running the CS6 design standard.  So how do I get my platform to use the CS6 as my default instead of the CC one.

    Sign in, activation, or connection errors | CS5.5 and later
    And you can change the default program for a file type under File --> Info.
    Mylenium

  • I am so tired of iphoto crashing, losing work I've done.  I want to switch to photoshop elements 10 but need to know if it uses the iphoto library or if I can import that library into elements

    I am so tired of iphoto crashing, losing work I've done.  I want to switch to photoshop elements 10 but need to know if it uses the iphoto library or if I can import that library into elements

    Using Photoshop or Photoshop Elements as Your Editor of Choice in iPhoto.
    1 - select Photoshop or Photoshop Elememts as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop.  When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done. 
    3 - however, if you get the navigation window
    that indicates that  PS wants to save it as a PS formatted file.  You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements  the Saving File preferences should be configured as shown:
    I also suggest the Maximize PSD File Compatabilty be set to Always.  In PSE’s General preference pane set the Color Picker to Apple as shown:
    Note:  to switch between iPhoto and PS or PSE as the editor of choice Control (right)-click on the thumbnail and select either Edit in iPhoto or Edit in External Editor from the contextual menu. If you use iPhoto to edit more than PSE re-select iPhoto in the iPhoto General preference pane. Then iPhoto will be the default editor and you can use the contextual menu to select PSE for your editor when desired.

  • Even using the MAC Filter as a device can circumvent my Wi-Fi coming from anAirPort Extreme and using WPA2?

    Hello friends,
    Even using the MAC Filter as a device can circumvent my Wi-Fi coming from anAirPort Extreme and using WPA2?
    The device in question is known and therefore not using MAC address cloning.
    I'm using version 5.6 of the AirPort Utility, since the new version does not provide a graph of signal from each connected client.
    The MAC address in question is selected, but were covered for safety reasons.
    Help me understand this question.
    Fig01. The MAC addresses listed in my device.
    Fig02. The devices connected to my network. Including the unauthorized device.
    Fig03. The history of connected clients on my network.

    It appears that you may be using the Timed Access settings.
    Check the "Default Rule" for your network. If the "Default" is Unlimited Access.....then any device that has the password for your wireless network will be allowed to connect at any time that they wish.
    You need to change the "Default" rule for the network to "No Access".
    Then devices will be only be allowed to connect according to the rules and time limits that you establish and configure for each individual device.

  • Deploy maven artifact using the wls-maven-plugin (12.1.1.0)

    I am trying to use the wls maven plugin to deploy an artifact located in my local repository.
    According to the documentation ( http://docs.oracle.com/cd/E24329_01/web.1211/e24368/maven.htm#autoId6 ) this can be done by specifying the maven coordinates in the source parameter. Again according to the doc it should be specified as groupId:artifactID:packaging:classifier:version.
    I tried this but as was not working I decompiled the wls-maven-plugin jar where I first of all discoverd that what should be passed is groupId:artifactID:version instead of the full one.
    The next problem is the regular expression used to detect this:
    if (this.source.matches("\\S:\\S:\\S")) {As you can see this will only detect one character long groupID, artifactID and version (obviously this has never been tested ...).
    Can the source code of this plugin be found somewhere so I can fix it myself, can oracle fix this quickly, ... what are my options here?
    Thanks

    My first question regards step number 2...
    2. Extract the contents of the supplemental zip (eg: extract into /home/myhome/mywls )
    wls12120 directory will be automatically created during extraction.
    The file name is wls12120_dev_supplemental.zip .
    When I put this file in the mywls directory and Extract All ( using Windows Explorer, if that matters ),
    the directory created is actually named " wls12120_dev_supplemental " and it has 1 sub-directory named " wls12120 ".
    So, is there something wrong with Step 2's text ?
    Is there something wrong with how I interpreted Step 2's text ?
    Is the actual directory and sub-directory I see being created the successful response / result ?  Or did this step fail ?

  • I use an Epson Stylus Office BX320FW printer with my IMac.  Since upgrading OSX, I have lost the ability to print and scan.  I have downloaded printer drivers from both Epson and Apple.  I am using the printer in wifi mode but can not get it print or scan

    Hi Everybody,
    I use an Epson Stylus Office BX320FW printer with my IMac.  Since upgrading OSX, I have lost the ability to print and scan.  I have downloaded printer drivers from both Epson and Apple.  I am using the printer in wifi mode but can not get it print or scan.  How do I uninstall the Epson software and start all over again?
    nickel_man_65

    Not using any mouse pad, I have a very smooth desktop. But I just tried to use a sheet of A4 printing paper, but no result, the problem persisted.
    Someone on this forum suggested, that USB3 may interfere with the magic mouse.
    I have 2 LaCie HDD's about 70 cm away from the mouse, I use them on Thunderbolt. But in operation or not - the result is the same, the mouse plays up! Just now I was clicking the desktop and the mouse created a new folder!!
    Thanks for the advice, Bee
    Cheers, Gerd

  • HT1848 How do I transfer the songs from my desktop to my iPad using the same iTunes account? I can only sync the other way. Thanks

    How do I transfer the songs from my desktop to my iPad using the same iTunes account? I can only sync the other way. Thanks

    DaisyDoodle,
    The songs on your Shuffle should still be in your iTunes library.  That means you should just be able to connect your Nano to the same iTunes library and sync it just as you would with your Shuffle. There is no limit to the number of iPods, iPads, or iPhones you can sync to one computer, iTunes library, or account.
    As for preparing the Shuffle for your husband, just restore it via iTunes and then let him sync it to his own iTunes library or if its the same iTunes library, let him configure it to sync only his content.
    Here are instructions on how to restore the Shuffle if need be.
    http://support.apple.com/kb/ht1481
    B-rock

  • My husband and I both use the same Apple ID, but we can't use his number for iMessaging or FaceTime on his iPad and still have access to all our other music and apps... How can I add his number to be used?

    I want to use my husband's contact number on his iPad so that we can iMessage and especially FaceTime, but we share the same Apple ID. This works fine on our phones, why can't we have the option to use his contact number on his iPad the same way? This iPad can only be used with WiFi (contrary to what we were told upon purchasing it...). Anyone have any helpful advice??

    This is not an area where I have any expertise, but you may want to consider using separate Apple IDs and using the recently released Family Sharing capabilities which still allow you to share your music and apps.
    http://www.apple.com/ios/whats-new/family-sharing/
    https://www.apple.com/support/icloud/family-sharing/

  • I restore my iPhone 4S on iTunes and then when restarted it is asking for valid SIM card and I don't have SIM card for that, I was just using the iPhone with wifi, any one can help? Please.

    I restore my iPhone 4S on iTunes after the restore was completed the iPhone was restarted and now asking for valid SIM card which I didn't,t have and I was using the iPhone with wifi, and now can't use it because the screen is locked for SIM card. Can anyone help me please.
    Thanks,
    David

    wjosten wrote:
    Phil0124 wrote:
    I doubt the phone is locked to GCI in any way
    Well, you're wrong, & in fact not only is it locked, GCI does not offer unlocking for iPhones.
    Fact is your post won't help the OP.
    And you are 100% sure its locked to them? How can you know this? While GCI does not offer unlocking that does not mean the phone is actually locked to it. Get off your high horse.
    Its possible the original owner had an unlocked phone. he was using with GCI. Or that GCI doesn't actually have locked phones. Seeing as they don't even have their own infrastructure but instead use AT&T's I doubt they'd have iPhones specifically locked to them and that would be the reason they do not offer unlocking (because there's nothing for them to unlock). And just to clarify, I'm not saying for a fact its not locked to them. It very well maybe be, but without knowing more about the phone and going by the fact GCI uses AT&T infrastrucure its possible its not locked. But here's no way to say for sure either way.
    Trying a Sim card from AT&T or another carrier might just help the OP if its actually unlocked or locked to AT&T rather than GCI.

  • I would like to put Dreamweaver 8 on a new computer.  There is no "deactivate" function and the technical support person I chatted with recommended I come here.  Can I just use the serial number again?  How can I deactive?  Has anyone else run into this?

      There is no "deactivate" function and the technical support person I chatted with recommended I come here.  Can I just use the serial number again?  How can I deactive?  Has anyone else run into this?  How can I get Dreamweaver 8, which is no longer being activated by Adobe, on a new computer?  Is it even worth doing or do I need to get a new version.  What are the killer features I'm missing?

    If you manage to get it installed on your current OS, don't forget to install the 8.02 update.
    Adobe - Dreamweaver Support Center : Updaters
    Nancy O.

  • Garageband is not picking sound from builtin mic (rMBP). I recorded some tracks, now it is not working. All other apps can use the mic. Monitoring is switched ON at GB, it picks sound only some other app, eg. Skype, is used to access the mic.

    Garageband is not picking sound from builtin mic (rMBP).
    I recorded some tracks, now it is not working. I have checked GB Preferences, Audio/MIDI > Audio Input > Built In Microphone.
    All other apps can use the mic. Dictation, Skype etc. can use the mic!
    Monitoring is switched ON at GB, it picks sound only some other app, eg. Skype, is used to access the mic.
    Can any one help me, Please!
    Many thanks!

    I have foud the solution - rather stupid. The system setting for audio input was at 70%, increasing it to 100% solves the problem!

  • I want to install lightroom previously installed on a macbook on a new macbook. I get an error message when I try to use the same serial number. How can I install lightroom on my new mac?

    i want to install lightroom previously installed on a macbook on a new macbook. I get an error message when I try to use the same serial number. How can I install lightroom on my new mac?

    Oliver,
    Are you getting activation errors? As Ned stated , it is easier to troubleshoot if we have the specific type of error and error detail that you are getting.
    Here is some help on activation if this is the issue:
    https://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Pattie

  • HT4245 i use a macbook pro which came with facetime i have an iphone 4S as well. whenever i use the wireless on my iphone i can facetime with ease however when i use the same wireless for my mac to facetime the call always gets disconnected.

    i use a macbook pro which came with facetime i have an iphone 4S as well. whenever i use the wireless on my iphone i can facetime with ease however when i use the same wireless for my mac to facetime the call always gets disconnected.

    To use factime on your Mac, I believe you will need to use your email address to do so instead of your wireless number.  Since you can't make calls on the Mac.

  • My wife and 1 both have new iPhone 4's.  Is it best to use the same apple id so we can share music and photo's?

    my wife and 1 both have new iPhone 4's.  Is it best to use the same apple id so we can share music and photo's?

    Would suggest Seperate Apple IDs  >  http://support.apple.com/kb/HE37
    SHARING iTunes MUSIC
    http://macmost.com/five-ways-to-share-music-in-itunes.html
    Also...Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • My iPad is stuck with a small blue screen saying iCloud Backup, this iPad hasn't been backed up in 4 weeks.Backups blah blah- Click OK. I can't get it off the screen and I can't use the iPad because of it. Can anyone out there help?

    my iPad is stuck with a small blue screen saying iCloud Backup, this iPad hasn't been backed up in 4 weeks.Backups blah blah… Click OK. I can't get it off the screen and I can't use the iPad because of it. Can anyone out there help?

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).

Maybe you are looking for

  • I have 8 gb on my macbook pro, but it sometimes only recognizes 4 gb. Whats going on?

    I have 8 gb on my macbook pro, but it sometimes only recognizes one of the banks and thus only 4 gb. I was about to open my Macbook Pro mid 2010 2.66 up but it went back up to 8 gb of ram. I also noticed that the macbook would go to sleep and not wak

  • CPU at 99% during period end and month runs

    Hi Guys, platform 11.5.9 OS solaris Currently we are doing the period and month end report runs and the database server cpu is at 99%. What should I do? Please help!! Thanks in advance

  • Need to trim decimal Places in data pulled in Financial report

    Hi All, We have a Financial report in which in partcular column, data is being pulled by the formula : <<CellText("Grid1", Cur, C(A), 1)>> Some cells in that column contains only text comments, some cells having numbers only. Issue is with the number

  • UI Components Properties, Methods, Functions, etc..

    Hello everyone, I have been trying to find the table on SAP that stores the UI components properties, methods, functions, etc.. As far as i know the Metadata Repository (RSA1) is in charge of managing these information, but is there any table that ha

  • Going back to Comcast--Verizon poor customer service

    Well, I'm going to have to terminate Verizon FIOS. I switched from Comcast, thinking the internet speed would be higher and overall service would be better, but so far my experience with Verizon has been terrible. Although (according to my contract)