Use kpasswd in 'Set Password' mode to set the password of an account. :param i: the TGT to use.
(self, i, targetupn=None, newpassword=None)
| 2552 | self.import_krb(res) |
| 2553 | |
| 2554 | def kpasswdset(self, i, targetupn=None, newpassword=None): |
| 2555 | """ |
| 2556 | Use kpasswd in 'Set Password' mode to set the password of an account. |
| 2557 | |
| 2558 | :param i: the TGT to use. |
| 2559 | """ |
| 2560 | ticket, sessionkey, upn, _ = self.export_krb(i) |
| 2561 | kpasswd( |
| 2562 | upn=upn, |
| 2563 | targetupn=targetupn, |
| 2564 | setpassword=True, |
| 2565 | ticket=ticket, |
| 2566 | key=sessionkey, |
| 2567 | newpassword=newpassword, |
| 2568 | ) |
| 2569 | |
| 2570 | def renew(self, i, ip=None, additional_tickets=[], **kwargs): |
| 2571 | """ |
nothing calls this directly
no test coverage detected