ACS 5.0 - WLC could not authenticate

Salvation of the Forumers

My script is

1 using the microsoft AD running on window 2008, use ad server to perform authentication of identity

2. I let successfully the ACS 5.0 device link and join the domain created on the AD server.

3. I have also set up on WLC 2100 series with the right key on pre-shared, server IP RADIUS (which is my ACS appliance IP)

Problem statement:

1. try to access the network Journal ACS showing the error log 'Unknow CA, a no authentication'. (I know I'm missing to place certificate for EAP protocol somehow...)

Question:

1. to solve this problem, I can generate self-signed certificate ACS, then let the WLC import the certificate self-signed GBA?

(so EAPoW challenge can happen as ACS and WLC are reciprocal trust, which, in my view, ACS simply use the user of the AD, so in this cse ACS database is the authentication server and WLC is the authenticator and my AP / user's begging him, am I rite?)

can I not like it? Appreciate all feedback and response!

2. If we are not my thought, can you please suggest me a solution (my requirement, it is not using any third party trusted agent certificate)

Thank you

Noel

Hi Noel,

If I can update your list, the components must be the following:

-ACS authentication server =

-WLC = authenticator

-wireless client = client

Use of certificates for EAP authentication between client wireless and ACS (devices performing the EAP authentication): the WLC check all ACS certificate.

You can certainly create a self-signed certificate on ACS for PEAP for example working.

On the client, you must then either not to validate a server certificate or to import GBA self-signed certificate as a CA certificate root to trust the self-signed certificate ACS itself when sent by ACS during the configuration of the PEAP TLS tunnel.

One final note, for WLC working with ACS 5.0, please make sure you are on the patch
5.0.0.21.6 or later

http://www.Cisco.com/cgi-bin/tablebuild.pl/acs5_patches

in order to avoid the known bug CSCsy17858

http://Tools.Cisco.com/support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCsy17858

Kind regards

Fede

--

If this helps you or answers to your question if it you please mark it as 'responded' or write it down, if other users can easily find it.

Tags: Cisco Security

Similar Questions

  • I get the message "Could not authenticate you" when I try to get the portfolio management

    Original title: portfolio in MSN Money management.

    I get the message "Could not authenticate you" when I try to get the portfolio management and when I try again, the same message is repeated.  What type of authentication is necessary?

    Hello

    I recommend you contact the support team of MSN Money for assistance on this issue.

    http://social.Microsoft.com/forums/en-HK/money/threads

    See also Solution Center-silver

  • Could not authenticate DoLoginByPass()

    Hi, all of a sudden our interface for saving Nutrient Analysis Web Service Client has stopped working.  Again, we get this error DoLoginByPass().

    I checked the installation wizard and it is properly configured for Prodika.ProdikaAPI.SysUser.   Any ideas on what could cause this problem?

    Thank you

    Mike

    You can also check the following SQL query is identical in the two environments/databases that your try?

    Select * from ConfigurationDictionary where name like '%Prodika.ProdikaAPI'.

    Prodika.ProdikaAPI.SysUser

    Prodika.ProdikaAPI.SysPassword

    Make sure that the sysPassword is the same everywhere AND you can use the real password to connect both (that of ConfigurationDictionary is encrypted)

  • ACS secondary server does not authenticate users through 3850 WLC

    HI - I have a question that my secondary ACS server does not authenticate users when the primary is taken offline.  My configuration is:

    3850 WLC by using the code version 03.07.00E

    ACS Version 5.6 (primary/secondary)

    The two ACS servers added to WLC (ACS-NLBP-01 (primary) / HEN-ACS-01 (secondary)), defined in the Group server (ACS_AUTH) and also the method list (ACS_AUTH).  List of the ACS_AUTH method is then applied to the SSID.

    A 'test of ACS_AUTH aaa server group' command for the two outcomes of ACS server as a result of access.  Communication IP/Radius is operational between WLC and two ACS servers.

    configuration of 3850 also attached for reference.

    Any help would be appreciated.

    Thank you

    Scott

    Please add the below listed orders and test again when you can.

    Server radius # deadtime $min$
    retransmission of radius-# 1 Server
    # Server radius-dead-criteria times 5 tent 1

    Configuring settings for all RADIUS servers

    HTH

    ~ Jousset

  • Cisco ACS SE "set ip" error: could not set up new NETWORK card configuration.

    Hello

    I get the error "error: could not set up new NETWORK card configuration." When I try to set the IP ACS SE.

    When I called into the device image and tried to do an initial installation, the IP to not hold after the restart and went back to the default value.

    I went by NetPro and apparently it is a common problem. One person it is solved re-imaging unit, but who has not worked for me.

    Someone there with a solid solution? I use NIC 1 FYI.

    EDD.

    Ed,

    Please make sure that if ACS is associated with active before setting Ethernet connection

    or change the IP address of your ACS system engineer.

    http://www.Cisco.com/en/us/docs/net_mgmt/cisco_secure_access_control_server_for_solution_engine/4.0/installation/guide/appliance/admap.html#wp1109621

    Kind regards

    ~ JG

  • CiscoSecure ACS 4.2 could not start due to failure of the services start bit

    There are few services that wasn't able to restart, they are as follows:-

    (1) CSAuth

    Error:-"Windows could not start the csauth on local computer. For more information, see the system event log. If it is

    a non-Microsoft service, contact the service vendor and refer to service 1060 "specific error code

    (2) CSTacacs

    Error:-"Windows failed to start the cstacacs on the local computer. For more information, see the system event log. If it is

    a non-Microsoft service, contact the service vendor and refer to service 1066 "specific error code

    (3) CSRadius = start

    the rest of services like CSAdmin, CSDbSync, case were lit.

    Also I am not able to take the acs system backup of the System Configuration-> ACS Backup and pressing backup now. It shows the msg of error as

    : - CSAuth service must be running to start the backup

    I was referring to the snapshots of the OS itself, but I guess you checked now.

    Do not forget that the case works so you should see logs for services that do not work. Learn about the \CSAuth\logs folder for logs CSAuth and other records for other services that do not work.

    There is a located here very detailed troubleshooting guide:

    http://www.Cisco.com/c/en/us/TD/docs/net_mgmt/cisco_secure_access_contro...

    This guide should help you solve the question if there is no other software on the server to cause trouble. One thing it says who can apply to you is to ensure that the Windows Firewall as connection sharing Internet is not ongoing.

    Because I am familiar with your server, I think you should do the quick test below for if sure there are not taken, which may be crashing the authentication services that you mentioned. In the command line, type "netstat - ano | Findstr Listening-i"and see if or not he has taken open your ports Ganymede + and radius. He will probably return false, but it's worth a check.

    Worst case scenario, you may be able to use CSUtil to back up the database (I'm fairly certain you can back up services that work), install the ACS on a new Windows 2003 server, and then restore. You can use CSUtil to many types of exports and operations as well.

    If you manage to deal with the problem or not, you should speak with the person who is responsible for making backups of your servers and make sure that something like this was coming once again that you can have a quick fix during a maintenance window.

  • LWAPP could not reach WiSM WLC

    Hi all

    We are currently convert our WLSM infrastructure to the new WISN and when testing with several converted to LWAPP 1231AG access points.

    Now, we could have successfully the two AP reach a controller (one using MIC, the other SSC) and now they have dissociated with the controller and will not send a JOIN query.

    The only thing we have done is to add a new interface VLAN virtual as previously during the trials, had the WLAN bind to the management interface, which it is by default if you do not create a virtual.

    Also, I had activated security WPA/WPA2 test our client using RADIUS authentication.

    I mentioned that I noticed that trying to the ap have been re - attach the controller, they tried to create an RSA certificate.

    In any case, we have disabled the RADIUS authentication to try of to the ap of is to join.

    Seems that they discover the controller no problem so there's activity between the controller and the AP, but the apparantely no JOIN query is being sent or delivered.

    We also use the DHCP to send of the AP, the controller information.

    Some examples of what is happening on the AP and the controller: -.

    * 00:00:06.447 Mar 1: % LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0, changed State to

    * 00:00:23.550 Mar 1: % LWAPP-5-CHANGED: LWAPP changed state of DISCOVERY

    * 1 Mar 00:00:23.579: crypto_mykey 116, the current size of the compensated load 9376 SSC, saved size soap_cert_crypto_mykey 124

    * 00:00:35.694 Mar 1: % ADDRESS_ASSIGN-6-DHCP: Interface FastEthernet0 assigned address DHCP 10.22.0.245, mask 255.255.0.0, hostname AP0011.9206.9b4a

    Translate "CISCO-LWAPP - CONTROLLER.bowdoin.edu"... the domain server (139.140.226.20) (139.140.226.21)

    * 1 Mar 00:00:48.158: LWAPP_CLIENT_ERROR: lwapp_name_lookup - could not resolve CISCO-LWAPP - CONTROLLER.bowdoin.edu

    * 1 Mar 00:01:03.194: LWAPP_CLIENT_ERROR_DEBUG: spamHandleJoinTimer: has not received the answer to join

    * 1 Mar 00:01:03.194: LWAPP_CLIENT_ERROR_DEBUG: no more AP manager IP addresses remain.

    * 1 Mar 00:01:08.230: LWAPP_CLIENT_ERROR_DEBUG: spamHandleJoinTimer: has not received the answer to join

    * 1 Mar 00:01:08.230: LWAPP_CLIENT_ERROR_DEBUG: no more AP manager IP addresses remain.

    * 00:01:08.399 Mar 1: % SYS-5-RELOAD: reload LWAPP CUSTOMER the request. Reload reason: NO SE JOIGNIRENT RESPONSE.

    * 00:01:08.400 Mar 1: % LWAPP-5-CHANGED: LWAPP changed State to DOWN

    And on the controller: -.

    Sun 30 Aug 15:46:01 2009: 00:1e:f7:47:7 b: a6 received LWAPP DISCOVERY

    ASK AP 00:1e:f7:47:7 b: 00:25:84:a9:a2:8 b on port ' 29 a6 "

    Sun 30 Aug 15:46:01 2009: 00:1e:f7:47:7 b: a6 transmission successful

    Discovery LWAPP AP 00:1e:f7:47:7 b response: a6 IDE oucederomsurlesecondport 29

    Sun 30 Aug 15:46:01 2009: 00:1e:f7:47:7 b: a6 received LWAPP DISCOVERY

    ASK AP 00:1e:f7:47:7 b: 00:25:84:a9:a2:8 b on port ' 29 a6 "

    Sun 30 Aug 15:46:01 2009: 00:1e:f7:47:7 b: a6 transmission successful

    Discovery LWAPP AP 00:1e:f7:47:7 b response: a6 IDE oucederomsurlesecondport 29

    I had also converted one of the AP in stand-alone mode and then switch back to LWAPP mode using utility conversion of Cisco and re-entered the hash on the controller key.

    Had also "debug pm pki allows" to find errors, but absolutely nothing had been reported. Would it because the AP had already been involved before?

    Any ideas?

    See you soon,.

    -Trevor

    Hi Trevor,

    Commands and troubleshooting can be found here...

    Troubleshoot and configure the Module (WISN) initial installation of Services wireless

    http://www.Cisco.com/en/us/products/HW/modules/ps2706/products_tech_note09186a00808330a9.shtml

    I hope this helps.

  • Insider source subscription. Could not retrieve the client certificate

    Hi all

    I created subscription source initiated between two Windows 2008 R2.

    The source (client) cannot connect to the server. Logs on the client:

    Send the request for operation to the destination machine enumeration and the server.corp.domain.com:5986 port

    Authenticate the user using the Client certificate mechanism

    User authentication failed. The credentials did not work.

    Has received the answer of the layer network; status: 401 (HTTP_STATUS_DENIED)

    WSMan enumeration operation failed, error code 5

    Opens a session on the server.

    Sending HTTP error to the client after a failure of transportation.
    The HTTP status code is 503
    The error code is 995

    Could not retrieve the client certificate

    Send the HTTP 401 response to the client and disconnect the connection after sending the answer

    The user authorization failed with error 5Authorizing the user

    Authentication using client certificate with the client.corp.domain.com object is successfully

    How to fix the error "unable to retrieve the client certificate?

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Authentication PEAP with Cisco ACS 5.3 and Lotus Notes DB

    Hello

    I want to authenticate clients wireless against the name of user/passwords stored in a lotus notes database.

    Network: PEAP SSID-> Accesspoint-> controller-> ACS 5.3 WLAN 4404-> Notes DB

    Is this possible?

    I can connect to the attributes and ldap groups and query. but when I try to authenticate a user, I always get an error "object not found in the identity store.

    Bind test succeeds (> 100 groups and > 100 subjects.)

    EAP MSCHAP v2 is not taken in charge with LDAP by ACS

    You can use EAP GTC

    You should a begging utility that supports PEAP (EAP-GTC)

    such as ADU, Intel Proset, CSSC Cisco AnyConnect,... you can google for a list of applicants

    Open the new thread for cause of Apple

    ------------------------------------------------------------------

    Be sure to note the correct answers and report this thread as answered

  • After upgrading to 5.5.0.46, % error: could not launch the ADE-OS shell. Full disk

    Hi guys

    I upgraded from 5.3.0.40.9 to 5.5.0.46 using the upgraded application that has especially good except that CLI SSH access to the ACS does not work now. It allows me to connect, however immediately throws an error:

    % Error: could not launch the ADE-OS shell. The disk is full.

    I get the same error with a separate administrator account, but one of my colleagues IS able to connect without any problems.

    Any ideas? Thank you.

    Rama

    We were see this question quite frequently in cases where client upgrade from previous versions to ACS 5.5 because in an upgrade process, it also moves the database view and fills the / opt. In your case, it seems to be 100%.

    If this is the case you need to install patch of the roots and then erase the old newspapers. To do this, you must contact TAC.

    Latest version of ACS 5 we have a simple 'cleandb replace acsview' command that actually do the same thing but we don't have an option to connect via SSH.

    http://www.Cisco.com/c/en/us/TD/docs/net_mgmt/cisco_secure_access_contro...

    Kind regards

    Jatin kone

    * Make the rate of useful messages *.

  • Could not import the Wildcard on SAA certificate

    Hi all

    I'm trying to implement a GoDaddy Wildcard (*. mydomain.mytld) cert for a number of clubs, among which there is our ASA. I put away the old certs and did some housekeeping on their trustpoints, etc., with the result pretty much own config. (I'm on 8.3).

    I needed to register for the cert in a different area (Exchange 2010) and I exported the cert in cisco-pasteable format REB to make it ready for deployment ahead on the ASA. Here's what I've done (with cry ca debugging on), causing a failure to import the wildcard certificate. Can anyone shed light on what I'm doing wrong? What I was doing was essentially installation TP for root and intermediate and then import the actual device cert.

    The installation program two trustpoints for RootCA and intermediate TP:

    gate0 (config) # crypto ca trustpoint gdroot
    gate0(config-ca-Trustpoint) # Terminal registration
    gate0(config-ca-Trustpoint) # revo no
    ---------

    gate0 (config) # crypto ca trustpoint gdinter
    gate0(config-ca-Trustpoint) # register terminal
    domain name full mydomain.tld gate0(config-ca-Trustpoint) #.

    ----------------

    These authenticate:

    authenticate the cry ca gate0 (config) # gdroot
    Enter the base-64 encoded certificate authority.
    End with the word "quit" on a line by itself
    -BEGIN CERTIFICATE-

    -CERTIFICATE OF END-
    quit smoking

    INFO: Certificate has the following attributes:
    Fingerprints: [snip]
    Do you accept this certificate? [Yes/No]: Yes

    Certificate of the CA Trustpoint accepted.

    % Certificate imported successfully
    CRYPTO_PKI: Recording of Cert not found, return E_NOT_FOUND
    View the contents of the current certificate:
    1 certificate:
    SERIES: 00
    ISSUER: OU = Go Daddy class 2 Certification Authority, o = Go Daddy Group\, Inc., c = US
    CRYPTO_PKI: crypto_process_ra_certs (trust_point = gdroot)

    authenticate the cry ca gate0 (config) # gdinter
    Enter the base-64 encoded certificate authority.
    End with the word "quit" on a line by itself
    -BEGIN CERTIFICATE-
    -CERTIFICATE OF END-
    quit smoking

    INFO: Certificate has the following attributes:
    Fingerprints: [snip]
    Do you accept this certificate? [Yes/No]: Yes

    Trustpoint "gdinter" is a subordinate certification authority and is a non self-signed certificate.

    Certificate of the CA Trustpoint accepted.

    % Certificate imported successfully
    gate0 (config) # CRYPTO_PKI: Cert record not found, return E_NOT_FOUND
    CRYPTO_PKI: No appropriate trustpoints not found to validate the serial number of certificate: 0301, object name: serialNumber = 07969287, cn = Go Daddy Secure Certification Authority, or =http://certificates.godaddy.com/repository, o is GoDaddy.com------, Inc., l is Scottsdale, st = Arizona, c = US, name of the issuer: OU = Go Daddy class 2 Certification Authority, o = Go Daddy Group\, Inc., c = US.

    CRYPTO_PKI: Recording of Cert not found, return E_NOT_FOUND
    View the contents of the current certificate:
    1 certificate:
    SERIES: 0301
    ISSUER: OU = Go Daddy class 2 Certification Authority, o = Go Daddy Group\, Inc., c = US
    Certificate 2:
    SERIES: 00
    ISSUER: OU = Go Daddy class 2 Certification Authority, o = Go Daddy Group\, Inc., c = US
    CRYPTO_PKI: crypto_process_ra_certs (trust_point = gdinter)

    Import the "peripheral": wildcard cert

    Crypto ca import gdinter RECs
    ATTENTION: Registration certificate is configured with a complete domain name
    that differs from the fqdn of the system. If this certificate will be
    used for VPN authentication, this can cause connection problems.

    You want to continue with this registration? [Yes/No]: Yes

    % The FQDN in the certificate name will be: mydomain.tld

    Enter the base 64 encoded certificate.
    End with the word "quit" on a line by itself

    -BEGIN CERTIFICATE-
    -CERTIFICATE OF END-
    quit smoking

    ERROR: Cannot analyse or check the imported certificate
    CRYPTO_PKI: cannot define ca cert object (0 x 722)
    CRYPTO_PKI: status = 65535: could not get the key of the cert usage

    You can see a problem due to not have generated the CSR on the SAA (with ASA's private key) because you use a character generic cert.

    There is a here document which explains how to get around that.

  • I can't buy apps in Windows 8 Store: "your purchase could not be completed, something happened and your purchase could not be completed.

    When I try to buy an app out of the store, I get the message:

    "Your purchase could not be completed . " something happened and your purchase could not be completed '

    A new attempt of results in the same error.

    I tried most, if not all, solutions to this problem on the forums (definition of the location, date/time, reset the windows store, crossing the local profile cache, using several computers running different versions of Windows 8, using "sfc/scannow" in a command prompt, etc..)

    • This issue is not present on my windows phone 8 device.
    • At one point, I was able to buy apps with success.
    • I recently configured a VPN (Although disabling the VPN does not solve the issue)
    • I run 2 PCs of Windows 8 and use the same Microsoft Account for both
    • I recently transferred a XBOX live gamer tag to my Microsoft Account
    • I have a credit card and a PayPal account set up in my billing options
    • Recently, the PayPal account was not properly authenticate on my windows phone, I deleted and added it and it now works fine
    • In the account for the store settings (Windows + C |) Settings | Your account | Payment and Billing Information), he said: "before you can purchase an application, you must add a payment method to your account" when I click on add a doesn't MATTER.  To http://account.live.com billing options, there are two payment options clearly listed and functional.  What happens?

    That's all that I think I speak for the moment.  I know that Microsoft is currently changing parts of the Microsoft Account system, but I didn't know that an error like this would be because of that.  So I want to know what I can do to solve the problem immediately.

    Thank you

    OK, I solved the problem.  I still have questions using my PayPal account, but now I'm able to use my credit card.

    Here's what I did:

    1. Open the app Store
    2. Press the Windows key + C, then select settings
    3. Select the option menu: your account
    4. Select "Change user", then to connect to ANOTHER account. (I tried to simply connect to the same account again, and it did not work)
    5. Select the Add payment option (which should now work and load a menu)
    6. Close the menu and return to your old account using Exchange User
    7. Click on add payment option once again, it should now really open. (Assuming it wasn't before, that, for me, it wasn't)
    8. It will now allow you to add a payment, and I suggest strongly that add you payment options you have currently listed there.  I think there is a problem with the PayPal accounts in particular.
    9. Buy your favorite again, applications finally.
    10. Fact.

    My PayPal account still does not work after that.  Well, I think it has something to do with the settings "preferred payment method" Paypal.  It might be interesting to contact PayPal on this subject, because I am able to use regular credit cards perfectly well after this "correction".

  • Could not connect to the local user accounts

    We have the following configuration:

    1. the virtual machine.

    Windows Server 2008 R2.

    b. active Directory

    2 physical machine.

    Windows Server 2008 R2.

    b. connection to the Server VMware View 5.0.1

    3. the virtual machine.

    Windows Server 2008 R2.

    b. connection to the Server VMware View 5.0.1

    Machine #2, we have connected successfully with VMware View and on machine #3 we have the following error:

    2012-11-13 17:28:10, 164 DEBUG < MessageFrameWorkDispatch > [ws_winauth] any logged-on user as a local user (domain = XREN1)
    2012-11-13 17:28:10, 165 DEBUG < TP-Processor3 > [VDIContext] ADAM connection failed: com.vmware.vdi.common.winauth.WinAuthCodifiedException: failed authentication: could not connect to the local user accounts
    2012-11-13 17:28:10, 166 DEBUG < TP-Processor3 > [VDIContext] failed connection create ADAM: com.vmware.vdi.adamwrapper.exceptions.ADAMConnectionFailedException: failed authentication: could not connect to the local user accounts
    2012-11-13 17:28:10, 167 INFO < TP-Processor3 > [LoginBean] user all failed to authenticate to view administrator
    2012-11-13 17:28:10, 167 DEBUG < TP-Processor3 > [ViewFlexFactory] com.vmware.vdi.admin.ui.LoginBean.login ms 13

    did you install the second server conection as a Local Administrator?

    a second connection to the Member Server in the domain before you install the software?

    be as a member of the domain using an account with local administrator privileges to be sure area.

  • Exception: "could not validate SAML token.

    We have a configuration of rating system that we use to generate a PDF of Psalm we you connect through the EJB client and usually have had no problems. Until today. At some point today we started seeing some exceptions are thrown on the client:

    Caused by: com.adobe.idp.um.api.UMException | [com.adobe.idp.um.api.impl.AuthenticationManagerImpl] errorCode:16421 errorCodeHEX:0 x 4025 message: SAML - Assertion impossible to validate the token has expired and therefore not valid for user [administrator@DefaultDom]. Its valid until time [kill Feb 04 10:58:45 MST 2014] turns out to be before the current time [kill Feb 04 16:04:41 MST 2014]

    Bounce just the application server running the client code has solved the problem, but we would like to better understand what is happening and why. Nothing of what I can find in the docs seems to indicate the cause/solution and possible solutions have links which seem to no longer work: http://cookbooks.adobe.com/post_Renewing_the_context_to_handle_session_expiry-16410.html

    Any suggestions or insight would be greatly appreciated. Thank you!

    PROBLEM

    Using the same instance of ServiceClientFactory to call remote services exposed by the LiveCycle container can lead to

    exceptions related to the expiration of the assertion

    Solution

    To handle the timeout use the ThrowHandler mechanism provided by the ServiceClientFactory framework

    Detailed explanation

    LiveCycle provides a client sdk for java-based client call its services remotely.

    An invocation involves the creation of an instance of ServiceClientFactory setting user credentials in thefactory instance passes this factory to a customer of service or creating an InvocationRequest directly

    Use the client to perform the actual request.

    For more details, see Invoking

    LiveCycle ES using the Java API .

    An instance of ServiceClientFactory once created is valid for a certain

    period of time that is default 120 min., if the same instance is used to call beyond that period, while he leads to an exception indicating that

    the session has expired [com.adobe.idp.um.api.impl.AuthenticationManagerImpl]

    errorCode:16421 errorCodeHEX:0 x 4025 message: could not validate SAML

    Token - Assertion has expired and therefore not valid for the user

    [administrator@DefaultDom]. Its valid until time [Thu Oct 22

    17:07:53 IST

    2009] turns out to be before the current [Thu Oct

    [22 17:58:18 2009 IST]

    This isn't a problem if the ServiceClientFactory instance is used for a short time. However if you want to make a long

    the task as great conversion number of documents to PDF, applying the policies their etc., then it would be a problem.

    Session time-out

    Before fxing the question some info on what is session time-out.

    • When you use an instance of ServiceClientFactory to invoke service suite fow arrives
    • You set credentials in the properties and call the service
    • LiveCycle server side validates the credentials and issues a context. It's the kind of a ticket which can be reused later rather than the actual credentials.
    • After receiving the response from the server the ServiceClientFactory instance deletes its own copy of credentials and instead stores the context for calls more later on that this instance of context is passed instead of the credentials of the user
    • This fow everything is done to ensure that the credentials of the user are not sent for each remote call, thus improving security.

    For more information about the context, refer to

    Identity of the user in LiveCycle .

    Solution

    Fx this problem you need to re authenticate to LiveCycle and get the context new draw. the best way to do this is to use the ThrowHandler provided by the ServiceClientFactory framework

    Step 1 - create a Throwhandler

    ______________________________________________________________________ ______________________________________________

    /**

    * This ThrowHandler caches the credentials of the user and use them

    to update the framework in the

    * ServiceClientFactory to expiration.

    */

    private public static class SimpleTimeoutThrowHandler implements

    {ThrowHandler}

    private String username;

    private String password;

    public SimpleTimeoutThrowHandler (String username, String

    {password)

    me.username = username;

    This.password = password;

    }

    public boolean handleThrowable (Throwable t, ServiceClient

    SC,

    ServiceClientFactory EFC, MessageDispatcher md,

    IR InvocationRequest, int numTries) survey

    {DSCException}

    {if (timeoutError (t))}

    The call to AuthenticationManager does not require

    the authentication if the default properties

    are the people

    AuthenticationManager am =

    New

    AuthenticationManagerServiceClient (ServiceClientFactory.createInstance (getDefaultProperties()));

    AuthResult ar = null;

    try {}

    AR =

    AM. Authenticate (username, Password.GetBytes ());

    } catch (UMException e) {}

    throw new IllegalStateException (e);

    }

    Context ctx = new Context();

    ctx.initPrincipal (ar);

    Refresh the ServiceClientFactory instance with

    the new context

    scf.setContext (ctx);

    Logger.info ("refresh the related context

    ServiceCLientFactory");

    Now say CFS to try again, the invocation

    Returns true;

    }

    Check so that we do not again wrap the exception

    If (t instanceof DSCException)

    throw (DSCException) t;

    If (t instanceof RuntimeException)

    throw (RuntimeException) t;

    How is it possible to get that much?

    throw new IllegalStateException (t);

    }

    Private boolean timeoutError (Throwable t) {}

    If (!) () t.getCause () instanceof UMException)) {}

    Returns false;

    }

    UMException EU = t.getCause ((UMException));

    Check that UMException is due to the

    expiry of the assertion/context

    if(UMConstants.errorCodes.E_TOKEN_INVALID ==)

    {ue.getErrCode ()}

    Returns true;

    }

    Returns false;

    }

    }

    ______________________________________________________________________ __________________________________________

    This ThrowHandler would be invoked by the ServiceClientFactory to receipt of any exception. The manager would then determine if it's a timeout on the exception and then update the context associated with the instance of the factory and told him to retry the invocation.

    STEP - 2 record Manager

    ______________________________________________________________________ __________________________________________

    ServiceClientFactory.installThrowHandler (new

    SimpleTimeoutThrowHandler (username, password));

    ______________________________________________________________________ __________________________________________

    Note: the Manager should be listed only once in the application

    STEP 3 - make your invocation

    Following example would try to apply policies to all the fles present in a directory

    ______________________________________________________________________ __________________________________________

    Properties p = getDefaultProperties();

    p.setProperty (DSC_CREDENTIAL_USERNAME, username);

    p.setProperty (DSC_CREDENTIAL_PASSWORD, password);

    EFC ServiceClientFactory =

    ServiceClientFactory.createInstance (p);

    Now, to make a long running operation

    String inputDirName = "path-of-entry-dir";

    String outDirName = "path - to the-out-dir";

    String policyName = "the-policy-name ';

    Download the file = new File (inputDirName);

    Folder outDir = new queue (outDirName);

    RightsManagementClient rmClient = new

    RightsManagementClient (CFS);

    DocumentManager docManager = rmClient.getDocumentManager ();

    Iterate over all in the inDir pdf and apply the

    policies. If it takes a

    {for (file pdfFile: {inDir.listFiles ())}

    The inDoc document = new Document (pdfFile, false);

    Document securedDoc = docManager.applyPolicy (inDoc,

    pdfFile.getName (), policyName, null, null, null);

    securedDoc.copyToFile (new

    File (outDir, pdfFile.GetName ()));

    }

    ______________________________________________________________________ __________________________________________

    Now the invocation would end even if it takes a lot of time. If any session time-out occurs then our ThrowHandler would take care of it.

    Here's a sample:

    TimeOutSample.zip

  • Could not import the 5S for macbook pro

    Since the last update of my 5s, two days ago I can no longer import pictures for macbook pro.

    "Pictures in the film"the ___ iphone cannot be imported because the device is locked with a password"but it is not."  Can and would someone please help. "Thanks I also:" iTunes could not connect to the iphone '-iPhone "because an invalid response was received from the device.

    On the phone, try pressing these buttons at the same time for at least ten seconds, until the Apple logo appear: the sleep/wake button and the Home button. On Mac, it just reboot and then try again.

Maybe you are looking for