This python package is based on KerbMinder (http://github.com/pmbuko/KerbMinder).
- Peter Bukowinski, author of KerbMinder
- Francois 'ftiff' Levaux-Tiffreau, who extracted this package
- Ben Toms, who gave ftiff the idea
- Allister Banks for pointing out an effective dig command to test for domain reachability.
I would suggest to use from pymacad import ad
-- then call using ad.xxx
### Example
>>> from pymacad import ad
>>> ad.bound()
False
>>> ad.accessible('TEST.COM')
False
>>> ad.accessible('FTI.IO')
True
checks if computer is bound to AD
- returns True or False
- raises subprocess.CalledProcessError
gets principal from AD. If no user is specified, uses the current user.
- Returns principal
- Raises NotBound, NotReachable or subprocess.CalledProcessError
checks if domain can be joined.
- Returns True or False
- raises subprocess.CalledProcessError
- pymacad.ad.NotReachable
- pymacad.ad.NotBound
- subprocess.CalledProcessError