无法使用python2.7访问Active Directoy

时间:2017-03-10 08:21:28

标签: python python-2.7 active-directory

我尝试过使用Windows的Auth0,但它只是一次试用。 GUI应用程序可以访问本地Active Directory用户和计算机。使用

我正试图找出最简单的实施方式。

1 个答案:

答案 0 :(得分:0)

https://docs.python.org/2/library/os.path.html

import os

path = "your path"

# Check current working directory.

retval = os.getcwd()
print "Current working directory %s" % retval

# Now change the directory
os.chdir( path )

# Check current working directory.
retval = os.getcwd()

print "Directory changed successfully %s" % retval