我正在尝试使用Kerberos身份验证连接到配置单元。但我收到错误“NotImplementedError:authMechanism is not supported or not implemented”
我想我需要将authMechanism设置为Kerberos。在
import pyhs2
with pyhs2.connect(host='wx0000',
port=10000,
authMechanism="Kerberos",
user='xxxxx',
password='******',) as conn:
从源代码来看,authMechanism是区分大小写的,所以您需要它是“KERBEROS”。在
只要运行脚本的用户具有有效的kerberos票证或密钥选项卡,此连接字符串就可以工作:
用户名、密码和任何其他配置参数都不会通过KDC传递。在
相关问题 更多 >
编程相关推荐