在mac上使用pypsrp时,Python协议kerberos不可用

2024-04-29 13:27:53 发布

您现在位置:Python中文网/ 问答频道 /正文

当我在macOS上使用代码时,它不工作(在Ubuntu上工作),并导致错误:

ValueError: Protocol kerberos is not available

from pypsrp.client import Client from pypsrp.powershell import PowerShell, RunspacePool from pypsrp.wsman import WSMan wsman = WSMan(server=powershell_config.exchange_server, path="PowerShell", port=80, username=powershell_config.exchange_username, password=powershell_config.exchange_passwort, ssl=False) with RunspacePool(wsman, configuration_name="Microsoft.Exchange") as pool: ps = PowerShell(pool) ps.add_script(ps_code) output = ps.invoke()

在mac(BigSur)上运行我会错过什么

当我在终端中键入“kinit”时,它会尝试连接

谢谢

编辑:已安装gssapi


Tags: fromimportconfigexchangeserverusernamemacosps