(self, sam_name)
| 610 | print("---") |
| 611 | |
| 612 | def get_dn(self, sam_name): |
| 613 | if "," in sam_name: |
| 614 | return sam_name |
| 615 | |
| 616 | try: |
| 617 | self.client.search(self.domain_dumper.root, '(sAMAccountName=%s)' % escape_filter_chars(sam_name), attributes=['objectSid']) |
| 618 | return self.client.entries[0].entry_dn |
| 619 | except IndexError: |
| 620 | return None |
| 621 | |
| 622 | def do_exit(self, line): |
| 623 | return True |
no test coverage detected