Changing LDAP roles programmatically

Does anyone know if it´s possible to change a LDAP user role programmatically? I´ve searched for hours, but I didn´t find any information about it. I Only found classes on weblogic api to change user attributes.
Is there any api on weblogic to do that? Or any documentation that talks about it?
Thanks in advance.
Hevert Brito
Edited by: user12966611 on 09/04/2010 15:16
Edited by: user12966611 on 09/04/2010 15:16
Edited by: user12966611 on 09/04/2010 15:17

Faisal,
I´m trying to use the method createRole the same way you´re doing in you example but i´m getting this error:
Caused by: java.lang.NoSuchMethodException: createRole(java.lang.String,java.lan
g.String,java.lang.String,) for Security:Name=myrealmDefaultAuthenticator
... 117 more
When I use the method createUser as you did in your example it works perfectly.
Do you have any idea why is that happening?
This is my code:
try{
     System.out.println("Creating role : testrole");
     wls.invoke(roleEditor,"createRole",new Object[] {null,"testrole",null},new String[] {"java.lang.String", "java.lang.String","java.lang.String"});
     System.out.println("Created role : testrole");          
catch(Exception e){
     e.printStackTrace();
}

Similar Messages

  • Urgent -- Adding Roles Programmatically

    How to add/edit roles programmatically in weblogic? I tried to use RoleEditorMBean,
    RoleMapperMBean and RoleRederMBean just like the PasswordEditorMBean example given
    by bea. But I find that neither the embedded ldap providers nor the open ldap
    providers are implementing these MBeans as the authorizers I am getting from the
    realm are not instances of these MBeans.

    Hi Nitin
    Thanks for your reply...
    I just went to that program & activated the program...After I have to activate my object...is it what u want me to do??
    ok anyway...I have 0mat_plant which is already created...with all attributes..Now I want to add a Navigational attri...
    when I add & activate the 0mat_plant..I am getting the above error as I stated in my first message.
    I need one more clarification...could you pls let me know..when you create an infoobject, under the GENERAL TAB, u have a option for ONLY ATTRIBUTE...What is the use of it?
    ANy other ideas for my issue...????

  • Need api for changing security role in web.xml !!

    My requirement is to change the value of the deployment descriptor "security-role" (in web.xml) through an api and inturn to persist the new value in web.xml. Also I need to know if this change is automatically redeployed or an explicit redeployment is needed ? In that case how do I redeploy using an api call ?
    I found a lot of apis related to roles like createRole, removeRole etc.. But there are no apis to change the name of the role and inturn persist in web.xml.
    Do I need to provide any more information ? Let me know
    Thanks,
    Karthick

    why and when do you change security-role? try to use ant task (perhaph you need xpath also). it´s the better when you perform task about life´s cycle of application.
    please, describe your problem.
    of course in you change web.xml you must restart the application.

  • Not able to change the roles through  the ERM after uploading from ECC

    Hi
    We are not able to do the following activities after uploading the roles into ERM from Backend system
    1) We are not able to see any transaction data but we are able to see org values.
    2) We are not able to change the roles from ERM.
    Vserion and support pack leavel : GRC5.3 and 13
    Please help in this.
    Thanks in advance.
    With Best Regards,
    support

    How are you trying to do this? using oiddas ?
    Can you explain more in detail?
    Greetings.

  • I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.h

    I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.how to do that in xml file ?

    Thanks john for you are reply.
    I had tried what you sad.I open shared service in that foundation project i had export shared service.after that in import-export file.In that role.csv,user.csv,group.csv.Like this file have.When i open user file added some users after i trying save in excel it shown messgse
    I click yes and save the .csv file and import from share servie. i got error like this
    am i doing right way john.or explain clearly

  • BAPI or Function Module to change PFCG role of an User from Background

    Hello Experts,
    I have a requirement to change PFCG role assigned in User from background and I need a BAPI , FM or any other method to do the same, I have gone through BAPI_BUPA_ROLE_REMOVE and BAPI_BUPA_ROLE_ADD_2 but as per my understanding , these are related to business role not PFCG.
    Please help!!!
    regards,
    Arnab.

    Resolved by myself.
    regards.
    arnab

  • Want to change image properties programmatically

    want to change image properties programmatically like
    adjust_to_fit,selection_rectangle,pane,show_pallete.
    Reply as soon as possible.
    [email protected]

    I understand.
    In terms of for the initial Ecommerce switchover we mass updated the MMIMAGE field in partsmaster so that the assumed naming convention of the image files are ITEMCODE.jpg.
    Your solution is good which covers the instance where the image file field is empty and then putting in a empty image field in there.
    The other scenario is that the MMIMAGE field is filled put the physical .jpg file is missing in the file system.  Is there a way to handle that. 
    I checked already the netpoint thumbnail handler .dll and browsed over the available member properties / methods but I don't think such a config exists.
    Mike

  • BPM11g-LDAP Roles

    Hi All,
    I am stuck with the following issue.
    I am using Jdeveloper 11.1.1.3.0 for BPM 11g implementation on Sales Application.
    I have Weblogic Server 10.3.3 Installed and configured the domain. Also the server is up and running.
    In Jdeveloper from BPM Project Navigator I am using my Sales.bpmn process with complete flow, simulation
    and implementation. When I open the Organization from BPM Project Navigator. In Organization my created roles
    are Approvers, Business Practices, Contracts and Sales Rep. from the IDE connections I created my weblogic
    application server connection and tested showing all the 9 connections successful.
    In the Identity lookup I select the newly created My weblogic application server connection, which displays
    the next Realm field as jazn.com which in the search pattern of lookup displays only weblogic and system user.
    At this point I need the pre-seeded LDAP roles as (jcooper, cdickens, jstein, wfaulk and others) to be displayed
    in the users list.
    My query is how we use the pre-seeded roles in the LDAP of the Oracle Weblogic Server installed.
    How do I add the pre-seeded roles in the LDAP of Oracle Weblogic Server ?
    Awaiting quick response.
    Regards
    Ajaz Ahmed

    Hi Ravi,
    Thanks a lot for your suggestion. I was able to create the LDAP users as roles and could see them in jazn.com lookup.
    I have another issue now. I successfully deployed my process, without any errors and warnings, Build was successful. Deployment was finished as
    [05:08:56 PM] /workflow/EnterQuotUILab
    [05:08:56 PM] /workflow/BusinessPracticesReviewUILab
    [05:08:56 PM] /workflow/ApproveTermsUILab
    [05:08:56 PM] /workflow/ApproveDealUILab
    [05:08:56 PM] /workflow/FinalizeContractsUILab
    [05:08:56 PM] Elapsed time for deployment: 1 minute, 56 seconds
    [05:08:56 PM] ---- Deployment finished. ----
    When I am logging in BPM workspace with URL as
    http://localhost:7001/bpm/workspace
    On the Upper left of the Applications Area, I can see the link as [QuoteProcessLab] RequestQuoteLab v1.0
    when clicked on the just completed application I get the following error popped up as
    Cannot create instance in process
    'default/QuoteProcessLab!1.1*soa_80....b/RequestQuoteLab'.
    Please correct me where I am wrong. How the Instance Process is created after successful deployment of application.
    Please Advice.
    Regards
    Ajaz Ahmed

  • Change business role for a user badi

    is there any badi to change a business role assigned to a user dynamically i want to change...
    inputs will be highly appreciated. i want to change the business role based on some condition...
    some thing like component_loading, where we can change the enhancement set.. i am looking for similar kind of thing for changing business role...
    thanks in advance.

    Hi Niraja,
    Did check these BADIs
    BUPA_ROLE_CHECK
    BUPA_ROLE_EXPORT
    BUPA_ROLE_IMPORT
    BUPA_ROLES_UPDATE
    Regards,
    Raghu

  • How to change focus in programmatic way?

    Hi,
    1. how to change focus in programmatic way?
    2. is there any way to define tab index?
    With Regards,
    Wai Phyo

    1). http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_scrollComponentIntoViewBehavior.html
    2). no

  • Can I change the role a new user gets in the B2C senario

    Hi.
    I am in the Business Blue Print phase of a Web Shop project based on the CRM 4.0 E-commerce.
    As I understand it, a user registering at the shop is created as a business partner with the role "Consumer".
    We are already using the consumer role for a different purpose, so I would like the web shop users to be created with a custom role (e.g. ZConsumer) - will this be possible in any way?
    Thanks,
    Anders

    Hi Anders and Rami,
    I'm not sure about what you asked.
    1 Anyway if you refer to role present in the tab classification/hour:
    <b></b>Customer
    <b></b>Prospect
    <b></b>Competitor
    <b></b>Consumer,
    you cannot change these roles, as they are defined by SAP.
    Believe me because it was me explained during the Isa course, before getting certification.
    But on the other hand if you refer to the roles you can assigned to your BP, you control this in customizing.
    Please as usual, reward with points if it helps.
    AndreA

  • Change LDAP Autentication under another LDAP Autentication

    Hi:
    I have a BO Enterprise XI 3.1 Installation using LDAP Autetication, with users, objects created by users, permissions in universes, connections, ...
    I have to change LDAP Autentication into another LDAP Autentication with same users but with different usernames (user NAME1 in actual installation will be user NAMENEW1 en new LDAP structure).
    How can I make this changes without loosing objects, permissions, ... of NAME1 user?? (i should change NAME1 on NAMENEW1!!!)
    I need some help (sorry if my english is not good. I'm spanish!!)
    Thanks

    I'f I'm understanding correctly there is no automated process to do this. #1 look for LDAP script to create enterprise aliases (KB already exists). Then you need to remove the LDAP groups, then rename all enterprise users to thei new name, then update the LDAP plugin to new server, then remap LDAP groups (containing new user names) which can be set to auto append to the existing renamed enterprise aliases. Finally any security on the old LDAP groups will need to be recreated on the new ones.
    I would recommend a BO consultant on this or you can try support. Backup your system FRS and CMS DB prior in case something goes wrong.
    Regards,
    Tim

  • Provisioning LDAP roles from SIM

    SIM Experts:
    I am trying to provision LDAP roles from SIM into our local IPlanet/Sun DS LDAP instance.
    When I created the resource in SIM, I noticed it didnt rope in the built in roles from our LDAP instance, just as it did LDAP groups.
    I tried to circumvent this by :
    1. Creating individual Role_<> attribute entries in the LDAP resource schema which in turn get mapped to 'nsRoleDN' from LDAP.
    2. Create 'Roles' in SIM mapped to the LDAP resource and set attribute values for the 'Role_<>' attributes (added earlier to the schema mapping) like -
    Role_auditor : cn=Auditor,dc=example,dc=com
    The hitch with this approach is if I add multiple roles to the account (during creation), only the last role gets added .. in other words, I see only 1 'nsroleDN'' entry.
    I do not know if this the right approach, but could someone suggest a better alternative, if there is one.
    Thanks in advance,
    apn.

    Answered here: http://forum.java.sun.com/thread.jspa?threadID=5247269&tstart=30
    ... although, as indicated getRoles should return a list of Role names as well... If you create a variable in the workflow and populate it with this call... it should be a List. [item1,item2,item3] may just be the trace representation of a list.

  • Changing User Roles not working

    I've changed a role to full "Admin" access, but the system is not presenting all the menu?  How do I get the system to update the role/access for a given user?  Any help would be appreciated.

    Got it!...
    It's due to an old menu hide setting in the V2 interface. 
    http://screencast.com/t/gKs1MKu3
    This is no longer available in the new V3 but I was able to enable menu access for Wendy. 
    So the correct answer is its not because of the user type in this case.  The menu hide option had this disabled for this user. 
    Hope this helps!
    -Sidney

  • Error in change LDAP password

    Hi,
    Can anybody help me out in this .
    I want to change LDAP password using follows command:
    modifyldapbindpasswd.exe -genpasswdfile test_file.xml
    But there is a error appear: No installation directory specified.
    Please reply me with possible solution .
    Regards,
    keikey.

    Thanks for Mahendra's help!
    When I use the follow command,another error appears:
    C:\oracle\oam\idserver\identity\oblix\tools\modbinpasswd>modifyldapbindpasswd.exe -i c:\oracle\oam\idserver\identity -c is -t all -x ***** -y *****
    Error = The specified procedure could not be found.
    Symbol=oblxkInitcap
    Error = The specified procedure could not be found.
    Symbol=obslxcfcb
    Error = The specified procedure could not be found.
    Symbol=obslxcfob
    Error = The specified procedure could not be found.
    Symbol=obslxcfrb
    Error = The specified procedure could not be found.
    Symbol=oblfvinit
    Error = The specified procedure could not be found.
    Symbol=oblxldini
    Error = The specified procedure could not be found.
    Symbol=oblxlgsz
    Error =The specified procedure could not be found.
    Symbol=obslsta2e
    Error = The specified procedure could not be found.
    Symbol=obslste2a
    Error = The specified procedure could not be found.
    Symbol=oblxlfrd
    Error = The specified procedure could not be found.
    Symbol=oblxpendian
    Language initialization failed. Please check that the installation directory is correct.
    Please reply me with possible solution .
    Regards,
    keikey.
    Edited by: keikey on 2009-10-28 下午6:31

Maybe you are looking for

  • TS2363 my itunes wont open after last update11.1.4 in my pc im running windows vista.

    ive seen alot of people having problems with latest update...ive followed threads re this but nothing seems to work. im not a computer whiz so please keep it simple for me lol. Can anyone help as this is my master itunes and id like to save it if i c

  • Exporting PDF to Print - Zero Bytes

    Hi All, I am trying to export my brochure design 104 pages. A4 size. It is a furniture brochure so you can imagine there are hundreds of linked files. Once I have selected Export PDF for Print as I usually do with my flyers and posters, I select the

  • Kona LH versus Kona 3

    Hi everyone- I am interested in buying a card that will allow me to input/ouput Hi Def footage from/to FCP. I have heard a lot about the Kona cards. I was looking into buying either a Kona LH or a Kona3. Besides the $1000 difference, it seems like th

  • How to write JSP that returns current time(AJAX)

    how to make jsp returns current system time in response i am using the following code test.jsp <%@page pageEncoding="UTF-8" import="java.util.Date" import="java.util.*" import="java.lang.*"%> <% out = response.getWriter(); out.println(System.currentT

  • Tdm importer error when opening tdms file

    I am getting a error when trying to open a tdms file that had been opened by labview, written to, and then closed. The error is: USI encountered an exception: (175):Error while initializing interface I can sort of understand this error occuring when