windows - Using domain credentials in a python script -
i'm following implementation of python script example shown here.
basically, need except want run script domain credentials without prompting user username , password. ideally, we'd want run during maintenance windows, , rather have domain account's credentials handle authentication instead of baking in script stumble upon.
since i'm not versed python, i'm not entirely sure capabilities/best practices in these scenarios.
if you're looking way pass in arguments without prompting user, use library argparse pass in command line arguments, see https://docs.python.org/3/library/argparse.html
another source of information .ini file, handled module configparser or other file-based source xml, shelve, json.
all these issues have weakness, have apply access protection file containing credentials.
Comments
Post a Comment