Skip to content

Instantly share code, notes, and snippets.

@morteza-mori
Created July 3, 2017 06:01
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 morteza-mori/20cef77c878ad1241bfad1068df6562c to your computer and use it in GitHub Desktop.
Save morteza-mori/20cef77c878ad1241bfad1068df6562c to your computer and use it in GitHub Desktop.
ldap tshout
#check connectivity in linux server and ldap
python
import ldap
ldap.initialize("ldap://192.168.100.2:389")
x = ldap.initialize("ldap://192.168.100.2:389")
x.bind_s("USERNAME", "PASSWORD")
after return error check error in website
http://wiki.servicenow.com/index.php?title=LDAP_Error_Codes#gsc.tab=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment