【问题标题】:Having trouble using python2.7 to access Active Directoy使用 python2.7 访问 Active Directory 时遇到问题
【发布时间】:2017-03-10 08:21:28
【问题描述】:

我尝试在 Windows 中使用 Auth0,但它只是一个试用版。假设 GUI 应用程序可以访问本地 Active Directory 用户和计算机。按用途

我正在尝试找出最简单的实现方法。

【问题讨论】:

  • 我用过这个链接,只是在GUI设计上不清楚链接到源代码。我仍然是 python 编程的新手。
  • 请发布您的代码。

标签: python python-2.7 active-directory


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-08-05
    • 1970-01-01
    • 1970-01-01
    • 2015-07-08
    • 1970-01-01
    • 2013-01-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多