(self, ldapConnection)
| 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 | |
| 58 | if __name__ == '__main__': |
| 59 | logger.init() |
no test coverage detected