<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Windows command line — multiOTP open source forum</title>
        <link>https://forum.multiotp.net/index.php?p=/</link>
        <pubDate>Tue, 10 Mar 2026 15:56:13 +0000</pubDate>
        <language>en</language>
            <description>Windows command line — multiOTP open source forum</description>
    <atom:link href="https://forum.multiotp.net/index.php?p=/categories/cli-windows/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Emergency login in case of lost access</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/106/emergency-login-in-case-of-lost-access</link>
        <pubDate>Mon, 28 Jul 2025 16:15:25 +0000</pubDate>
        <category>Windows command line</category>
        <dc:creator>aratoken</dc:creator>
        <guid isPermaLink="false">106@/index.php?p=/discussions</guid>
        <description><![CDATA[Hi!&#13;
i am currently using multiOTP successfully in a testing environment but there is one question that i have not yet found a clear answer to.&#13;
Is there a way to restore access in case if i lose my ability to log into for example the Administrator account (For example lost phone)? Can i create backup codes or similar to temporarely disable multiOTP?  If not what would be the usual approach?&#13;
Thank you!]]>
        </description>
    </item>
    <item>
        <title>How to apply local only version for Windows 11 ?</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/105/how-to-apply-local-only-version-for-windows-11</link>
        <pubDate>Mon, 23 Jun 2025 04:53:00 +0000</pubDate>
        <category>Windows command line</category>
        <dc:creator>datlv</dc:creator>
        <guid isPermaLink="false">105@/index.php?p=/discussions</guid>
        <description><![CDATA[I have one Windows 11 PC, I want to apply OTP during the remote desktop, so I tried to installed local only version but I dont know how to create user with QR code (or secret key).  Please share me the correct way to do it. Thanks for the support.]]>
        </description>
    </item>
    <item>
        <title>enable and disable 2fa for users</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/104/enable-and-disable-2fa-for-users</link>
        <pubDate>Thu, 12 Jun 2025 08:13:05 +0000</pubDate>
        <category>Windows command line</category>
        <dc:creator>aratoken</dc:creator>
        <guid isPermaLink="false">104@/index.php?p=/discussions</guid>
        <description><![CDATA[Hi!&#13;
i am recently using the windows version to secure rdp logins on my server, so far its working fine. However i am a bit confused regarding the "iswithout2fa" option through the command line: I tried to set this option for two users for testing purposes, setting it for my Administrator (using the Administrator) worked fine but configuring it for another testuser did not seem to work. If i log in with said user and set it, it works without issues but in return i cannot set the option for other users (for example the Administrator). &#13;
&#13;
Is there a restriction as to how/where to set the without2fa option that i'm missing? In both cases (working and not) i got no output on my cli after using the command at all.&#13;
Also: am i assuming correctly that the "iswithout2fa" can only be removed with a restart of the whole system? I couldn't find any option for it in the help output and i noticed that after restarting the server because of updates that 2FA was re-enabled for a user i previously disabled it using that option.&#13;
&#13;
Thank you and best regards!]]>
        </description>
    </item>
    <item>
        <title>AD sync not working now?</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/100/ad-sync-not-working-now</link>
        <pubDate>Wed, 26 Mar 2025 15:42:13 +0000</pubDate>
        <category>Windows command line</category>
        <dc:creator>dreamscape</dc:creator>
        <guid isPermaLink="false">100@/index.php?p=/discussions</guid>
        <description><![CDATA[I have hardened my AD and now get the error below when trying to do a sync:&#13;
&#13;
&#13;
LOG 2025-03-26 15:36:14 warning LDAP Error: FATAL: AD bind failed. Check the login credentials (8: Strong(er) authentication required). (00002028: LdapErr: DSID-0C090330, comment: The server requires binds to turn on integrity checking if SSL\TLS are not already active on the connection, data 0, v4f7c)&#13;
99 *ERROR: Authentication failed (and other possible unknown errors)&#13;
&#13;
&#13;
Any ideas how i fix this?]]>
        </description>
    </item>
    <item>
        <title>Cannot get user/group downloading working from AD - how can I enable more logging?</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/91/cannot-get-user-group-downloading-working-from-ad-how-can-i-enable-more-logging</link>
        <pubDate>Thu, 06 Jun 2024 09:54:07 +0000</pubDate>
        <category>Windows command line</category>
        <dc:creator>IanMurphy</dc:creator>
        <guid isPermaLink="false">91@/index.php?p=/discussions</guid>
        <description><![CDATA[sorry for the lack of formatting. I can't work out how to post anything than a block of text.&#13;
&#13;
I'm playing around with MultiOTP on a windows server attempting to set up a 2FA system.&#13;
Everything went smoothly up to the point of actually downloading the group/users when the system always indicates no updates:&#13;
&#13;
```&#13;
C:\MultiOTP\Windows&gt;multiotp -debug -display-log -ldap-users-sync&#13;
LOG 2024-06-06 09:31:54 debug LDAP Debug: *AD/LDAP synchronization started at 09:31:54 / Memory used: 14.5MB / Peak: 27.1MB&#13;
LOG 2024-06-06 09:31:54 info LDAP Info: AD/LDAP synchronization started&#13;
LOG 2024-06-06 09:31:54 debug System Debug: *LDAP cache folder value: C:\Users\ADMIN-~1\AppData\Local\Temp\.ldap_cache/&#13;
LOG 2024-06-06 09:31:54 info LDAP Info: No update for the 0 LDAP synced users, based on 1 LDAP entries (processed in 00:00:00)&#13;
19 *INFO: Requested operation successfully done&#13;
```&#13;
&#13;
As far as I can tell my LDAP connection is correctly configured. I have a single group with a single test user in the group. I've tried adding a new user to the group to see if that provoked any changed but it always indicates 0 ldap synced users&#13;
&#13;
If I connect to ldap using an ldap client tool, it works and allows me to see the contents of the group and can browse around the AD objects without any problems. So the account I'm using works fine - its a specially created account.&#13;
&#13;
Is there a way to enable verbose logging which will log the tcp open, each message, etc.?&#13;
I've been over the documentation but can't find anything which will enable detailed debug logging.&#13;
&#13;
If I execute&#13;
&#13;
multiotp -ldap-check -debug&#13;
&#13;
it reports nothing at all, no errors, no warnings.&#13;
&#13;
&#13;
]]>
        </description>
    </item>
    <item>
        <title>restore error</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/51/restore-error</link>
        <pubDate>Tue, 31 Jul 2018 05:01:35 +0000</pubDate>
        <category>Windows command line</category>
        <dc:creator>paulspectre</dc:creator>
        <guid isPermaLink="false">51@/index.php?p=/discussions</guid>
        <description><![CDATA[Hi.&#13;
When I try to restore a configuration, I get the following error:&#13;
Reply-Message := "ERROR: Authentication failed (and other possible unknown errors)"&#13;
Any ideas?]]>
        </description>
    </item>
    <item>
        <title>AD-LDAP user not working until CLI login</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/34/ad-ldap-user-not-working-until-cli-login</link>
        <pubDate>Tue, 22 Aug 2017 18:24:30 +0000</pubDate>
        <category>Windows command line</category>
        <dc:creator>cgrossman</dc:creator>
        <guid isPermaLink="false">34@/index.php?p=/discussions</guid>
        <description><![CDATA[I have everything set up to sync AD users with MultiOTP.  I have an AD group VPNUsers that I put users in, and when I run the MultiOTP sync, it creates the user accounts that exist in that group.  So far, so good.&#13;
&#13;
However, I'm trying to authenticate the user using the check user function on the web console at on port 58112, and the authentication fails.  Once I go to the (Windows) MultiOTP server and run 'multiotp username passwordprefixand6digitcode', I get back 'Filter-ID += "VPNUsers"'.  Then, and only then, does the web console work.&#13;
&#13;
Looking at the user.db, other than things like last_login field, I'm just seeing the ldap_hash_cache field go from blank to a long string, and ldap_hash_validity go from 0 to 1504016776.  &#13;
&#13;
What is going on that needs the CLI login to happen before the web login works?&#13;
]]>
        </description>
    </item>
    <item>
        <title>Windows Client with Linux Server error</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/16/windows-client-with-linux-server-error</link>
        <pubDate>Mon, 10 Aug 2015 21:49:08 +0000</pubDate>
        <category>Windows command line</category>
        <dc:creator>AsLY</dc:creator>
        <guid isPermaLink="false">16@/index.php?p=/discussions</guid>
        <description><![CDATA[Hello,<br /><br />I configure multiotp on linux with apache to access web-gui and webservice.<br />User are created on linux and local authentication is working<br />./multiotp.php toto 193604<br />LOG 2015-08-10 23:05:29 notice (user toto) User OK: User toto successfully logged in<br />0 OK: Token accepted<br /><br />then I deploy multiotp on windows Server 2008, and configure it as client :<br />multiotp.exe -config server-secret=MySharedSecret<br />multiotp.exe -config server-cache-level=1<br />multiotp.exe -config server-timeout=3<br />multiotp.exe -config server_url=http://172.16.3.87/ (apache on linux)<br /><br />Also add following configuration on linux :<br />./multiotp.php -config server-secret=MySharedSecret<br />./multiotp.php -config server-cache-level=1<br />./multiotp.php -config server-cache-lifetime=15552000<br /><br />When I tried authentication on windows :<br />.\multiotp.exe -display-log -log -debug toto 752569<br /><br />I got a error :<br />Notice: XML Parsing Error at 2:1. Error 4: Not well-formed (invalid token) in D:\Data\projects\multiotp\phc-cli\multiotp<br />.windows.php on line 19263<br /><br />Notice: XML Parsing Error at 2:1. Error 4: Not well-formed (invalid token) in D:\Data\projects\multiotp\phc-cli\multiotp<br />.windows.php on line 19263<br /><br />LOG 2015-08-10 23:37:01 critical Client-Server Error: Host answers with the following error code: 99 ()<br /><br />LOG 2015-08-10 23:37:01 warning System Error: database file C:\Program Files\multiotp\users\toto.db for user toto does n<br />ot exist<br /><br />Notice: XML Parsing Error at 2:1. Error 4: Not well-formed (invalid token) in D:\Data\projects\multiotp\phc-cli\multiotp<br />.windows.php on line 19263<br /><br />LOG 2015-08-10 23:37:01 critical Client-Server Error: Host answers with the following error code: 99 ()<br />21 ERROR: User doesn't exist<br /><br />I also notice in multiotp log on linux :<br />Your script is running from /opt/linux/<br />2015-08-10 23:37:04&nbsp;&nbsp;&nbsp;&nbsp; debug&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Server-Client&nbsp;&nbsp; Info: *ReadUserData server request.<br /><br />Network trace from tcpdump :<br /><br />Client request :<br />POST / HTTP/1.0<br />Content-Type: application/x-www-form-urlencoded<br />Content-Length: 369<br />User-Agent: multiOTP<br />Host: 172.16.3.87<br />data=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3CmultiOTP+version%3D%224.0%22+xmlns%3D%22http%3A%2F%2Fwww.sysco.ch%2Fnamespaces%2Fmultiotp%22%3E%0A%3CServerChallenge%3EU1NyVjc0EW8FOWonaXFOHVIjcnQvEAgyOns4fE99NjV2ZTUu%<br /><br />Server response :<br />HTTP/1.1 200 OK<br />Date: Mon, 10 Aug 2015 21:41:25 GMT<br />Server: Apache/2.2.22 (Debian)<br />X-Powered-By: PHP/5.4.39-0+deb7u2<br />Expires: Mon, 10 Aug 2015 21:41:25 GMT<br />Last-Modified: Mon, 10 Aug 2015 21:41:25 GMT<br />Cache-Control: no-store, no-cache, must-revalidate<br />Cache-Control: post-check=0, pre-check=0<br />Pragma: no-cache<br />Vary: Accept-Encoding<br />Content-Length: 402<br />Connection: close<br />Content-Type: text/html<br />LOG 2015-08-10 23:41:25 debug Server-Client Info: *CheckUserExists server request.<br />&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />&lt;multiOTP version="4.0" xmlns="http://www.sysco.ch/namespaces/multiotp"&gt;<br />&lt;DebugCode&gt;CheckUserExists&lt;/DebugCode&gt;<br />&lt;ServerPassword&gt;32f8a1bb4062e4d4e9a22ea7d1004bb8&lt;/ServerPassword&gt;<br />&lt;ErrorCode&gt;22&lt;/ErrorCode&gt;<br />&lt;ErrorDescription&gt;ERROR: User already exists&lt;/ErrorDescription&gt;<br />&lt;/multiOTP&gt;<br /><br />POST / HTTP/1.0<br />Content-Type: application/x-www-form-urlencoded<br />Content-Length: 363<br />User-Agent: multiOTP<br />Host: 172.16.3.87<br />data=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3CmultiOTP+version%3D%224.0%22+xmlns%3D%22http%3A%2F%2Fwww.sysco.ch%2Fnamespaces%2Fmultiotp%22%3E%0A%3CServerChallenge%3EU1NyVjA2RzQEPj5yaipMEwctL3UmEA5lPHgyL0l9YmkkZTMk%<br />3C%2FServerChallenge%3E%0A%3CReadUserData%3E%0A++++%3CUserId%3Etoto%3C%2FUserId%3E%0A%3C%2FReadUserData%3E%0A%3C%2FmultiOTP%3E<br />3C%2FServerChallenge%3E%0A%3CCheckUserExists%3E%0A++++%3CUserId%3Etoto%3C%2FUserId%3E%0A%3C%2FCheckUserExists%3E%0A%3C%2FmultiOTP%3E<br /><br />Client request :<br />POST / HTTP/1.0<br />Content-Type: application/x-www-form-urlencoded<br />Content-Length: 363<br />User-Agent: multiOTP<br />Host: 172.16.3.87<br />data=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3CmultiOTP+version%3D%224.0%22+xmlns%3D%22http%3A%2F%2Fwww.sysco.ch%2Fnamespaces%2Fmultiotp%22%3E%0A%3CServerChallenge%3EU1NyVjA2RzQEPj5yaipMEwctL3UmEA5lPHgyL0l9YmkkZTMk%<br />3C%2FServerChallenge%3E%0A%3CReadUserData%3E%0A++++%3CUserId%3Etoto%3C%2FUserId%3E%0A%3C%2FReadUserData%3E%0A%3C%2FmultiOTP%3E<br /><br />Server response :<br />HTTP/1.1 200 OK<br />Date: Mon, 10 Aug 2015 21:41:25 GMT<br />Server: Apache/2.2.22 (Debian)<br />X-Powered-By: PHP/5.4.39-0+deb7u2<br />Expires: Mon, 10 Aug 2015 21:41:25 GMT<br />Last-Modified: Mon, 10 Aug 2015 21:41:25 GMT<br />Cache-Control: no-store, no-cache, must-revalidate<br />Cache-Control: post-check=0, pre-check=0<br />Pragma: no-cache<br />Vary: Accept-Encoding<br />Content-Length: 1253<br />Connection: close<br />Content-Type: text/html<br />LOG 2015-08-10 23:41:25 debug Server-Client Info: *ReadUserData server request.<br />&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />&lt;multiOTP version="4.0" xmlns="http://www.sysco.ch/namespaces/multiotp"&gt;<br />&lt;DebugCode&gt;ReadUserData&lt;/DebugCode&gt;<br />&lt;ServerPassword&gt;c1d9eae32f86b1281f64fa74d7d24845&lt;/ServerPassword&gt;<br />&lt;ErrorCode&gt;19&lt;/ErrorCode&gt;<br />&lt;ErrorDescription&gt;INFO: Requested operation successfully done&lt;/ErrorDescription&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;User UserId="toto"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;UserData&gt;<br />...<br />&lt;/UserData&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/User&gt;&lt;/multiOTP&gt;<br /><br />Any idea what this bug is?<br />]]>
        </description>
    </item>
   </channel>
</rss>
