the use of afcs.php to implement external authentication

We tried to follow the examples in the Cocomo Developer Guide and the sample application to start the implementation of an external authentication solution.  Our request for logon or the sample provided in the SDK work for us.  Both fail when you try to connect with the same errors in the server log:

PHP Fatal error: Eception exception 'AFCSError '...

We found an example for how the call of our test server command-line and were preparing to get a picture more complete of how it is a failure. The answer: < = result code "unauthorized" > seems to us that the service does not allow our adobe account authenticate:

PHP afcs.php - debug - host = http://ConnectNow.Acrobat.com OurAdobeAccount <OurUsername> <Ourpassword>

$Revision: #4 $ - $Date: $2009/09/28

http_get: http://ConnectNow.Acrobat.com/ OurAdobeAccount? mode = xml & accountonly = true &

< result code = "unauthorized" >

" < baseURL href = ' https://na2.connectnow.acrobat.com:443 / "/>

" < authentication href = ' https://services.Acrobat.com/account/WSAPI/auth/v1 "/ > "

< / result >

http_post: https://services.Acrobat.com/account/WSAPI/auth/v1 < application > < user name > OurUsername < / username > < password > Ourpassword < / password > < / request >

Table

(

[Content-Type] = > text/xml

)

Error: exception 'AFCSError' in /usr/local/apache2/htdocs/rg/afcs.php:575

Stack trace:

#0 usr/local/apache2/htdocs/rg/afcs.php(64): CAA-> http_post (Object (SimpleXMLElement), ' < application > < usern...', Array)

#1 usr/local/apache2/htdocs/rg/afcs.php(229): AFCSAuthenticator-> login ('OurUsername', 'Ourpassword', Array)

#2 usr/local/apache2/htdocs/rg/afcs.php(636): AFCSAccount-> login ('OurUsername', 'Ourpassword')

#3 {hand} >

We have searched through the forums and it does not look like other users have the same problem.  We tried two different accounts of Adobe and these two not in the same way.
You can provide any help would be greatly appreciated

Line 575 in afcs.php is:

573: $fp is fopen ($url, 'r', false, $context);.

574: if (! $fp)

575: throw new AFCSError("connection-failed");

This means that the POST for the authentication service did not pass. I think you should be able to find more information about the actual error in the PHP error log, but my guess is that you haven't installed SSL module (this is a common mistake, since SSL is disabled by default). Now I can not find how to properly configure PHP to POST https URL right, but if you still need it I can get this information in the future.

Meanwhile, check your PHP error log and see if it's the actual error.

Tags: Adobe LiveCycle

