我正在尝试使用python进行Active Directory查询 . 我一直在使用python-ldap3模块,但我对其他python库开放 . 在Windows系统上,有没有办法使用当前用户的令牌连接到LDAP服务器?

例如,windows apis公开了使用当前用户's token (if you don' t提供用户名和密码的方法,或者您可以指定用户名和密码(https://msdn.microsoft.com/en-us/library/system.directoryservices.directoryentry(v=vs.110).aspx) . 虽然提供的用户/密码不是't mandatory parameters with python-ldap3, if they aren't,但它使用匿名身份验证 .

我想要的是以下类似的东西作为当前用户:

>>> conn = Connection(server, auto_bind=True, authentiaction="NTLM")

这有可能与任何当前的库?