[英]Having trouble using python2.7 to access Active Directoy
I tried using Auth0 from Windows, but its only a trial. 我尝试从Windows使用Auth0,但这只是一个试用。 The GUI application is suppose to have access to the local Active Directory Users and Computers.
假定该GUI应用程序可以访问本地Active Directory用户和计算机。 By use
通过使用
Which I am trying to figure out the simplest way to implement. 我正在尝试找出最简单的实现方法。
https://docs.python.org/2/library/os.path.html 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.