CreatePDF & Windows Authentication

By Ryan - January 20, 2015


Hi, I've added the create PDF add on to our local intranet and it works perfectly. However when I enable Windows Authentication (a requirement) I get the following error when trying to generate PDF's.

Error: Authentication Required
Exit with code 1 due to network error: AuthenticationRequiredError

Any ideas on how to get around this?

Ryan

By Ryan - January 21, 2015

Hi Claire,

Managed to figured it out.

I created a local user account on the server called createpdf and added the username and password to the CREATEPDF_CUSTOM_SWITCHES on the createPDF.php page.

$GLOBALS['CREATEPDF_CUSTOM_SWITCHES']  = '--username localhost\createpdf --password YourPassword';

Ryan

By claire - January 21, 2015

Thanks very much for posting the solution! I'll ask for this to be added to the readme for this plugin.

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

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/