LogOut a user who loggin with Using j_security_check

Hi, I try to log out a user that log in with j_security_check. I use ADF Faces technology, and I need help to log out a user. I try to access to LoginContext from call logout() metod, but it´s imposible, I don´t know how do this.
Please, anyone can HELP ME???
Regards.

Did you try creating a logout.jsp to handle your logout, or something similar via session invalidation:
HttpSession session = request.getSession(true);
if (session != null)session.closeSessions();
session.invalidate();

Similar Messages

  • How to get list of users who reset password using FIM portal

    How to get list of users who reset password using FIM portal
    -Thanks Rakesh Sawant

    Hi Rakesh,
    I think you are looking for something like this:
    Using Powershell to list all users that had completed
    a password reset within the last 30 days
    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

  • Another user who can't use an Apple TV

    After much anticipation I managed to get my hands on an Apple TV 2 days ago. Unfortunately, I seemed to have joined the club of folks who can't seem to get their Apple TVs up and running (see elsewhere on this forum, e.g. http://discussions.apple.com/thread.jspa?messageID=12471381). The story goes like this...
    1. Apple TV connects to my wifi, but then sits on the "Waiting for network services..." screen with pin wheel indefinitely (I waited for over 6 hours, periodically knocking the screensaver off, making sure it didn't go to sleep).
    2. Pressing the menu button while it was failing to connect would take me to the main menu. Movie thumbnails were visible and I could watch previews. Couldn't connect to youtube but I could connect to my MobileMe gallery.
    3. Couldn't activate home sharing as it claimed my iTunes Store username/password were invalid. This isn't the case as the same username/password combination work fine on my other machines (an iMac, two MacBooks and an iPhone). To be double sure I updated my account details to have a password with more than 8 characters including a number and a combination of uppercase/lowercase) and checked my c/card details were up to date. Still no joy. So, I can't connect to my iTunes library to watch video or listen to audio (making the ATV a bit pointless).
    4. Having read all the discussion of this on the forums (and the Apple trouble shooting guides) I've tried the following
    - making sure all ports are open on my router (especially the relevant ports for NTP etc)
    - checking the network traffic was OK (all my devices are able to get network time OK, use Home Sharing withing the LAN, connect to the iTunes store etc)
    - Updating to iTunes 10.0.1
    - Turning off/on home sharing on my iMac
    - Restarting my machines
    - Restarting my router
    - pulling my hair out
    5. I called apple support who were useless. This was a real blow. In the past, I've always found Apple support to be brilliant, but today the guy I spoke to couldn't get me off the phone fast enough. All he wanted to do was email me a link to the support page, even though I had already told him that I had spent two days working through these!!! Totally useless. This is a real shame since the support was one of the reasons to choose Apple. If I wan't bad service, I'd have bought a Dell.
    6. I returned the ATV to the Apple Store. Unfortunately, they were unable/unwilling to test it in the store but offered me an exchange or a refund. In the end I left with a new unit. Unfortunately this has not solved the problem - exactly the same result with the new unit.
    So where am I left? Two units won't work in my home, so it's unlikely to be a faulty unit. I tried my router wide open (allowing all incoming/outgoign traffic) so I don't see that being the problem. My ISP (Plusnet in the UK) clearly isn't blocking the required ports as my other machines (using the same Netgear DGN2000 ADSL wireless router) seem to be able to use these ports/services just fine.
    I can see that some would take the above as evidence that my network is to blame. However, all the tests I can do suggest that my network and router are working perfectly well and that the ATV should also work. At the end of the day, if I went and bought an airport extreme (which costs 150% of the cost of the ATV) I'd still have to connect to my ISP though my router since the airport extreme isn't an ADSL router. Frankly, I resent having to buy new routers just to test to see if the ATV will work. The kit I have meets the industry standards to the ATV should work!!
    The replacement ATV is going back to the store for a refund this week, unless anyone has a useful suggestion?

    Alley_Cat - all good advice, thanks. Sadly, I've already tried most of your suggestions...
    Alley_Cat wrote:
    You seem to be partially connected to the internet, so AppleTV is seeing the that, it looks as though LAN communication is the issue.
    Yes and no. As I understand it, Home Sharing verification is via the iTunes store, and my account wont verify, so there are still some WAN issues. "Partially connected" seems to be the right word!
    Alley_Cat wrote:
    I can't say I've ever seen 'waiting for network services', but had problems getting Home Sharing to work initially as it seemed to disable itself when I pressed 'Done' at the end of the enabling process in iTunes. Try disabling/enabling again and not pressing done just clicking movies or something in iTunes - if I didn't do this the Home Sharing icon kept disappearing.
    I've seen this reported elsewhere on the forum. Tried not pressing "done" after activating Home Sharing, but still no connectivity
    Alley_Cat wrote:
    I would be tempted to configure your router to assign a fixed LAN IP address for AppleTV based on it's MAC address, then restart everything. Also try temporarily disabling any wi-fi security, can you then connect fully (you may have done this I think)?
    If you have a long ethernet cable or ethernet connection is simple (nearby router, or direct to a local computer) try connecting that to the router to see if it's a wi-fi issue.
    Yeah, already enabled all traffic, tried with both fixed IP and DHCP assigned IP, both wifi and wired, Also tried connecting via my iMac. Makes no difference
    Alley_Cat wrote:
    You can clearly connect in part to the internet, but it's odd you can access MobileMe, and not YouTube. It would be worth checking your ISP is not blocking anything or having issues - you've already sorted the router by the sounds of it.
    I contacted my ISP, but this seems unlikely. All my other Apple devices seem to be able to communicated just fine over the internet.
    Alley_Cat wrote:
    On the Mac, things like NetBarrier, Little Snitch might block AppleTV if not configured to allow traffic. Temporarily disable software firewalls including OS X if you haven't done so.
    Don't have any of this software (and the software firewalls are all turned off)
    Alley_Cat wrote:
    I can't remember at the minute if AppleTV 2 has an iTunes Store country setting (old one did) but if your store credentials are not being recognised it could be defaulting to the wrong country for some reason, and not set to UK. Another possibility is that the authentication happens via iTunes (I don't think it does in all honesty), so if AppleTV isn't seeing iTunes, it may not be able to authenticate and gives a vague error message.
    Early ATV2 users noted that they had to change the country settings from US, but mine was shipped with UK already set.
    Alley_Cat wrote:
    This is obvious but I assume you are not inadvertently trying to enable Home Sharing with your MobileMe credentials - it could easily be done, but doubt your doing that. I also assume you don't have multiple itunes Store login names.
    One final thing I would do before giving up is to create a dummy account and set up a new itunes library with a few things in it, enable Home Sharing etc again with this - if there's a configuration issue with the existing user's iTunes account, or some library corruption, the communication could be falling over as it encounters an error in the library it can't deal with (poor error handling in itunes or AppleTv code).
    Always good to rule out user-stupidity!!! :o)
    I've made sure I'm using the correct username/password combination for my iTunes account (this is different from my MobileMe account). I've also made sure that my password conforms to the requested standard (min 8 chars, at least 1 numeric, at least 1 uppercase, at least 1 lowercase, no spaces). I've also tried creating a new iTunes store account. Still no good.

  • For Thunderbird users who have to use Nuance Dragon – have they found version 13 of Dragon incompatible and unusable?

    I wonder how many Thunderbird users with poor eyesight who are forced to use Nuance Dragon are finding that it is not compatible with the latest version 13 of Dragon (confirmed without offer of help by Nuance). Versions 12 & 12.5 worked perfectly for dictation and Thunderbird.

    The only function of Dragon (but for me with AMD, a major one) which does not work for me in version 13 is that it will not print my dictation, or use any commands associated with dictation. In all other respects, it works normally with commands like "Click Send", "Click File, Click Exit", "Click Write", etc., but simply, no text appears when I dictate. So to use Thunderbird I have two always call up the Dictation Box, which is a nuisance.
    Somebody in Nuance must have made a simple mistake when upgrading from version 12.5 to version 13, a mistake which only involves this tiny area in Thunderbird, so I just cannot understand why they cannot check it out and correct it. Previous versions of Dragon where superb with Thunderbird.
    When I sent them a complaint, they simply replied saying they were sorry for the inconvenience, but that Dragon version 13 was simply incompatible with Thunderbird. End of story no offer to investigate or help – I just wish there was an alternative company with a similar product, and I would switch instantly!

  • How to list of Users who are using Crystal XI application?

    Hi all,
    Thanks for your support provided so far.
    I need to get the list of users who are all using the Crystal XI application. I tried to get this info from the Business Objects Enterprise Applications in CMC but it was not there. Where can I find this information?
    kindly help me.
    Thanks,
    Bhuvan R

    There is not such a portlet available out of the box...
    Have you looked at the code share section?
    If you want to develop yourself, I don't think this is achievable using the IDK (remote interface)
    But It is definitely possible to create such a portlet using the server API (drawback: the portlet has to live where a portal component is installed - WS, automation or Portal)

  • Audit individual users who have SYSDBA priv

    Hi,
    we have granted 5 users SYSDBA priv, and would like to be able to audit them individually when they access the db. we are writing the audit files to the SYSLOG.
    tyhe problem is that when a user logs onto db using their username but includes 'as sysdba' they automatically default to user SYS. i.e:
    SQL> conn SYSUSER1 as sysdba
    Connected.
    SQL> sho user
    USER is "SYS"
    and this user is is recorded in the audit log under SYS database user, so we are not able to individually identify a specific user who logs in using SYSDBA.
    Does anyone have any ideas how to get around this? so that we can track users individually who connect as their db username but also use SYSDBA?
    Thanks,
    firefly

    The .aud file does not show the database user SYSUSER1 if they connect with OS authentication like
    [oracle@uhesse Desktop]$ sqlplus sys1/pw as sysdbabut if you make them connect with connect descriptor via listener, the database user is recorded, like this:
    [oracle@uhesse Desktop]$ sqlplus sys1/pw@orcl as sysdba
    [oracle@uhesse Desktop]$ cat /u01/app/oracle/admin/orcl/adump/orcl_ora_2212_1.aud
    Audit file /u01/app/oracle/admin/orcl/adump/orcl_ora_2212_1.aud
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1
    System name:     Linux
    Node name:     uhesse
    Release:     2.6.32-100.28.5.el6.x86_64
    Version:     #1 SMP Wed Feb 2 18:40:23 EST 2011
    Machine:     x86_64
    Instance name: orcl
    Redo thread mounted by this instance: 1
    Oracle process number: 19
    Unix process pid: 2212, image: oracle@uhesse
    Thu Aug  4 10:00:29 2011 +02:00
    LENGTH : '163'
    ACTION :[7] 'CONNECT'
    DATABASE USER:[4] 'sys1'
    PRIVILEGE :[6] 'SYSDBA'
    CLIENT USER:[6] 'oracle'
    CLIENT TERMINAL:[5] 'pts/0'
    STATUS:[1] '0'Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Using imessenger is it free to chat with iphone users who are in another country?

    Using imessenger is it free to chat with iphone users who are in another country?

    my understanding is yes because it worked with ipod touches via your Apple ID and there is no payment process agreement when setting up iMessage.

  • Can't Use Video with other Mac users who use AIM

    I know that ichat is compatible for video chats with other pc users who use aim, but does it work with other mac users who use aim?
    Everytime I try to chat with my friend, I get an error message when trying to start of a video chat.
    BTW, I use a iMac G5 with an isight camera.

    Hi Staci,
    For a Bit of Clarity.
    AOL have their Instant Message App. referred to as AIM.
    Apple decided and did a deal with AOL that iChat could join their service Buddy Lists.
    On these Discussions we tend to refer iChat as Logging into AIM, as they are the servers that the Buddy Lists are held on.
    As iChat can also use Bonjour and Jabber, both of which have their own Buddy list window on your Mac. The Jabber side needs you to have a Jabber screen name - so again people differentiate between this and the AIM side.
    I would guess you friend is trying to make it clear that she is using the AIM side of iChat as opposed to the Jabber side.
    As has been said already, the Application side of things also tend to get referred to generically as "AIM" as well.
    The Mac version has stopped and 4.7 and will only Text chat.
    The PC side needs 5.9 to clearly Video or Audio chat with a Mac using iChat. (AIM 6.0 is not stable enough to A/V chat to iChat).
    1:13 PM Saturday; January 27, 2007

  • HT3529 I'm having trouble with my iPhone 5 iMessage service. The device does not recognize the users who have iMessage when I try to contact them using this feature. Who have the same issue and what did you do in order to solve it?

    I'm having trouble with my iPhone 5 iMessage service. The device does not recognize the users who have iMessage when I try to contact them using this feature. Who have the same issue and what did you do in order to solve it?

    Read here:
    http://support.apple.com/kb/ts2755

  • Can't audio chat with another Mac user who is using AIM

    Can't audio chat with another Mac user who is using AIM but I can when they are using iChat. Is there a way that I can fix this problem.

    The Mac OS X version of AIM is not capable of audio or video chats. There is no way around this.
    (14088)

  • How to find out the Transactions used per month & the USER who used that

    Hi,
    1)How to find out the Transactions used per month & the USER who used that?
    2)and can i get the above same for minimum 20 month?
    System : SAP- Enterprise Core Component.

    You can use my program...
    *& Report  Z_ABAP_TCODE_MONITOR
    *****&  Program Type          : Report                                 *
    *****&  Title                 : Z_ABAP_TCODE_MONITOR                   *
    *****&  Transaction code      : ZTCODE_USAGE                           *
    *****&  Developer name        : Shailendra Kolakaluri                  *
    *****&  Deveopment start date : 26 th Dec 2011                         *
    *****&  Development Package   : ZDEV                                   *
    *****&  Transport No          : DEVK906086                                       *
    *****&  Program Description   : This program is to display
    *List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    *& Modification history
    REPORT  Z_ABAP_TCODE_MONITOR.
    *& List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    TYPE-POOLS : slis.
    DATA: ind TYPE i,
          fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          layout TYPE slis_layout_alv,
          variant TYPE disvariant,
          events  TYPE slis_t_event WITH HEADER LINE,
          heading TYPE slis_t_listheader WITH HEADER LINE.
    *REPORT  z_report_usage.
    TYPES: BEGIN OF zusertcode,
      date   TYPE swncdatum,
      user   TYPE swncuname,
      mandt     TYPE swncmandt,
      tcode     TYPE swnctcode,
      report TYPE swncreportname,
      count     TYPE swncshcnt,
    END OF zusertcode.
    *data   : date type n.
    DATA: t_usertcode  TYPE swnc_t_aggusertcode,
          wa_usertcode TYPE swncaggusertcode,
          wa           TYPE zusertcode,
          t_ut         TYPE STANDARD TABLE OF zusertcode,
          wa_result    TYPE zusertcode,
          t_result     TYPE STANDARD TABLE OF zusertcode.
    PARAMETER: month TYPE dats DEFAULT sy-datum.
    *PARAMETER: date TYPE dats.
    *select-options : username for wa_usertcode-account.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM get_fieldcatalog.
      PERFORM set_layout.
    PERFORM get_event.
    PERFORM get_comment.
      PERFORM display_data.
    FORM get_data .
    *date = sy-datum - 2 .
    After start-of-selection add this line (parameter Month required 01 as day).
      concatenate month+0(6) '01' into month.
      CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
        EXPORTING
          component     = 'TOTAL'
          ASSIGNDSYS    = 'DEV'
          periodtype    = 'M'
          periodstrt    = month
        TABLES
          usertcode     = t_usertcode
        EXCEPTIONS
          no_data_found = 1
          OTHERS        = 2.
      wa-date  = month.
    *wa-date  = date.
      wa-mandt = sy-mandt.
    wa_usertcode-account = username.
      LOOP AT t_usertcode INTO wa_usertcode.
        wa-user = wa_usertcode-account.
        IF wa_usertcode-entry_id+72 = 'T'.
          wa-tcode  = wa_usertcode-entry_id.
          wa-report = space.
        ELSE.
          wa-tcode  = space.
          wa-report = wa_usertcode-entry_id.
        ENDIF.
        COLLECT wa INTO t_ut.
      ENDLOOP.
      SORT t_ut BY report ASCENDING.
      CLEAR: wa, wa_result.
    endform.
    FORM get_fieldcatalog .
    fcat-tabname     = 't_ut'.
    fcat-fieldname   = 'DATE'.
    fcat-seltext_l   = 'Date'.
    fcat-key         = 'X'.
    APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'MANDT'.
      fcat-seltext_l   = 'Client'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'USER'.
      fcat-seltext_l   = 'User Name'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'TCODE'.
      fcat-seltext_l   = 'Transaction Code'.
      fcat-key         = 'X'.
      APPEND fcat.
    ENDFORM.
    *&      Form  SET_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM set_layout .
      layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SET_LAYOUT
    *&      Form  GET_EVENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_event .
    events-name = slis_ev_top_of_page.
    events-form = 'TOP_OF_PAGE'.
    APPEND events.
    *ENDFORM.                    " GET_EVENT
    **&      Form  GET_COMMENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_comment .
    DATA: text(30).
    text = 'Billing Report'.
    heading-typ = 'H'.
    heading-info = text.
    APPEND heading.
    *ENDFORM.                    " GET_COMMENT
    **&      Form  top_of_page
          text
    -->  p1        text
    <--  p2        text
    *FORM top_of_page .
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         it_list_commentary       = heading[]
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    *ENDFORM.                    " top_of_page
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      sort t_ut[].
    DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = fcat[]
          i_save             = 'A'
          is_variant         = variant
          it_events          = events[]
        TABLES
          t_outtab           = t_ut
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " DISPLAY_DATA

  • How do you make the Filter so we can use the FIM cmdlets to list Users who have no Manager attribute

    I can easily create a Set of Users who are "unusual"
    The SET criteria is
    EmployeeID starts with %
    and Any of
        EmployeeStatus not starts with %
        EmployeeType not starts with %
        Manager not in All FIM users
    This criteria works and gives me all the users when I push the View Members button.
    But when I look at the Set's Filter it seems to refer to a uuid of that All FIM users Set. To be honest I dont fully understand the set's XPATH filter.
    What I hope to do is to some how build a filter so that the FIM cmdlets can be used to identify and fix up these users, especially those who do not have a valid Manager. There are hundreds of these non-standard users and although possible, its not practical
    to do this by hand via the "All Non Standard Users" set.
    Any hints welcomed.

    All users without a manager: Xpath Filters
    /Person[not(Manager=/Person)]
    or,
    /Person[Manager!=/Set[DisplayName='All People']/ComputedMember]
    <# Please do not anything in the production environment unless and until you are very much sure #>
    # Powershell Cmdlet to find all users in portal not having manager
    # Load FIMAutomation module
     if(@(Get-PSSnapin | ? { $_.Name -eq "FIMAutomation" } ).Count -eq 0)
         Add-PSSnapin FIMAutomation;
    $users = Export-FIMConfig -customConfig "/Person[not(Manager=/Person)]" -Uri "http://localhost:5725"  -OnlyBaseResources
    foreach ($user in $users)
    $x = (($user.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "DisplayName"}).Value) 
    Write-Host "$x"
    Thanks and regards,
    Anirban Singha(Bangalore)

  • Calendar Server 3.5: Problem using user's ID with uniuser -mod command

    When there are two users who have the same Common Name (CN) in LDAP but
    different User ID's (uid
    field), I have a problem using the uid
    field as an argument to
    uniuser -mod in Netscape Calendar
    Server (NCS) 3.5. For example, there may be two users, User1 and User2, who
    both have the CN "John Smith."<BR>
    <P>
    <B>User1</B>
    uid: jsmith2
    sn: Smith
    givenname: John
    nscalxitemid: 10001:00314
    <B>User2</B>
    uid: jsmith
    sn: Smith
    givenname: John
    nscalxitemid: 10001:00213
    <P>
    Let's say I want to change the value for nsCalOrgUnit2
    for User1 to "jsmith." In NCS 4.0,
    I can specify the uid as
    an argument to uniuser -mod
    . However, in NCS 3.5, if I specify the
    uid as an argument to
    uniuser -mod, the entry
    for the user does not get changed.<BR>
    <P>
    <B>Calendar Server 4.0</B><BR>
    <P>
    %uniuser -mod "ID=00314" -m "OU2=jsmith/OU3=People" -n 10001
    <BR>
    uniuser: modified "Smith, John"<BR>
    <P>
    (The LDAP entry for User1 also reflects this change.)
    <P>
    <B>Calendar Server 3.5</B><BR>
    <P>
    %uniuser -mod "ID=00314" "OU2=jsmith/OU3=People" 10001
    <BR>
    uniuser: no need to modify "Smith,John"<BR>
    <P>
    (The LDAP entry for User1 does not reflect the change.)<BR>
    <P>
    %uniuser -mod "S=Smith/G=John/ID=00314" "OU2=jsmith/OU3=People"
    10001<BR>
    uniuser: no need to modify "Smith,John"<BR>
    <P>
    (The LDAP entry for User1 does not reflect the change.)<BR>
    <P>
    If I use the command uniuser -mod "S=Smith/G=John"
    "OU2=jsmith/OU3=People" 10001
    in NCS 3.5, the script will change the entry of the first "John Smith" in the
    database and will cause the LDAP entry for this user to be updated as well.
    However, the entry modified may or may not be the correct one. So, in
    NCS 3.5, is there a way to specify a particular uid
    to ensure that the correct LDAP entry
    is modified?
    <P>
    To modify a user's information using the uid
    field in Calendar Server 3.5, change
    the user.ini file. The
    following steps show how to change a user's information by modifying the
    .ini file:<BR>
    <P>
    <OL>
    <LI>Open the user.ini
    file, which is in the path /users/unison/misc/user.ini
    <P>
    <LI>Add a section containing the desired changes. For example,<BR>
    <P>
    [Test]<BR>
    OU2 = jsmith<BR>
    OU3 = People<BR>
    <P>
    <LI>Run uniuser with
    the following options:<BR>
    <P>
    % uniuser -mod "ID=00314" -s Test 10001
    </OL>

    It turns out to be a problem with the user Keychain. It has some weird entry that was sending the wrong password. I delete all entries to the server and that corrected the problem

  • How to get list of users who all are having full access in sharepoint site using client object model c#

    Hi,
    I want to fetch the list of users who all are having full access to the sharepoint list using client object model with .Net
    Please let me know if any property for the user object or any other way to get it.
    Thanks in advance.

    Here you are complete code i created from some years it lists all groups and users, you can just add a check in the permissions loop to see if it is equal to Full Control.
    Private void GetData(object obj)
    MyArgs args = obj as MyArgs;
    try
    if (args == null)
    return; // called without parameters or invalid type
    using (ClientContext clientContext = new ClientContext(args.URL))
    // clientContext.AuthenticationMode = ClientAuthenticationMode.;
    NetworkCredential credentials = new NetworkCredential(args.UserName, args.Password, args.Domain);
    clientContext.Credentials = credentials;
    RoleAssignmentCollection roles = clientContext.Web.RoleAssignments;
    ListViewItem lvi;
    ListViewItem.ListViewSubItem lvsi;
    ListViewItem lvigroup;
    ListViewItem.ListViewSubItem lvsigroup;
    clientContext.Load(roles);
    clientContext.ExecuteQuery();
    foreach (RoleAssignment orole in roles)
    clientContext.Load(orole.Member);
    clientContext.ExecuteQuery();
    //name
    //MessageBox.Show(orole.Member.LoginName);
    lvi = new ListViewItem();
    lvi.Text = orole.Member.LoginName;
    lvsi = new ListViewItem.ListViewSubItem();
    lvsi.Text = orole.Member.PrincipalType.ToString();
    lvi.SubItems.Add(lvsi);
    //get the type group or user
    // MessageBox.Show(orole.Member.PrincipalType.ToString());
    if (orole.Member.PrincipalType.ToString() == "SharePointGroup")
    lvigroup = new ListViewItem();
    lvigroup.Text = orole.Member.LoginName;
    // args.GroupsList.Items.Add(lvigroup);
    DoUpdate1(lvigroup);
    Group group = clientContext.Web.SiteGroups.GetById(orole.Member.Id);
    UserCollection collUser = group.Users;
    clientContext.Load(collUser);
    clientContext.ExecuteQuery();
    foreach (User oUser in collUser)
    lvigroup = new ListViewItem();
    lvigroup.Text = "";
    lvsigroup = new ListViewItem.ListViewSubItem();
    lvsigroup.Text = oUser.LoginName;
    lvigroup.SubItems.Add(lvsigroup);
    //args.GroupsList.Items.Add(lvigroup);
    DoUpdate1(lvigroup);
    // MessageBox.Show(oUser.LoginName);
    RoleDefinitionBindingCollection roleDefsbindings = null;
    roleDefsbindings = orole.RoleDefinitionBindings;
    clientContext.Load(roleDefsbindings);
    clientContext.ExecuteQuery();
    //permission level
    lvsi = new ListViewItem.ListViewSubItem();
    string permissionsstr = string.Empty;
    for (int i = 0; i < roleDefsbindings.Count; i++)
    if (i == roleDefsbindings.Count - 1)
    permissionsstr = permissionsstr += roleDefsbindings[i].Name;
    else
    permissionsstr = permissionsstr += roleDefsbindings[i].Name + ", ";
    lvsi.Text = permissionsstr;
    lvi.SubItems.Add(lvsi);
    // args.PermissionsList.Items.Add(lvi);
    DoUpdate2(lvi);
    catch (Exception ex)
    MessageBox.Show(ex.Message);
    finally
    DoUpdate3();
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

  • I have a requirement where I have to give the list of users who can access a specific computer. I am new with PS. Do you have a script to list users that can access a computer object of AD ?

    I have a requirement where I have to give the list of users who can access a specific computer define in AD.
    I am new with PS.
    Do you have a script to list users that can access a computer object of AD ?
    I have executed the following script  but it does not give me the access rights of who can access the computer 'computername'
    How can i have this information. please help
    Import-Module activedirectory
    $computer=get-adcomputer "computername" -properties ntSecurityDescriptor
    $omputer.ntsecurityDescriptor.Access | select-object -expandproperty IdentityReference | sort-object -unique

    I would say that, since the OP has so little info, there are no policies in use.  It there were then this question would never be asked the way it is being asked.
    I had a client call with a letter from their insurance company; an accountant with malpractice insurance.  THey asked the same question inmuch the same way.  "What computer can you users access?"  The question should be more like
    "Do you have a policy that restricts access to computers and do you audit for compliance?"
    I have had other clients whose insurance asked the question in that way.  It produces a better view of what should be happening and how to show compliance.
    I recommend that companies being asked these questions by their legal departments or insurance companies should contract with a god computer security consultant to assist with answering these very tricky questions.  Of course if it is just you boss's
    curiosity  then you may need to discuss his requirements with him in more depth.
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Sales Invoice output

    Hi Friends, My client requirement is that they sales invoice to be sent by 1. Print output 2.In PDF form 3.By Email copy to be sent when we save Invoice. Thay want all three output types to be triggered in the vf01.My query is whether I need to creat

  • Depreciation Amount for Asset taking in Round-Off Value and not in Decimals

    Gurus,     When I run the Depreciation, the System is calculating amount in Round-off and not in decimals     Whereas I have knowledge that It shud calculate in decimals or to the exact amount whatever it comes, but the system is automatically roundi

  • XL Reporter for Patch level 42 SAPB1 2005 b

    Hi all, from where to get XL Reporter  and Copy Express Add On for patch lvel 42. Thanks, Neetu

  • FM to Find Fiscal Year

    Hi Is there any FM to find the Fiscal Year if i give the From and To Date ?

  • IBook G3 airport card not finding networks

    i have an iBook G3 that i have just put an airport card in, after installing the airport card it shows the card is installed but no networks have been found. i did some research online and it said to check the antena, make sure the card is inserted a