EDK/PRC  way to find user and his groups

I need the infomation about the current userID and username who is logged in and his groups (name of group) in a portlet.
If I call this function "ipContext.getRemotePortalSession();" the Tomcat Log write a JasperException.
What's wrong?
IPortletContext ipContext = PortletContextFactory.createPortletContext(request, response);
IRemoteSession irSession = ipContext.getRemotePortalSession();
IUserManager userManager = irSession.getUserManager();
int[] userGroupIDs = userManager.getCurrentUserGroups();
intuserID = userManager.getCurrentUserID();

We use the PT Portal version 5.02 with Hotfix #137075
The stacktrace in tomcat log:
Remark: The "topNNews_jsp" is the JSP for the portlet.
2004-08-11 17:07:52 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exceptionorg.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)----- Root Cause -----javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536) at org.apache.jsp.topNNews_jsp._jspService(topNNews_jsp.java:199) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)

Similar Messages

  • PS Script to find the list of users and the groups in a Workgroup server

    Hi There, could you please explain on how to get a complete list of local users and local groups in a "Workgroup" server to which they belong to using Powershell. I'm able to get the users list but couldn't find any help in finding
    the script to find to which localgroup the user belong to. Anticipating your response. Also let me know the cmdlet for Win2k3 servers to find the same.

    Here's some code from David Pham (don't remember wher I fund this code):
    Trap {"Error: $_"; Break;}
    Function EnumLocalGroup($LocalGroup)
    $Group = [ADSI]"WinNT://$strComputer/$LocalGroup,group"
    "Group: $LocalGroup"
    # Invoke the Members method and convert to an array of member objects.
    $Members= @($Group.psbase.Invoke("Members"))
    ForEach ($Member In $Members)
    $Name = $Member.GetType().InvokeMember("Name", 'GetProperty', $Null, $Member, $Null)
    $Name
    # Specify the computer.
    $strComputer = gc env:computername
    "Computer: $strComputer"
    $computer = [adsi]"WinNT://$strComputer"
    $objCount = ($computer.psbase.children | measure-object).count
    $i=0
    foreach($adsiObj in $computer.psbase.children)
    switch -regex($adsiObj.psbase.SchemaClassName)
    "group"
    { $group = $adsiObj.name
    EnumLocalGroup $group }
    } #end switch
    $i++
    } #end foreach

  • I have a number of duplicate files in various folders on my Air - is there  way to find them and delete them?

    Mac Air 1.7 GHz i5  4GB Mavericks 10.9.5
    I have a number of duplicate files in various folders on my hard drive.  Is there an easy way to find them and delete the dups?
    Thanks

    EasyFind – Spotlight Replacement

  • How to find users and group in sun box

    Please adivce How to find users and group in sunsolaris
    Thanks in advance

    We can get all the group details from /etc/group file .
    Similarly user details can be found in /etc/passwd .

  • Generate Excel which Shows ADUsers and his Groups in a Matrix with AllGroups

    Hi There.
    I Need an Excel table for managemet, which Shows the following:
    The Colums should be named as Username ActiveDirectory and some Properties and ALL Groups which are availible in Active Directory
    Each row should then contain Username and in the Column of Group an "X" or somthing else, if the user is in the Group - like a Matrix.
    Username,Firstname,Lastname,Group1,Groups2,Group3,Group4...
    Username1,Firstname1,Lastname1,,x,,x.. -- User1 is in Group2 and Group4
    Username2,Firstname2,Lastname2,x,x,x,x... -- User2 is in Group 1-4
    I thought about generating an Hashtable with all AD-Groups and a Hashtable with User and his AD-Groups, but I don't know how to match them.
    Have anyone an idea?
    Thanks.

    Hi,
    I would like to suggest you go through the below link:
    http://bradkingsley.com/using-powershell-to-list-group-membership-from-active-directory-ad/
    Please try the script in it.
    Hope this helps.
    Regards,
    Yan Li
    If you have any feedback on our support, please click
    here
    Cataleya Li
    TechNet Community Support

  • Report of Users and their groups

    Hi Experts,
    Is there a way to extract all the Hyperion Planning Users and the groups they belong in Hyperion 11.1.2.1 version? I need an excel file having the users and groups.
    Thanks
    Kannan.

    Hello Kannan,
    Yes, a clean list of Users with their Groups...
    Nothing standard. Strange...
    You might see if this export has something you can use. I do not recall it from the vast amount of detail exported here. The file will be generated on the server, so you might need somebody to pick it up and give it to you.
    MaxL command
    export security_file to data_file "essbase_security_file.txt";
    The alternative is to query the Planning repository. Maybe somebody has experience with this?
    Regards,
    Philip

  • Getting list of all users and their group memberships from Active Directory

    Hi,
    I want to retrieve a list of all the users and their group memberships through JNDI from Active Directory. I am using the following code to achieve this:
    ==================
    import javax.naming.*;
    import java.util.Hashtable;
    import javax.naming.directory.*;
    public class GetUsersGroups{
         public static void main(String[] args){
              String[] attributeNames = {"memberOf"};
              //create an initial directory context
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
              env.put(Context.PROVIDER_URL, "ldap://172.19.1.32:389/");
              env.put(Context.SECURITY_AUTHENTICATION, "simple");
              env.put(Context.SECURITY_PRINCIPAL, "[email protected]");
              env.put(Context.SECURITY_CREDENTIALS, "p8admin");
              try {
                   // Create the initial directory context
                   DirContext ctx = new InitialDirContext(env);     
                   //get all the users list and their group memberships
                   NamingEnumeration contentsEnum = ctx.list("CN=Users,DC=filenetp8,DC=com");
                   while (contentsEnum.hasMore()){
                        NameClassPair ncp = (NameClassPair) contentsEnum.next();
                        String userName = ncp.getName();
                        System.out.println("User: "+userName);
                        try{
                             System.out.println("am here....1");
                             Attributes attrs = ctx.getAttributes(userName, attributeNames); // only asked for one attribute so only one should be returned
                             System.out.println("am here....2");
                             Attribute groupsAttribute = attrs.get(attributeNames[0]); // memberOf
                             System.out.println("-----"+groupsAttribute.size());
                             if (groupsAttribute != null){
                                  // memberOf is a multi valued attribute
                                  for (int i=0; i<groupsAttribute.size(); i++){
                                  // print out each group that user belongs to
                                  System.out.println("MemberOf: "+groupsAttribute.get(i));
                        }catch(NamingException ne){
                        // ignore for now
                   System.err.println("Problem encountered....0000:" + ne);
                   //get all the groups list
              } catch (NamingException e) {
              System.err.println("Problem encountered 1111:" + e);
    =================
    The following exception gets thrown at every user entry:
    User: CN=Administrator
    am here....1
    Problem encountered....0000:javax.naming.NamingException: [LDAP: error code 1 -
    000020D6: SvcErr: DSID-03100690, problem 5012 (DIR_ERROR), data 0
    ]; remaining name 'CN=Administrator'
    I think it gets thrown at this line in the code:
    Attributes attrs = ctx.getAttributes(userName, attributeNames);
    Any idea how to overcome this and where am I wrong?
    Thanks in advance,
    Regards.

    In this sentence:
    Attributes attrs = ctx.getAttributes(userName, attributeNames); // only asked for one attribute so only one should
    It seems Ok when I add "CN=Users,DC=filenetp8,DC=com" after userName, just as
    userName + ",CN=Users,DC=filenetp8,DC=com"
    But I still have some problem with it.
    Hope it will be useful for you.

  • Can I add Users and/or Groups?

    Hi,
    Can I add Users and/or Groups in a Realm from my webapplication?
    (not using administrative console....but from my code)
    Tanks by
    Angelo.

    Yes.
    "Angelo" <[email protected]> wrote:
    >
    Hi,
    Can I add Users and/or Groups in a Realm from my webapplication?
    (not using administrative console....but from my code)
    Tanks by
    Angelo.

  • Can not synchronize the SAP NW UME users and system groups with SSM

    We have created a demo enviroment for a client demo.
    In SAP NW UME:
    1. Create the system group.
    2. Asing the goup created to the admin user (pipadmin).
    In Administrator's user interface:
    3. Acces to Administration > Set System Defaults in order to synchronize user tables. The data informed in the fields are:
    SSM Administrator = pipadmin
    Cache directory = C:Program FilesSAPSSMInternetPubcache
    Global cache setting = Enable
    End point = <IP:port>
    User name = pipadmin
    pasword = ······
    cache = Enable
    Then we click on syncronize tables (Administration > Set System Defaults). The "Update compled" message is showed but users and application group don't appear in the Administration > Manages Application Groups.
    Note: We tried to syncronize yesterday and we recieved the message: restart the SSM Extended listener.

    Thank you for your answer Bob.
    Yes, I restarted the SSM Extended listener after all the steps.
    Do you know if there is another missing step?
    Regards,
    Santiago

  • Deleted user and his invisible files

    A program I was running (SageTV) went into its Screen Saver mode and started showing still images that I can't locate with the Finder. The path was something like: /Users/User1/Pictures/iPhoto Library/picture.jpg. I discovered that 'User1' was in the 'Deleted User' folder. What I'm trying to do is locate these invisible files, move them to my active account, and delete these unused folders. Is there any Finder setting that would give me access to the deleted user's files? I have administrator privileges on this computer.

    Clearly when the other user account was removed the option to also remove his files was not chosen, so his entire user directory is most likely still intact and available.
    I believe if you remember the exact account name, you can restore it and easily access all the files/folders.
    You might also run
    ls -al /users
    and see if the account is there with some other user name or perhaps the original name.
    If it is User1, then you can access the files from the terminal and move the ones you want somewhere else, preferably a temporary folder to begin with to avoid any permissions issues.
    If, on the other hand, the user's files were removed along with his account, that is something else and an admin account may not have sufficient privileges to access the images or other files still on the system.
    Lastly, if all else fails, you can activate the root account and access all the files on the computer, but that should be a last resort.

  • Finding users and departments name

    I am using the following query to find all users there department and there responsibilities
    SELECT distinct employee_number, full_name,u.user_name, d.name ORGANIZATION_NAME, fr.responsibility_name,
    u.START_date, u.end_date FROM apps.per_people_f a, apps.per_assignments_f c, apps.hr_all_organization_units d,
    apps.fnd_user u, apps.fnd_user_resp_groups_direct frg,apps.fnd_responsibility_vl fr
    WHERE a.person_id = c.person_id AND a.person_id = u.employee_id (+)
    AND u.user_id = frg.user_id (+) AND frg.responsibility_id = fr.responsibility_id (+)
    AND c.organization_id = d.organization_id
    AND SYSDATE BETWEEN a.effective_start_date AND a.effective_end_date
    AND SYSDATE BETWEEN c.effective_start_date AND c.effective_end_date
    order by d.name
    But this query is not fectching all users_id from fnd_user,i need all users list in fnd_user.....can any body help

    The query looks fine, just make sure you have a person (From HR) attached to a user and it should work properly then.

  • Crating user and his rights

    Hi I am pretty new to arch. Would like to know, how to create my user with same rights as root ( or with simmilar rights if that is possible ).
    Next don't know what chroot means and don't know what ~/... means what directory is that? ep ~/xinitrc where I find this???
    I'm not stupid but I started with ArchLinux as my first Linux distro so I need to explain some things I don't understand, but can't find any manual about commands to use (which command does what and so on).
    Please help, would like to use arch but beginnings are hard to me.
    Sorry for my english, I'm from Czech Republic.
    THX

    pacman -Sy webmin
    And what next to add user to group? can i add my user to root group to have same rights?
    and do I have access to /home/balrog (balrog is also username) if my fstab is
    /dev/hdb3 /home/balrog ext3 defaults 0 1
    next how to create xinitrc in my home folder?
    THX

  • LDAP- When importing a Group it goes into Security Users and not Groups.

    Hello,
    I created a new LDAP Server
    cn=GroupBI,OU=Groups,OU=Systems,OU=Milan,OU=Italy,OU=Countries,DC=u,DC=a,DC=g
    Connection Test was ok.
    The problem is on importing members of my group, on Security Import window instead of having the group drop-down list populated I have the user drop-down list populated with "GroupBI".
    If I import this group (considered as a user by BI) it goes into Security > Users and not Security > Groups.
    This does not make sense.
    I'm sure this "GroupBI" is a group and not a user and the atribute type used is sAMAccountname
    Any help?
    Cheers

    Let me tell how we did Authentication using LDAP
    I havent imported any groups or users once the LDAP is set up and connection was successfull. I simply created the session variables USER DISPLAYNAME EMAIL and mapped to LDAP Variables uid, displayname, mail.
    Authentication is done in this way by mapping the OBIEE variables to LDAP variables instead of importing the groups.
    Now for Authorization I created the groups populated using some db tables and captured the group name and loglevel and applied filters on the group in the rpd for data level and permissions on the group in webcat for object level.
    So just for Authentication purposes I think we can authenticate with out really importing groups as long as you map OB variables to LDAP
    hope it helps
    Prash

  • People Picker can resolve users and security group from another domain but no validation for groups

    Dear all,
    Here is the scenario of our issue:
    We are migrating from Domain A to Domain B and in Domain A we currently have a SharePoint 2013 on which we want to set permissions for users and groups that have already migrated to Domain B.
    A bi-directional trust exist between the two domains and all applications relying on trust and resolving IDs from on domain to another are working fine (Windows RDS for instance)
    The "bug" that we have is when using the PeoplePicker, it can resolve without any issue a user account in Domain A or B, and a security group (type global, I haven't tried local or universal yet) from domain A or B. But for the security groups
    only (it works well for users), when I click on "Save" to validate the add of the group to the site permissions, I have the following error:
    I have seen a lot of similar issues on the web but no answer so far that work :( 
    Example: https://social.technet.microsoft.com/forums/sharepoint/en-US/74e8d14b-a0f4-4e21-8cfa-b1a937247160/cant-provision-security-to-old-domain-users
    If you have any question that could help you to understand it, do not hesitate. 
    Thanks a lot in advance for your help ! :)

    Can you give the snippet from the ULS log where you're seeing this error?
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Find user and event from auditor

    Hello friends,
    ill need your help for this situation,
    some user deleted a particular report today, is it possible to find out which user deleted this report (i know the reports name)? Also is it possible to list all the reports deleted in a particular day and user who deleted it?  i am looking for the report itself and not the instances of the report.
    we are running BO 3.1 SP5 with auditor enabled
    thanks

    Dear all,
    Be sure you have enabled the Audit event "Delete".
    In XI 3.1 you can do that in the Servers Area of the CMC, in the Audit Events of the CMS.
    After that, create a new report (eg with Web Intelligence) based on the Activity universe.
    You'll be able to select : User - Audit Event - timestamp, and filter on the "delete" audit event
    Hans

Maybe you are looking for

  • Forcing a page to refresh in proxy server cache

    I am accessing an externally hosted web server that uses jsps and dowbloads .jar files to the browser. We have a round robin auto-proxy URL that routes the browser user via one of a number of physical proxy servers. Some recent issues with out of dat

  • Internet blocking in Nokia 6020

    Hi ! I have a question about internet blocking in Nokia 6020. It's very important to protect a children from unsafe internet content. I need to protect my child from internet using by mobile phone. Is it possible to remove "Internet" icon from Nokia

  • PayLoad Extension OIM 11.1.1.5.0 + BP03

    Hi All, I have an OIM 11g environment in place which uses SOA for processing requests. By default, when a request is routed to SOA by OIM, some data is sent in the payload by OIM. I want to add some additional data in the payload using Java APIs to p

  • Displaying non-playlisted music

    Is there a way for iTunes to display a list of all the music in my library that has not been included in any of my playlists? Yes, I could go through the entire library, one at a time, putting a check mark beside each song as I go through the playlis

  • I cannot access my mail account using the correct password

    I keep getting the message "Mail cannot connect to the account 'mobileme'." When I type the password in and click either "ok" or "cancel" nothing happens.  I won't accep my correct password.