Skip to content

kylecrawshaw/pymacad

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov.io

pymacad

Acknowledgments

This python package is based on KerbMinder (http://github.com/pmbuko/KerbMinder).

pymacad.ad

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

Functions

ad.bound()

checks if computer is bound to AD

  • returns True or False
  • raises subprocess.CalledProcessError

ad.principal(user)

gets principal from AD. If no user is specified, uses the current user.

  • Returns principal
  • Raises NotBound, NotReachable or subprocess.CalledProcessError

ad.accessible()

checks if domain can be joined.

  • Returns True or False
  • raises subprocess.CalledProcessError

Exceptions

  • pymacad.ad.NotReachable
  • pymacad.ad.NotBound
  • subprocess.CalledProcessError

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%