(self, query, *attributes)
| 599 | raise Exception('The server returned an error: %s', self.client.result['message']) |
| 600 | |
| 601 | def search(self, query, *attributes): |
| 602 | self.client.search(self.domain_dumper.root, query, attributes=attributes) |
| 603 | for entry in self.client.entries: |
| 604 | print(entry.entry_dn) |
| 605 | for attribute in attributes: |
| 606 | value = entry[attribute].value |
| 607 | if value: |
| 608 | print("%s: %s" % (attribute, entry[attribute].value)) |
| 609 | if any(attributes): |
| 610 | print("---") |
| 611 | |
| 612 | def get_dn(self, sam_name): |
| 613 | if "," in sam_name: |
no outgoing calls