Skip to main content

An Object-Oriented Active Directory management framework built on ADSI

Project description

code style: black

Introduction

pyad is a Python library designed to provide a simple, Pythonic interface to Active Directory through ADSI on the Windows platform. Complete documentation can be found at http://jcarswell.github.io/pyad/. Code is maintained at https://github.com/jcarswell/pyad. The library can be downloaded from PyPI at https://github.com/jcarswell/pyad.

Breaking Changes from upstream

ADObject:

  • _get_password_last_set - Act’s like AD and returns 1970-01-01 if the date can’t be parsed

  • get_last_login - Act’s like AD and returns 1970-01-01 if the date can’t be parsed

Importing pyad directly exposes set_defaults, ADQuery, ADComputer, ADContainer, ADDomain, ADGroup, ADUser, from_cn, from_dn, from_guid. Importing pyad.pyad no longer imports the sub modules

Most ADObject update methods now take flush as an optional argument that defaults to True to maintain compatibility with upstream code. For large updates it’s recommended to set this to False until you are ready to write out the change, otherwise you may run into a back-off period in AD where all further changes will fail.

Requirements

pyad requires pywin32, available at https://github.com/mhammond/pywin32.

Testing

To run unittest you will need to set the configuration to be specific to your environment. To do this you will need to edit config.py located in the tests folder.

License

pyad is licensed under the Apache License, Version 2.0 (the “License”). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_win_ad-0.6.3.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

python_win_ad-0.6.3-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file python_win_ad-0.6.3.tar.gz.

File metadata

  • Download URL: python_win_ad-0.6.3.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.18

File hashes

Hashes for python_win_ad-0.6.3.tar.gz
Algorithm Hash digest
SHA256 703d746eecfefbd8370c50758f55b85c2384d3f9cb3c2022dae92abe0c0dc7b6
MD5 559099b9fea0a9cd0c5282f743855cb5
BLAKE2b-256 a04d62e63ceeda74e3d22efe3d18b77b59b3a02e70721b78547bb587f7e8d9e3

See more details on using hashes here.

File details

Details for the file python_win_ad-0.6.3-py3-none-any.whl.

File metadata

File hashes

Hashes for python_win_ad-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 82cdec77595c005660241b31bc9cd05795569c402a7d2367ea60ed3c67d3e5d7
MD5 898ee0a9b54105a958b2343ac7af2686
BLAKE2b-256 05f96354f8fd092d365ce9d25573b90ac6347047ad8270f480d82d4c1968c0a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page