#7146 ipa_otptoken_import.py fails to parse the correct suite defined under the AlrgorithmParameters
Closed: fixed Opened by juliovalcarcel.

The suite field of my PSKC.xml file I was importing has the field set to "HMAC-SHA256":

      <pskc:AlgorithmParameters>
        <pskc:Suite>HMAC-SHA256</pskc:Suite>
        <pskc:ResponseFormat Length="6" Encoding="DECIMAL"/>
      </pskc:AlgorithmParameters>

I narrowed it down to it being caused by the convertHashName function not handling if it is preceded by "HMAC". I was able to bypass this by changing my PSKC.xml file.


Metadata Update from @pvoborni:
- Issue assigned to abbra
- Issue set to the milestone: FreeIPA 4.5.4

master:

  • 8661611d3e1d63a01fdc250610a87b3813e5125f OTP import: support hash names with HMAC- prefix

ipa-4-6:

  • 68c079d9d55ae63f318c8ead1e17d4966bfe4378 OTP import: support hash names with HMAC- prefix

ipa-4-5:

  • 496936ed656c5dcb52f485476eb9adc27505228f OTP import: support hash names with HMAC- prefix

Metadata Update from @stlaz:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata