XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Set OTP seed

    Scheduled Pinned Locked Moved Management
    6 Posts 3 Posters 301 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      KPS Top contributor
      last edited by

      Hi!

      I want to use OTP with XOA and Feitian-Tokens.
      This is working fine, but currently, XOA does generate the seed/security key.

      Is there any possibility to add OTP with a pre-defined seed or to setup OTP for a user through xo-cli with a seed?

      Thank you and best wishes
      Phil Stricker

      D 1 Reply Last reply Reply Quote 0
      • olivierlambertO Online
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        I'm not sure to get it, but leaving it to julien-f when he's around šŸ™‚

        1 Reply Last reply Reply Quote 0
        • D Online
          DustinB @KPS
          last edited by

          KPS What IDP are you using, local XO or something like Google?

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            KPS Top contributor @DustinB
            last edited by

            I am using OTP like Google-Auth.

            The sticks are working exactly like the Google-Authenticator-App, but I want to set the seed.

            What i tried (without success):

            xo-cli user.set id=xxx preferences='{"otp":"JVTXXXXXXXXXXXXXXXX"}'
            āœ– invalid parameters
              property @./preferences: must be object
            
            D 1 Reply Last reply Reply Quote 0
            • D Online
              DustinB @KPS
              last edited by

              KPS How does your team sign into Xen Orchestra, with accounts that are local to XO, or are they using some cloud account?

              It sounds like you're team is using local accounts, and you're wanting to enforce MFA on those.

              K 1 Reply Last reply Reply Quote 0
              • K Offline
                KPS Top contributor @DustinB
                last edited by

                DustinB We are using "local" XOA-accounts, but:

                I was able to find the right syntax:

                xo-cli user.set id=xxx-xxx-xxx preferences='json:{"otp":"JVTXXXXXXXXX"}'
                

                I am able to set a fixed OTP

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post