AnsweredAssumed Answered

Accessing PIWebAPI from Python outside domain

Question asked by Nocodes79 Champion on Feb 7, 2017
Latest reply on Jun 9, 2020 by SantoshZenith

Hi all,

 

I was wondering if there is anybody who has a working example of Python connecting to PIWebAPI working with kerberos authentication (using requests-kerberos helper) from a machine which is outside the PI Web API domain.

 

I mean, I have tried using principal="user@REALM:password" to force explicit login (I am in a Windows machine), but I keep getting a 401 error.

 

Just to be sure, is REALM to use the typical Windows realm? For example my INDRA domain translates to INDRA.ES. i.e. the realm I get launching %USERDNSDOMAIN% from an MS-DOS prompt

Outcomes