Java portlet customization depending user in a group

Hi
I have developped a Java portlet with a customization display, depending user belongs a specific OID group or not.
I used a preparedStatement to call the wwsec_api.is_user_in_group PL/SQL procedure.
My problem is that it seems that OID does not close connections as our portal falls after 2 or 3 days when I install this portlet in production.
Therefore I wonder if there is a bug in the API wwsec_api.is_user_in_group (if it close OID connection after returning the boolean result).
Is there a more efficient way in a Java portlet to check if a user belongs an OID group ?
Is there a bug in wwsec_api.is_user_in_group ?
Thanks for your help,
Best Regards,
Jean-Christophe

We used Java JNDI API's to check if a user was in a group, but were unable to get what are the list of groups the user is a memeber of.,
   * Checks if the specified userDN is a member of the specified groupDN.
   * @param userDN  Distinguished name of the user
   * @param groupDN Distingushed name of the group
   * @return  true - if the user belongs to the group, else false
   * @exception NamingException if any directory operation fails
  public boolean isUserInGroup(String userDN,String groupDN)
    throws NamingException {
    boolean ingroup = false;
    // Filter to check if the user DN is a member
    // A user is a member of a group if the uniqueMember attribute of that group entry
    // has the user DN value.
    String filter = "(uniqueMember="+userDN+")";
    // Initialize search controls to search with scope as sub tree
    SearchControls searchControls = new SearchControls();
    searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE) ;
    // Set the attributes to be returned
    searchControls.setReturningAttributes(new String[]{"cn"});
    // Search under the specified group
    NamingEnumeration  results = dirctx.search(groupDN, filter, searchControls);
    // If the search has results, then the user is a member
     if (results.hasMore()) {
         ingroup = true;
     }  // else user not present, i.e defaulted
     return ingroup;
  }Regards
Elango.

