LDAP query in python
While the accepted answer does in fact show a proper way to bind to an LDAP server I do feel it didn’t answer the question holistically. Here is what I ended up implementing to grab the mail and department of a user. This somewhat blends the required attributes from the original question. l = ldap.initialize(‘ldap://ldap.myserver.com:389’) … Read more