- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-08-2012 01:49 PM
Hello,
I was trying to use the PAN::XAPI module provided in the PAN-perl-20120107.tar.gz package and I ran into an issue. When I try to use PAN::XAPI to make request using the API key specified in my .panrc I recieve "User not authorized to perform this operation" error messages.
When I try accessing the API via other methods (i.e. manual entry into a web browser and scripts that don't use PAN::XAPI) it works fine. Judging from output that I was able to see for a debug, it looks like the PAN::XAPI module is actually URL encoding the key, which causes issues.
Does anyone have any recommendations?
05-09-2012 11:06 AM
Solomon - this is known issue in Panperl. Yeah you are right that pan perl is encoding already encoded key. We are planning to fix this in the next release.
For now please generate a key that works and provide it in .panrc file and continue using it.
Thanks,
krishna
Krishna Somu
Technical Marketing Engineer, Palo Alto Networks
408 753 3896 (office)
650 823 7086 (mobile)
05-09-2012 11:06 AM
Solomon - this is known issue in Panperl. Yeah you are right that pan perl is encoding already encoded key. We are planning to fix this in the next release.
For now please generate a key that works and provide it in .panrc file and continue using it.
Thanks,
krishna
Krishna Somu
Technical Marketing Engineer, Palo Alto Networks
408 753 3896 (office)
650 823 7086 (mobile)
06-06-2012 06:47 AM
I had the same issue and the trick is to keep generating the API key untill it consists letters and numbers ONLY
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!