Skip to content

Instantly share code, notes, and snippets.

@marknca
Created September 13, 2018 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marknca/71f0a53934276cf027f53f8343c2268f to your computer and use it in GitHub Desktop.
Save marknca/71f0a53934276cf027f53f8343c2268f to your computer and use it in GitHub Desktop.
Why can't I log into the Deep Security Manager via the API?
import deepsecurity # from https://github.com/deep-security/deep-security-py
import logging
# if testing a tenant login
mgr = deepsecurity.dsm.Manager(username=YOUR_USERNAME, password=YOUR_PASSWORD, tenant=YOUR_TENANT_NAME) # will call the API authenticateTenant
# or
# if testing the primary tenant
mgr = deepsecurity.dsm.Manager(username=YOUR_USERNAME, password=YOUR_PASSWORD) # if "tenant" argument ISN'T sent, it calls a different API call "authenticate"
mgr.log_at_level = logging.DEBUG
mgr.sign_in()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment