Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
--- /dev/null
+#!/usr/bin/env python
+
+import ldap, sys
+
+con = ldap.initialize('ldap://142.51.1.188')
+
+#try:
+# con.start_tls_s()
+#except ldap.LDAPError, e:
+# print e.message['info']
+# if type(e.message) == dict and e.message.has_key('desc'):
+# print e.message['desc']
+# else:
+# print e
+# sys.exit()
+#
+
+dn = "uid=Libr_LDAP;ou=EMPL;o=LUL"
+pw = ""
+
+auth = con.simple_bind_s(dn, pw)
+print auth