Similar Messages

  • Java portlet customization depending user belongs an OID group

    Hi
    I have developped a Java portlet with a customization display, depending user belongs a specific OID group or not.
    I used a preparedStatement to call the wwsec_api.is_user_in_group PL/SQL procedure.
    My problem is that it seems that OID does not close connections as our portal falls after 2 or 3 days when I install this portlet in production.
    Therefore I wonder if there is a bug in the API wwsec_api.is_user_in_group (if it close OID connection after returning the boolean result).
    Is there a more efficient way in a Java portlet to check if a user belongs an OID group ?
    Is there a bug in wwsec_api.is_user_in_group ?
    Thanks for your help,
    Best Regards,
    Jean-Christophe

    Hi Rajiv,
    I tried out the following code for getting the database reference which I got from some posts on net.
    tcDataProvider db;
                        tcUtilityFactory tcu;
                        ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
                        final Hashtable env2 = config.getAllSettings();
                        tcu = new tcUtilityFactory(env2, "xelsysadm","Password");
                        tcBaseUtility mBaseUtil = (tcBaseUtility) tcu.getUtility("Thor.API.Base.tcUtilityOperationsIntf");
                        DBReference=mBaseUtil.getDataBase();
    But when I execute the code, I get an error :
    Error while getting utility Thor.API.Base.tcUtilityOperationsIntf[Ljava.lang.StackTraceElement;@619eeaaThis must be at the getUtility method call.
    Can you please guide me as to what I might be doing wrong here?
    Thanks,
    $id

  • How to customize a Java Portlet

    Hi!
    I'm writing a portlet in Java, with functionality I can't get
    out of the standard Portal components.
    This portlet will be used at a couple of different places, and
    woiuld need to be differently initialized depending on where
    it's used, but I haven't found a way to do that yet.
    For a standard portlet, say a report, I can have bind variables
    that can be configured through the portlets customization menu.
    Is that possible to do with a Java portlet, and if it is, how is
    it done?
    ///Yours, Jens Carlberg

    Hi Jens,
    There are a couple of PDK articles and samples that cover this
    topic:
    A Primer on End-User Personalization
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/
    articles/primer.preference.storage.html
    How to Add Customization to your Java Portlet:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/
    articles/adding.customization.html
    JSP Services Portlet
    HelloWorld Java Portlet
    You can also watch two recorded online eSeminars on Java portlet
    development at http://portalstudio.oracle.com/servlet/page?
    pageid=832&dad=ops&_schema=OPSTUDIO
    PDK-Java
    Building Java Portlets
    Finally, it's worth to check out the portlets in the Community
    Contributions section, as some of those demonstrate how to
    implement portlet customization.
    Peter

  • How to retrieve which user-agent in a java portlet?

    Is there a way to get http user-agent info about which browser requested a page with a portlet from within the java portlet?
    It seems like the request.getHeader() always returns the same value no matter what browser we use.
    Have also tried portletRenderRequest.getOriginalHeader() but this method also returns the same result.
    Does the PPE replace these headers or what..?
    Regards,
    Per A Jorgensen

    Hi Per A Jorgensen,
    I see what you mean. I just deployed a simple portlet which displays the user-agent header property.
    Here are my observations:
    1. If you access the page as user1 from Mozilla, I see the following:
    Browser Agent:      Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 RPT-HTTPClient/0.3-3 RPT-HTTPClient/0.3-3
    2. If I now access this page from IE, as user1, then I still see my browser agent as:
    Browser Agent:      Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 RPT-HTTPClient/0.3-3 RPT-HTTPClient/0.3-3
    3. If I now access this page from IE, as user2, then i see the following details:
    Browser Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) RPT-HTTPClient/0.3-3 RPT-HTTPClient/0.3-3
    4. Now I access the same page from Mozilla (after logging out of user1) as user2, I see the following:
    Browser Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) RPT-HTTPClient/0.3-3 RPT-HTTPClient/0.3-3
    Hmm.. interesting.. it looks like, whoever access the provider first, fixes the user-agent. I need to investigate more into it to find out information as to why this is happening.
    In the mean-time, you can be rest assured that as long as you dont have multiple user's accessing the portlet as the same user, you will get the correct information.
    thanks,
    Harsha

  • How to export/import customization infromation from a java portlet?

    I created a java portlet using the methods in oracle.portal.provider.v2.personalize and oracle.portal.provider.v2.preference packages as described in the document adding.customization.pdk.java.v2.html. I am using DBPreferenceStore instead of FilePreferenceStore for my application.
    When I am migrating from development to production, how do I export/import the portlet customizations to the new environment along with the pages?

    Here is an Oracle doc explaining how to use PrefenceStores (File and limited DB)
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/HOW.TO.USE.PDKJAVA.PREFSTORE.V2.HTML
    But more directly applicable, the last paragraph of the API class documentation for DBPreferenceStore explains the information needed to do this.
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/JPDK/apidoc/oracle/portal/provider/v2/preference/DBPreferenceStore.html
    It explains what table is used to store the data, the default is "JPDK_PREFERENCE_STORE2". And explains that if you use your own, you have to specify the table name in the provider.xml. Since you don't seem to know which table, the implication is that you used the default (and were lucky enough that it was installed...it wasn't on my install of the jpdk).
    You should be able to extract the appropriate data from the "JPDK_PREFERENCE_STORE2" table.
    I hope this helps.

  • How can I get the orclownerguid (unique user number) in Java Portlet?

    Hi,
    I find a unique number for each portal user in OID, it calls orclownerguid.
    And I try to obtain this number in my portlet Java with the JPDK.
    How can I get the orclownerguid in Java Portlet with JPDK?
    thanks
    regards
    jerome laforge

    Hello,
    I just realized that I missunderstood your question.
    We have several way to pass (and send) parameter to a portlet:
    - OracleAS Portal page parameters that allow the browser user to define the way the parameter is send to the portlet
    - generic URL parameter (public parameters)
    - private paramter (a parameter that is targetted to a single portlet instance)
    In you case, you can use public parameter, but you have to explicitly says that your portlet consume URL parameters, so set the passAllUrlParams tag to true in the provider.xml file.
    Also I invite you to read the sample we have in the PDK that show how to use private parameter and page/portlet parameters, and the associated articles you can find on http://portalstudio.oracle.com
    Regards
    Tugdual Grall

  • How java will identifies LDAP user groups to admin/normal users -BOXIi3.1

    Hi all,
    We have successfully implemented Java interface with BOXI3.1.Now our client wants to move to LDAP Configuration in CMC.
    If we use LDAP configuration, is java login page will identify the user role(wether user is admin group/normal group).
    we have used below API for enterprise authentication:
      IEnterpriseSession enterpriseSession;
      ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
      enterpriseSession = sessionMgr.logon(userID, password, CMS, auth);
      auth=<secEnterprise>  is it enough to use auth=<secLDAP>
    or do we need to add any code/API for this requirement.
    Thanks,
    Subash

    Use secLDAP as the authentication type, and ensure both the CMS and your Java Web App Server machines can connect to the LDAP server.
    Sincerely,
    Ted Ueda

  • Fetch the User Extended Attribute" Group" Value in Java

    Hi All,
    I have been able to add a User Extended attribute in SIM and wish to fetch its value for a particular user in my java code.
    kindly help.
    Thanks
    Sunny

    Hi All,
    I am able to fetch the value of extended attribute "Group" of type "Select" I added in the Default User Form using user.getAttribute("Group") in my java code of Custom Resource Adapter.
    This extended attribute has groups name populated in it. What I am doing now is that I am fetching the Group name value and assing the user this group. This is working fine for me. However, In case user select a different group next time, I need to remove the user from old group and assign him the new group. For this, I need to have the old group value and new group value. I don't know how to retrieve the old group value?
    Any pointer on this will be helpful.
    Note: I have done the mapping of extended attribute "Group" in my Custom Resource Adapter.
    Regards,
    Sunny

  • Errors while consuming secured portlet on anonymous user

    Hello,
    I'm trying to configure security end-to-end Portlet as in this link http://fusionsecurity.blogspot.com/2010/09/hands-on-wsrp-security-in-oracle-fusion_04.html.
    I got WSRP security with authenticated users, but when I try to consume the portlet on anonymous users (unauthenticated), I receive the error below:
    Caused By: javax.xml.rpc.soap.SOAPFaultException: FailedAuthentication : The security token cannot be authenticated.
                    at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:669)
                    at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:475)
                    at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:149)
                    at oracle.portlet.wsrp.v2.soap.runtime.WSRP_v2_Markup_Binding_SOAP_Stub.initCookie(WSRP_v2_Markup_Binding_SOAP_Stub.java:343)
                    at oracle.portlet.wsrp.v2.WSRP_v2_Markup_PortTypeJaxbToSoap.initCookie(WSRP_v2_Markup_PortTypeJaxbToSoap.java:671)
                    at oracle.portlet.wsrp.v2.ServerToWSRPv2.initCookie(ServerToWSRPv2.java:22225)
                    at oracle.portlet.client.connection.wsrp.ActivityServerWrapper.initCookie(ActivityServerWrapper.java:1125)
                    at oracle.portlet.client.techimpl.wsrp.WSRPInitCookiePipe.execute(WSRPInitCookiePipe.java:130)
                    … more
    We have the following usecase:
    1) Created an ADF application with one JSP page and converted to portlet.
    2) Created a consumer application (Webcenter Portal Framework Application).
    3) In the consumer app, created a WSRP connection for this portlet (to register the producer).
    - In the "Configure Security Attributes" in the WSRP portlet producer wizard, we have selected the following:
    - Token Profile: WSS 1.0 SAML Token with Message Protection
    - Configuration: Default
    - Default user: anonymous
    4) Drag and drop the portlet on the consumer page and run.
    Would anyone tell me how do I set the permission for an anonymous user?
    Thanks.

    Hi Bijesh,
    Yes, I have tried not specifying a default user and I got the error below:
    <Feb 3, 2015 2:53:48 PM BRST> <Notice> <Stdout> <BEA-000000> <<Feb 3, 2015 2:53:48 PM BRST> <Error> <oracle.wsm.resources.security> <WSM-00008> <Web service authentication failed.
    javax.security.auth.login.LoginException: wsrp:minimal
                    at oracle.security.jps.internal.jaas.module.saml.JpsAbstractSAMLLoginModule.login(JpsAbstractSAMLLoginModule.java:127)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:597)
                    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
                    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
                    at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
                    at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
                    at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
                    at oracle.wsm.security.jps.JpsManager.authenticate(JpsManager.java:184)
                    at oracle.wsm.security.jps.JpsManager.samlAuthenticate(JpsManager.java:325)
    Caused By: javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User wsrp:minimal javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User wsrp:minimal denied
                    at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:261)
                    at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
                    at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:597)
                    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
                    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
                    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
                    at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
                    at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
    I’ve set ADF Security for my Portlet Application following the steps below:
    Create an Enterprise Role ‘Participante’. (The authenticated user has this group 'Participante' in LDAP)
    Create an Application Role ‘participante-role’ and map to the enterprise role ‘Participante’.
    Assign ‘participante-role’ to Web Page or Task Flow in Resources Grants.
    Those steps work well when I am using Task Flows. If I use Portlets based on Page instead of Task Flow, the security does not work.
    I have already tested the second option (create a guest user). The problem here is that the user has the authenticated-role associated to it.
    Thanks for help.

  • Add Portlet Customization

    Hi Everybody,
    I'd like to create a more friendly and simple interface for my user choose between hide and show any portlet in one page.
    Does anybody have any simple idea about how i get it?
    Thanks in advance.

    Hi Yuri,
    Yes, portlets can be minimized by using both the PL/SQL and the Java API, there is no difference.
    There are plans to make a minimizable portlet available in the portal community. For the time being, you can give it a try and do it on your own.
    I've summarized the steps I've taken, and would be glad if you'd provide feedback whether you succeed.
    How to add the 'Minimize/Restore' feature to your portlet?
    Assumptions:
    o You already have a working Java portlet
    o You have registered your provider so that the login frequency
    is 'Once Per User Session'
    This solution uses the following PDK-Java services:
    o Parameter passing
    o Session storage
    o Personalization
    High level steps:
    1) Create two images as the minimize and restore icons.
    2) Make the images available for the browser (eg: copy the images
    to the /images folder of Apache and make sure they can be
    accessed.)
    3) Render the minimize or restore image, according to the current
    state of the portlet in the top right corner.
    4) Put a hyperlink on the images:
    pageURL&size=minimize (if the portlet size is normal) or
    pageURL&size=restore (if the portlet is minimized)
    5a) When rendering the portlet, read the parameters.
    Push the read parameter to the sesssion storage
    and to the personalization storage as well.
    (The session storage is used when navigating to another page,
    and coming back later, but the parameter is not available in
    the URL any more, while the customization is used for the
    cases when the user logs out in the meantime or closes the
    browser, but wants to restore the state of the portlet as
    it was by the time the session was closed.)
    5b) If there is no parameter passed to the portlet, read the
    session storage.
    5c) If there is no session information available about the portlet
    state, read the customization value. Push the read value to
    the session storage.
    6) Render the entire portlet (normal), or don't render it (minimize)
    according to the parameters/session/customization information
    read in 5a-5c
    Additional feature:
    If you stop here, in new portal sessions the portlet is rendered
    in the same mode as it was rendered last time just before having
    logged out (as saved in personalization data).
    As an extra customization option you may add how you want
    to render the portlet when starting a new portal session (logging
    on again):
    o normal (regardless of the last time)
    o minimized (regardless of the last time)
    o as left last time
    Thanks,
    Peter
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Yuri Alekhin ([email protected]):
    Hi Peter,
    I am using PL/SQL PDK to create portlets:
    I am trying to minimize portlet programmatically and display another one instead. Is there a PL/SQL API for this?
    Any ideas?
    Thank you in advance.<HR></BLOCKQUOTE>
    null

  • Sharing portlet preferences among users

    Hello,
    Is it possible to share portlet preferences among users? So that the
    portlet preferences would be stored per portlet instance, and would be
    the same for every user?
    If this is not possible with Java portlets (JSR-168), can it be done
    with other portlet types (JSP portlet, page flow portlet), using the
    PortletPreferences API?
    The JSR-168 specification says:
    "Portlet Specification assumes preference attributes are user specific,
    it does not make any provision at API level or at semantic level for
    sharing preference attributes among users. If a portal/portlet-container
    implementation provides an extension mechanism for sharing preference
    attributes, it should be well documented how the sharing of preference
    attributes works."

    Betsy,
    Does WLP provide a way to allow a user to store only a subset of all
    his portlet preferences (using only JSR 168 api) ?
    My aim is to try to create a JSR 168 compliant portlet where few of
    the preferences are allowed to modified by the user (in the edit
    mode), while all other preferences may be modified only by a portal
    admin (thru admin view). However, the PortletPreferences.store()
    method seems to store values of all current preferences for the
    particular user, with the result that future changes by the admin are
    not reflected for any user who has already customized his
    preferences.You can let the admin propagate changes to the user via admin tools.
    There is an option in admin tools to do that.
    Setting the preference <read-only> attribute to 'true' does not help
    either, as the store method still attempts to store the value and
    then throws a ReadOnlyException.In this case, the setValue/setValues/reset and not the store will throw
    the ReadOnlyException.
    Why does WLP attempt to store all preference values; as opposed to
    setting only those which have been explicitly set using
    PortletPreferences.setValue(key, value)?The implementation does not keep track of changes explicitly in memory.
    Even if it keeps track of changes, I'm not sure if this would solve your
    use case.
    Will BEA be changing this in future releases, and is there a
    work-around for now?The suggested approach is to let admins propagate changes to users.
    Subbu
    >
    Thanks, Betsy
    Although WLP does not support the notion of sharing preferences,
    WLP lets you manage preferences in a hierarchy via the admin tools.
    When an admin sets preferences on a portlet, as long as users don't
    customize their portlets, all users get the same portlet instances,
    and hence share preferences.
    Subbu
    Bob said the following on 02/12/2004 04:08 AM:
    Hello,
    Is it possible to share portlet preferences amongusers? So that the
    portlet preferences would be stored per portletinstance, and would be
    the same for every user?
    If this is not possible with Java portlets(JSR-168), can it be done
    with other portlet types (JSP portlet, page flowportlet), using the
    PortletPreferences API?
    The JSR-168 specification says:
    "Portlet Specification assumes preferenceattributes are user specific,
    it does not make any provision at API level or atsemantic level for
    sharing preference attributes among users. If aportal/portlet-container
    implementation provides an extension mechanism forsharing preference
    attributes, it should be well documented how thesharing of preference
    attributes works."

  • Using SSO username/password in java portlet for Database Connection

    Hi all,
    We implemented java portlet with environment Oracle Application server 10.1.2 and Portal 10.1.4
    At present we are picking the database username and password and connect string in properties and our
    java class is reading the properties file and connecting to database to fetch the records.
    Our idea is to not to pick the username/password and connect string from the properties file or
    not to configure the datasource in data_source.xml.
    Our Requirement is who ever login to the Portal(SSO) our java class should pick the sso username/password and
    connect to database to fetch the record(s).
    Because our database users are one to one mapped to sso user(s) of portal.
    We request anyone to guide us how can we do it or suggest any suitable solution for our requirement.
    Thanks
    Dan Tey

    I think this is a no-go, since you cannot retrieve a cleartext password from the OID if I'm correct.

  • Need to know how to better manage revolving users in a group

    I have a new Beehive Online group set up for a external partner collaboration. Members of the group are only from Oracle or that external partner. While the BHO group is new, the collaboration has been in place for a long time (since 2007). Initially at Sun Microsystems, and now Oracle.
    In my description here... when I say "collaboration" you can translate that to roughly equivalent to "BHO Group"....
    The nature of the collaboration is that both companies move people to/from the collaboration, depending on the work in progress. I'm not saying there are changes daily, but there can be changes every month or so. It also happens that people working on the collaboration may be moved from it for many months or longer, and then get moved back to the collaboration at a later time. Ie, the may revolve in and out of the collaboration. Trouble is, when they are moved from the collaboration there is no guarantee that they ever get moved back to it. When a person is not part of the collaboration, their access to collaboration info is taken away.
    So my problem is understanding how to manage this better in BHO.
    I need to allow a user to be removed from a group, with the possibility (but not certainty) of adding them again.
    -- my understanding that delete user would then require SysAd intervention to add them back.
    -- I also am not clear on whether deleting the user affects their other group memberships.
    I tried to find out more about locking a user
    -- but it seems like that affects more then the group.
    Whats the recommended way to deal with this?
    Thx!

    I tried deleting the "verified" user using the group creation/manage tool.
    - click "View members"
    - select the checkbox next to the user
    - click the button "Delete (non-Verified Users)"
    Doing that, the user is not removed AND I get an error message in red at the top of the page that says:
    'Only selected non-"Verified" member(s) have been deleted. Go to https://beehiveonline.oracle.com/BOLAdmin.html to delete "Verified" users'
    So I went to the Admin tool:
    - selected my group,
    - selected the user from the list
    - clicked the "Delete User" button above the list.
    Got the warning pop-up about the user needing to be added back by SysAd, ignored it and clicked "OK".
    Got a success pop-up with all kinds of internal response tracking stuff in it. Clicked "OK"
    And the user is gone from the group in the Admin tool. HOWEVER, the user still shows up in the group list in the group create/manage tool.
    Will the user disappear from that list? If not, the list would be misleading.
    Thx!
    --Resii                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Getting error while removinf user from AD group

    Hi,
    In AD User process definition, there is a default taks called :Remove user from Group. This task runs after another task called Organization Name Update . Whenever, an user is moved from one org to another org, his organization gets updated in AD user form and this task"Remove user from Group" runs. The work of this task is to remove the user from old groups. BUt the task is getting rejected and i see the below error in log files.
    11/07/04 00:24:17 Data AccessException:
    11/07/04 00:24:17 com.thortech.xl.orb.dataaccess.tcDataAccessException: DB_READ_FAILEDDetail: SQL: select UD_ADUSRC_GROUPNAME from UD_ADUSRC where UD_ADUSRC_KEY = Description: ORA-00936: missing expression
    SQL State: 42000Vendor Code: 936Additional Debug Info:com.thortech.xl.orb.dataaccess.tcDataAccessException
    at com.thortech.xl.dataaccess.tcDataAccessExceptionUtil.createException(Unknown Source)
    at com.thortech.xl.dataaccess.tcDataBase.createException(Unknown Source)
    at com.thortech.xl.dataaccess.tcDataBase.readPartialStatement(Unknown Source)
    at com.thortech.xl.dataobj.tcDataBase.readPartialStatement(Unknown Source)
    at com.thortech.xl.dataaccess.tcDataSet.executeQuery(Unknown Source)
    at com.thortech.xl.dataobj.tcDataSet.executeQuery(Unknown Source)
    at com.thortech.xl.dataaccess.tcDataSet.executeQuery(Unknown Source)
    at com.thortech.xl.dataobj.tcDataSet.executeQuery(Unknown Source)
    at com.thortech.xl.adapterfactory.events.tcAdpEvent.getChildTableFieldValue(Unknown Source)
    at com.thortech.xl.adapterfactory.events.tcAdpEvent.getRunTimeValue(Unknown Source)
    at com.thortech.xl.adapterfactory.events.tcAdpEvent.getRunTimeValue(Unknown Source)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADREMOVEUSERFROMGROUP.implementation(adpADREMOVEUSERFROMGROUP.java:48)
    If anybody knows the solution for this then plz let me know.
    Thanks,
    Kalpana.

    I think the mappings and all would be correct. Here is what Kevin meant:
    - Let's assume the AD user account is a part of GroupA, GroupB and GroupC
    - Now on Change Organization completion if you invoke Remove user from Group then the adapter/process task has no way to know that which 3 of those groups has to be removed (or all 3 for your case)
    - Alternatively if you use API's to remove the group then this task would be invoked by the original OIM process/triggers and so the actual value would be known to adapter/process task.

  • Passing value to a dynamic page from a pdk-java portlet

    Hi everyone.
    I'm quite new to portlets, so I'll try to present my problem as well as I can:
    I have a PDK-java portlet in which I read some information (like name, location) about user.It works ok.Now I want to use that infomation in another portlet, which is build as a Dynamic Page ( with portletbuilder). How can I do this? I was thinck at session variables, but....
    Thanks a lot

    have you ever got any response??
    i'm facing the same problem.
    thanks

Maybe you are looking for

  • Crystal Reports Server XI R2 - RAS service will not start

    We had a copy of Crystal Reports Server XI R2 running on a Windows 2003 SBS Server and the database running on SQL Server 2000 on the same box. We were forced to upgrade this server Windows 2003 SBS Server 2003 R2 with SQL Server 2005. The upgrade wo

  • Memory leak in WLS6.1 sp3 on Solaris?

    We are running WLS 6.1 sp3 on Solaris 8 using Sun's 1.3.1 JVM with BEA's JDriver to connect to Oracle (8.1.7). We have set the JVM to a maximum heap of 512M (-Xms256m -Xmx512m). The issue is that we are now seeing (via pmap) the resident memory growi

  • Error in modify statement

    Hi, When i am trying to update a z table by using modify statement, i am getting the following error:                                                                                 Short text                                                          

  • Exchange 2010 / Outlook 2010 "client error in synchronization log"

    Exchange 2010: Error in Synchronization Log 19:28:32 Error synchronizing folder 19:28:32                               [8004010F-501-8004010F-0] 19:28:32                               The client operation failed. 19:28:32                             

  • Interactive Report Bind variable not working ?

    Hello, i am new to APEX and trying to find how to use APEX Interactive Reports them with bind variables. So, i have created one with the following query: SELECT i1.if_bic_code, b.bicname, count(*) cnt FROM IF_DATA i1, bic b WHERE i1.if_bic_code = b.b