Skip to content

Connection problem decpite verfied login credentials: 'Cannot connect to #738

Answered by Hugovdberg
TheBaluu asked this question in Q&A
Discussion options

You must be logged in to vote

You mention Windows authentication, so I guess you try to connect with a Windows account, is that right? By default a username/password combination is interpreted as a PI user. For Windows authentication you need to set the authentication mode:

import PIconnect as PI
from PIconnect.PIConsts import AuthenticationMode

with PI.PIServer(username=..., password=..., authentication_mode=AuthenticationMode.WINDOWS_AUTHENTICATION) as server:
    ...

Does it work for you using that option?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TheBaluu
Comment options

@Hugovdberg
Comment options

Answer selected by TheBaluu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants