Skip to content

Commit

Permalink
Use get_token_password instead of get_password
Browse files Browse the repository at this point in the history
The function get_password will not normalize the token name and then it
fails to find the password in the config file. After that it will prompt
for the password.

The solution is to use get_token_password instead.
  • Loading branch information
keestux authored and edewata committed Oct 27, 2021
1 parent f93fbc6 commit d580138
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -168,7 +168,7 @@ def get_security_domain_ca(self):
# Set some vars we will be using later
self.db_dir = self.security_domain.config.get('jss.configDir')
self.subsystem_token = self.security_domain.config.get('ca.subsystem.tokenname')
self.passwd = self.instance.get_password(self.subsystem_token)
self.passwd = self.instance.get_token_password(self.subsystem_token)

return sec_domain, sechost, secport

Expand Down

0 comments on commit d580138

Please sign in to comment.