diff options
author | Nathaniel McCallum <npmccallum@redhat.com> | 2015-06-17 10:21:55 -0400 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2015-06-17 16:46:25 +0200 |
commit | 4dfa23256dc2e35480843beef92e03b1bafd578b (patch) | |
tree | debae0798e8ea93096804ada26e7610b79b9792e | |
parent | 69607250b9762a6c9b657dd31653b03d54a7b411 (diff) | |
download | freeipa-4dfa23256dc2e35480843beef92e03b1bafd578b.tar.gz freeipa-4dfa23256dc2e35480843beef92e03b1bafd578b.tar.xz freeipa-4dfa23256dc2e35480843beef92e03b1bafd578b.zip |
Fix OTP token URI generation
Google Authenticator fails if the algorithm is not uppercase.
https://fedorahosted.org/freeipa/ticket/5047
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
-rw-r--r-- | ipalib/plugins/otptoken.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/otptoken.py b/ipalib/plugins/otptoken.py index 867659ec2..294c1c54a 100644 --- a/ipalib/plugins/otptoken.py +++ b/ipalib/plugins/otptoken.py @@ -325,7 +325,7 @@ class otptoken_add(LDAPCreate): args['issuer'] = issuer args['secret'] = base64.b32encode(entry_attrs['ipatokenotpkey']) args['digits'] = entry_attrs['ipatokenotpdigits'] - args['algorithm'] = entry_attrs['ipatokenotpalgorithm'] + args['algorithm'] = entry_attrs['ipatokenotpalgorithm'].upper() if options['type'] == 'totp': args['period'] = entry_attrs['ipatokentotptimestep'] elif options['type'] == 'hotp': |