Similar Questions

  • Satellite P200 - problem with the use of disk HARD original as external drive

    I've been pulling on my hair for a month now and could do with help

    I have a Satellite P200 series PC laptop and have recently updated from the 200 GB for a pair or 320 GB HARD drive. No problem

    The question I have is that the old drive of 200 GB system I am unable to use it in any other machine or according to and external storage device.
    The original secondary disc works fine few matter where I use it... (In my PS3 at the moment)

    When I install the orgional system drive in my laptop and rebuild windows it it still works 100%.
    Hance a good work of 200 GB of HARD drive.
    Take it out and serve in another machine of storage that it won't - boot all I get is cyclic redundancy errors

    I formatted, low level run endless disk tools
    WD test came back with diagnostics Test::Read 11 - cable sector error!

    Even as a drive on the original laptop is the same

    All ideas taken with gratitude that I don't want to lose a good 200 GB HARD drive

    Thank you very much
    Roger

    Hello!

    The external box is maybe defective, because you said that the HARD drive works in your laptop and the PS3 without problem.
    You can test the HARD drive in another external case?

    WD test unknown to me but I always use the Drive Fitness Test:
    http://www.HitachiGST.com/HDD/support/download.htm#DFT
    With the Drive Fitness Test, you can test your HARD drive. Download the CD image, burn it to a CD and boot from it. You can then the HARD drive.
    On the same site is a user's guide if you want to know more.

    Good bye

  • The use of recovery of product with external devices?

    I have a laptop Toshiba Satellite and it is that I wanted to re - format my windows XP. But I realized that my CD Player no longer works so I decided to put my external CD burner on my pc.

    When the laptop is turned on, the CD is well recognized from this source. But now, my problem is that I can't find a way to boot the CD in the external drive (USB-Boot).

    How can I do? Or someone has a better solution for me to format my laptop because the internal CD player does not work? (I already tried in BIOS for external devices as the first boot device, does not :-()

    Unfortunately the guy... I have bad news for you.
    Boot from the external USB CD/DVD drive is not possible. BIOS do not support this feature.

    If you need to boot from the CD, you will need to purchase a new, compatible internal CD/DVD drive and supported.

    Note that not all CD/DVD slim line drives are supported because different master/slave/c-salt settings.
    Usually, the user manual should provide information on the supported CD/DVD burner.
    If this isn't the case, then ask the maintainer authorized Toshiba and a compatible player.

    Best regards

  • The use of PHP in a dreamweaver site? Help!

    Hello

    I have a question regarding the use of a PHP script in my Web site. Do I have to convert the XHTML page? If there is anyone that could help I would be very grateful.

    1 million thanks!

    John

    In order to see the PHP make you have to publish your site to a server or have PHP installed locally to run it. I publish just the Web site in an obscure folder (so no one can get to it).

  • the external authentication server configuration

    What is the difference with option 'a' (compared to the 'b' option) what configuration of an external authentication server?

    a. configuration | System | Servers | Authentication

    b. configuration | User management | Groups | Authentication servers

    Is it correct to assume that the 'b' option allows for the configuration of external servers for specific groups? Why should I use option 'a '? Thanks in advance.

    OK, option b allows you to set a server authentication for a specific group, while option 1 defines a server authentication for all groups. If option b is set then this server is used for authentication to this group only and overrides whatever it is defined in the option. If it is not set, then the option is used.

  • Setting up external authentication

    In Section 6.4 of the LCC Developer Guide, under the description of the workflow, step 3 States: "Develop scripts as described in the documentation of the script."

    Specifically, what documentation is meant here?

    Thank you.

    Hello

    This is so the documentation refers to the documentation for the scripting language specific, you use external authentication.

    If you unpack our application, you will find a folder named ServerIntegration with libraries of supply required to implement external authentication of different scripts such as php, ruby, python, coldfusion and so on. Each of these script file contained the respective script as well as the README files on the way to setting points and so on.

    In addition, you will find examples of the use of our API server to Server (external authentication being communication Server2Server) with these different scripts under sampleApps/Server2Server/folder. These examples also have the README files for installation.

    The answer to your question are all these README files.

    Hope this helps

    Thank you

    Hironmay Basu

  • External authentication via the PHP script failed

    I'm not a PHP genius - in fact I'm not a backend coder so I'm kinda struggeling with the sample scripts - I still hope for a sample of CF....

    I'm trying to run and connect to the CAA via the command line (Terminal). I'm not sure what I'm doing wrong - this is what I'm passing:
    PHP f /Applications/MAMP/htdocs/afcs.php args - debug - host = my_pass, http://connectnow.acrobat.com, fcguru, my_login

    The username and password I spend are correct. However, I get this response:
    Error: message exception 'AFCSError' with ' < State response 'error' = >
    < error code = "AUTH_FAILED" >
    < msg > failed authorization < / msg >
    < / error >
    < / answer >
    ' in /Applications/MAMP/htdocs/afcs.php:86

    Really struggeling with this. Once again I get this working from the command line, I don't know how to call it from a script instead. I use CF on the backend, no PHP.

    Kind regards

    Stefan

    Thank you, this is very useful. It seems that I can now connect from the Terminal so that's a good start. Also, I did not see external authentication in PHP for example - I must have been blind.
    I'll see how far I get with that. What I'm trying to do is spawn new rooms based on a template on the fly, and I have some doubts, I'll be able to understand this myself.

  • How can I keep IE and FireFox Favorites in local sync to my PC only, without the use of an external server or import/export?

    FireFox Sync is not an option, because the use of an external server is not allowed.
    Use of third-party modules is not really an option.
    Import/export is inefficient because it is not put them in the same exact place in every browser.

    I am happy to be able to use the same favorites/bookmarks file if it is an option.

    Thank you

    You do not have.

    Sorry, IE and Firefox use different methods of storage Favorites / Bookmarks to data that are not compatible with the other program.

  • The use of two monitors external and Tecra M5

    Hello

    I was employed to work with two screens of 17 "connected to a computer monitor in extended desktop mode, ii just changed job and now I have the following configuration:

    a Toshiba laptop connected to the Toshiba Tecra M5 docking station and an external 17 "monitor connected to the port of digital dockstation which works very well.

    I also have connected another monitor 17 "external to the Dockstation RGB port but Black Guard

    I ' ts really terrible work like this switching between the 17 "monitor and the computer monitor small toshiba laptop.

    What I would like is to work with the monitor two external 17 "and keep the laptop monitor off, or if possible.

    Any ideas?

    Any help will be very welcome
    Husband PAz

    Hello

    What docking station do you use?

    Advanced Port Replicator III or Advanced Port Replicator III more supports the use only if the laptop itself also support the simultaneous use of RGB & DVI.

    I don t think that Tecra M5 can do

  • Question about the use and connection of external mini HDD

    I am the owner of a satellite A30 714, which has only 2 usb ports, and I just bought a mini hard drive (toshiba also), which requires the use of 2 usb ports, which means that I won't have any left port for mouse or something else.

    The hard drive has an optional port of AC, but I can't find in the manual of the energy required to buy a compatible cable, so I'm asking for suggestions... can I use a multi usb hub or it will not provide enough energy? What is the cable AC adapter that I should try to find?
    find a solution in the firewire port? (the computer has a port alternative mouse).
    Can I install an additional usb port?

    can someone help?
    Helena

    Hello

    The fact is that a single USB port provides about 500 my.
    If HARD drive Manual requires the use of two ports USB together if the HARD drive needs more power than a USB port can provide.
    Of course, you can try using a USB hub, but please check if the USB hub supports an external power supply. It is important.
    I don't know where you can find the power supply for the external HARD drive. You said that it is a product of Toshiba. Well, maybe you can order the cable of the Toshiba service partner in your country.
    But first of all I would like to ask the dealer who sold you this HARD drive.

    I'm not sure the firewire port, because you need an adapter "USB to Firewrier '.
    But I can't find any.

  • Questions about the use of an external audio card (PCMCIA or USB)

    Hi all

    We know most or all W510 or other models of ThinkPad with Conexant HD SmartAudio 20585 are affected by the poor quality of the sound.

    I have a few questions to ask, because I have not used or tried before external sound card.

    1 - is the external PCMCIA / its USB, card work with speakers inside the machine?

    2. If the built-in speaker can work with external PCMCIA / USB sound card, is the sound quality and volume of music being improved?

    Thank you

    Peter

    Hi PeterTWJ,

    (1) would like to know what you mean by work with the built-in speakers? u means you want to use an external sound card to drive the speaker built into the laptop?

    I want to say that external USB sound/PCMCIA card does the built-in speaker allows you only to speaker external drive.

    I tried the smartaudio/volume control. You can set default 1...

    http://DL.dropbox.com/u/7387120/smart.PNG

  • A question about external authentication with PHP OCI8 using a portfolio store

    Hello
    SQL> SELECT * FROM v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE     11.2.0.1.0     Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    SQL> 
    OS: Linux Fedora Core 17 (x86_64)
    PHP Version: 5.4.14
    Apache version (httpd): Apache/2.2.23 (Fedora) 
    I have a question about OCI8 connection to the Oracle server via portfolio, which I understand is a good practice because we do not have to hard code the users password. I'm trying to read pages 117 and 118 of the book The Underground PHP and Oracle manual online to learn how to set up a portfolio. I proceeded by steps as explained in these two pages (except that at the end I connect, as a normal user, not a privileged user) yet, apparently PHP does not detect the user.

    Here's what I write in my script
    $connection = 
                    oci_connect 
                        (
                            "training", 
                            "", 
                            "php_ora_usr", 
                            "AL32UTF8"
                        );
    the training is the name of the user that I use in my PHP scripts to connect to the oracle database and the password is mypassword (is not true, just for the purpose of this thread :)) the code above gives me the following error:)
    Warning: oci_connect(): ORA-01005: null password given; logon denied in /var/www/html/myscript.php on line 91
    
    Fatal error: Connection step: ORA-01005: null password given; logon denied in /var/www/html/myscript.php on line 13
    But if I also provide the password which is,
    $connection = 
                    oci_connect 
                        (
                            "training", 
                            "mypassword", 
                            "php_ora_usr", 
                            "AL32UTF8"
                        );
    Obviously it works, but at the same time, this means that my wallet is not operational.

    So I'll write here, step by step, how I did according to the instructions contained in the pages 117 and 118 of the above mentioned book and I would be grateful if you could kindly tell where I made the mistake (s)

    The following text was performed under my oracle linux (so the dbagroup)

    Step 01:_
    I created and provided the password for the directory of portfolio
    mkstore -wrl /home/oracle/wallet_dir -create
    Step 02:_
    I created an entry for my oracle user that will be used in my PHP scripts to connect to oracle
    user: training
    password: mypassword
    mkstore -wrl "/home/oracle/wallet_dir" -createCredential php_ora_usr training mypassword
    I also checked that the entry was actually created for my user in the portfolio
    $ mkstore -wrl "/home/oracle/wallet_dir" -listCredential
    Oracle Secret Store Tool : Version 11.2.0.1.0 - Production
    Copyright (c) 2004, 2009, Oracle and/or its affiliates. All rights reserved.
    
    Enter wallet password:                
       
    List credential (index: connect_string username)
    1: php_ora_usr training
    $ 
    Step 03:_
    I added the following to my $TNS_ADMIN/tnsnames.ora
    .  .  .
    php_ora_usr = 
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = db02)
        )
      )
    .  .  .
    Step 04_
    I added the following to my $TNS_ADMIN/sqlnet.ora
    # sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    
    ADR_BASE = /u01/app/oracle
    
    WALLET_LOCATION =
        (SOURCE =
            (METHOD = FILE)
            (METHOD_DATA =
                (DIRECTORY = /home/oracle/wallet_dir)
            )
        )
    SQLNET.WALLET_OVERRIDE = TRUE
    SSL_CLIENT_AUTHENTICATION = FALSE
    SSL_VERSION = 0
    _ Step 05
    The TNS_ADMIN environment variable is already set correctly in * / etc/sysconfig/httpd * so I didn't need to do something for this step


    Step 06_
    I gave to access Apache (as root) in the directory of portfolio (in fact, it seems that the user oracle (dba) of linux also has the required privileges to grant this access to the apache)
    # setfacl -m u:apache:rx /home/oracle/wallet_dir
    # setfacl -m u:apache:r /home/oracle/wallet_dir/{cwallet.sso,ewallet.p12}
    Step 07_
    Restart Apache
    # service httpd restart
    Step 08_
    Finally make a test connection using the connection string php_ora_usr which the entry was created earlier. And the test was not successful, as indicated above
    $connection = 
                    oci_connect 
                        (
                            "training", 
                            "", 
                            "php_ora_usr", 
                            "AL32UTF8"
                        );
    The error message:
    Warning: oci_connect(): ORA-01005: null password given; logon denied in /var/www/html/myscript.php on line 91
    
    Fatal error: Connection step: ORA-01005: null password given; logon denied in /var/www/html/myscript.php on line 13
    I would appreciate it if you could kindly shed some light.

    Thanks in advance,
    Dariyoosh

    That gives a good clue to begin with. With your platform/Apache/DB, you might need different ACLs. Test directory and permissions. Check what euid your Apache runs as. Good luck.

  • How to use the character (%) wild for php/DW research?

    I am trying to create a search engine that searches in the database to print documents on the basis of several criteria defined by the user.

    DW uses sprintf() to compile the MySQL query.

    I have my attempts to find a portion of a string that should come back to something like -'% xyz %' to give results like "xyzabc abc'"

    But as sprintf uses %s defined by the user to take the values of '%' is a special character.

    I tried to use: % s %%, / % s/%, \%%s\%, but nothing works. There is no error, but the php page opens not at runtime.

    How to find a sub string in the database using the query written in php using sprintf?

    All Solutions?

    pp140 wrote:

    I am trying to create a search engine that searches in the database to print documents on the basis of several criteria defined by the user.

    DW uses sprintf() to compile the MySQL query.

    I have my attempts to find a portion of a string that should come back to something like -'% xyz %' to give results likexyabc abc'

    As you have discovered, sprintf() using %s as a placeholder for the string. The % wild card must be in your channel. It is an example of my book for Dreamweaver CS4:

    $query_getAuthors = sprintf("SELECT first_name, family_name FROM authors  WHERE first_name LIKE %s OR family_name LIKE %s ORDER BY family_name ASC",     GetSQLValueString("%" . $colname_getAuthors . "%", "text"),     GetSQLValueString("%" . $colname2_getAuthors . "%", "text"));
    

    Two instances of %s in the sprintf() function are replaced by the values passed to GetSQLValueString(). In both cases, the wildcard character is concatenated to the variable passed as the first argument of GetSQLValueString().

  • PHP external authentication problem

    Try to connect to the CAA connection using external authentication.

    PHP file generates a key properly and everything seems fine until I get the wrench inside flex.

    at the stage of connection I get the following error in the console of the library connect call trace

    As much as I can say that everything is just... How can I tell what is the problem with the authentication key?

    AFCS Beta Build #: 1.1
    requestInfo https://ConnectNow.Acrobat.com/ {roomname}? exx = 2Qx jcm9iYXQuY29tL2hpaW50ZXJmYWNlL2RtOjEwMDo4N2NmNWUwMjIzZTVhMmFkYzI2MmY4MDVlNWJmMWVlM2Y4OTJlY eDp7dXRmOF9lbmNvZGUoZGFyaXVzKX06OmRtOmFnZW50ZG06aHR0cHM6Ly9jb25uZWN0bm93LmF & mode = x & xml = 0.2519759591668844
    Bad ERROR # key authentication #THROWING

    There are a few errors in the key. There are a few PHP 'code' in it (expansion of the evil chain?) and that you use a URL full instead of the name of the room.

    If you want more details, send me a private message, but you should check how you call the method to get authentication token.

  • Firefox OSX 10.7.5 25.0.1 forces the use of default input source, why?

    Hello

    I have not noticed this in previous versions of Firefox, but OSX 10.7.5 25.0.1 version requires the use of the input source by default (e.g. my laptop, instead of the external keyboard connected keyboard).

    All other input devices are grayed out in the language & entry drop-down toolbar when the Firefox application is in short. This does not happen with any other application on my desktop.

    I think that's the question relates to this subject also:

    https://support.Mozilla.org/en-us/questions/977966?ESAB=a & As = AAQ

    See you soon,.

    Sunkai.

    Well, it's a broader issue to do with the question of whether the keyboard drivers that are installed are compatible with 32-bit and 64-bit applications.

    Firefox starts in mode 64-bit OSX by default, and if your keyboard drivers are 32-bit only, then this input source is not usable and is grayed out.

    Discussion of this for the British provisions can be found here:

    http://www.Gyford.com/Phil/writing/2005/11/20/using_a_british.php#c285152

    the British 64 - bit drivers layout can come from here:

    http://Liyang.Hu/OSX-British.XHTML

    If you have problems with your own keyboard, with a provision of another country, you will need to find drivers 64-bit for this layout.

Maybe you are looking for

  • HP pavilion d4790y windows Vista cannot connect to internet unless you use WEP wireless

    I have a HP Pavilion with Windows Vista 32 bit home premium d4790y.  I can connect to my ISP wireless router using the HP internal network adapter, but the connection between the router and the internet does not work unless I downgrade the router sec

  • Can't scan with HP Officejet 6500 E709n Wireless

    I've used the scanner before without any problem. I have Windows Vista. I tried to scan yesterday and got the message: no scan options and refer to the documentation for the device. I ran the diagnostic analysis, HP Scanner TWAIN of the scanner did n

  • Western Digital drive hard problem; Forced to Format

    I have been using an external hard drive Western Digital Home Edition 500 GB with Windows Vista for more than 8 months without any problem.  Recently, I used the hard drive on a computer running Windows XP (also without any problem).  Now, the hard d

  • Load GroupDataModel data in a JSON file?

    I have a ListView in QML using a RPC GroupDataModel that is created from a .json file in the assets folder. The items in this list are removed and added to. CPP how can I get the GroupDataModel data in the JSON file? I know that it is this: JsonDataA

  • 'unidentified network' but connected to wifi

    When I try to connect my laptop to the modem wifi then wifi is connected but internet cannot be 'unidentified network' access appears please help me I have tried almost every possible change.