Run the kerbros renewer. :param principal: principal name :param keytab: keytab file :return: None
(principal: str, keytab: str)
| 158 | |
| 159 | |
| 160 | def run(principal: str, keytab: str): |
| 161 | """ |
| 162 | Run the kerbros renewer. |
| 163 | |
| 164 | :param principal: principal name |
| 165 | :param keytab: keytab file |
| 166 | :return: None |
| 167 | """ |
| 168 | if not keytab: |
| 169 | log.debug("Keytab renewer not starting, no keytab configured") |
| 170 | sys.exit(0) |
| 171 | |
| 172 | while True: |
| 173 | renew_from_kt(principal, keytab) |
| 174 | time.sleep(conf.getint('kerberos', 'reinit_frequency')) |
no test coverage detected