Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find several token commands "nitrokey_mass_enroll"/"yubikey_mass_enroll"/... #55

Open
herrfeder opened this issue Oct 7, 2020 · 0 comments

Comments

@herrfeder
Copy link

After installing privacyideaadm with pip I'm not able to trigger any mass_enroll and some other token commands. I'm always getting

$ ~/.local/bin/privacyidea -U http://127.0.0.1:5000 --admin admin --nosslcheck token nitrokey_mass_enroll 
Please enter your password: 
Usage: privacyidea token [OPTIONS] COMMAND [ARGS]...
Try 'privacyidea token -h' for help.

Error: No such command 'nitrokey_mass_enroll'.

But for instance token init is working:

$ ~/.local/bin/privacyidea -U http://127.0.0.1:5000 --admin admin --nosslcheck token init --otpkey 1234
Please enter your password: 
result: 200
{'status': True, 'value': True}
serial: OATH000247C5

I can confirm, that in /usr/local/lib/python3.6 are the correct files.
I tried to resolve the issue myself, but I really don't understand the problem as I doesn't see any difference in the initialisation in commands/token.py between init and nitrokey_mass_enroll for instance. Moreover using interactive shell I can trigger the command via dict:

In [1]: from privacyideautils.commands.token import token

In [2]: token.get_command('', 'nitrokey-mass-enroll')()
Usage: ipython3 [OPTIONS]
Try 'ipython3 --help' for help.

Error: Invalid value for '--digits': invalid choice: 6. (choose from 6, 8)
An exception has occurred, use %tb to see the full traceback.

SystemExit: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant