MCPcopy Create free account
hub / github.com/XiaoliChan/LDAPShell / dummySearch

Method dummySearch

ldapsearch-test.py:48–56  ·  view source on GitHub ↗
(self, ldapConnection)

Source from the content-addressed store, hash-verified

46 return ldapConnection
47
48 def dummySearch(self, ldapConnection):
49 # Let's do a search just to be sure it's working
50 searchFilter = "(&(objectclass=person)(sAMAccountName=xiaoli))"
51
52 resp = ldapConnection.search(
53 searchFilter=searchFilter
54 )
55 for item in resp:
56 print(item.prettyPrint())
57
58if __name__ == '__main__':
59 logger.init()

Callers 1

ldapsearch-test.pyFile · 0.80

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected