<?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>PHP/Linux command line — multiOTP open source forum</title>
        <link>https://forum.multiotp.net/index.php?p=/</link>
        <pubDate>Tue, 10 Mar 2026 16:32:55 +0000</pubDate>
        <language>en</language>
            <description>PHP/Linux command line — multiOTP open source forum</description>
    <atom:link href="https://forum.multiotp.net/index.php?p=/categories/cli-php/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Radius listening IP and port</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/52/radius-listening-ip-and-port</link>
        <pubDate>Tue, 31 Jul 2018 09:32:54 +0000</pubDate>
        <category>PHP/Linux command line</category>
        <dc:creator>sobutay</dc:creator>
        <guid isPermaLink="false">52@/index.php?p=/discussions</guid>
        <description><![CDATA[Hi,&#13;
&#13;
I am using the ova file (multiOTP-open-source-vm-5.0.4.7.ova) for AD sync and 2FA auth with F5 APM.  Although the AD sync and local auth checks works like a charm, I could not make the radius server listen on anything other than 127.0.0.1:18081 which came out with the virtual appliance.  No matter what I change on clients.conf it still listens on the same ip:port combination.  Could you please help me?&#13;
&#13;
Best regards,]]>
        </description>
    </item>
    <item>
        <title>LDAP user sync issues</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/29/ldap-user-sync-issues</link>
        <pubDate>Thu, 30 Mar 2017 11:39:25 +0000</pubDate>
        <category>PHP/Linux command line</category>
        <dc:creator>alexs</dc:creator>
        <guid isPermaLink="false">29@/index.php?p=/discussions</guid>
        <description><![CDATA[Hi,&#13;
i'm running the latest version of multiotp (upgraded the VM available from www.multiotp.net) and am getting the following error when I try running&#13;
<br />&#13;
/usr/local/bin/multiotp/multiotp -display-log -ldap-users-sync&#13;
<br />&#13;
PHP Notice:  Undefined index: count in /usr/local/bin/multiotp/multiotp.php on line 56<br />&#13;
PHP Warning:  ldap_next_entry() expects parameter 2 to be resource, null given in /usr/local/bin/multiotp/multiotp.php on line 56<br />&#13;
PHP Warning:  ldap_get_attributes() expects parameter 2 to be resource, null given in /usr/local/bin/multiotp/multiotp.php on line 56<br />&#13;
PHP Warning:  ldap_get_dn() expects parameter 2 to be resource, null given in /usr/local/bin/multiotp/multiotp.php on line 56<br /><br />&#13;
This repeats for a while until an abort message appears.<br /><br />&#13;
&#13;
Running <br />&#13;
root@multiotp:/tmp# /usr/local/bin/multiotp/multiotp  -display-log -ldap-check<br />&#13;
gives <br />&#13;
LOG 2017-03-30 12:37:47 debug Debug Debug: *parameter(s) received: -display-log -ldap-check<br />&#13;
19 *INFO: Requested operation successfully done<br />&#13;
&#13;
from /usr/local/bin/multiotp/log/multiotp.log I get <br /><br />&#13;
&#13;
multiotp 5.0.3.7<br />&#13;
Your script is running from /usr/local/bin/multiotp/<br />&#13;
2017-03-30 11:43:12     debug           Debug   Debug: *parameter(s) received: -display-log -ldap-users-sync<br />&#13;
2017-03-30 11:43:12     debug           LDAP    Debug: *AD/LDAP synchronization started at 11:43:12 / Memory used: 6.9MB / Peak: 7MB<br />&#13;
2017-03-30 11:43:12     info            LDAP    Info: AD/LDAP synchronization started<br />&#13;
2017-03-30 11:43:12     debug           System  Debug: *LDAP cache folder value: /tmp/.ldap_cache/<br /><br />&#13;
&#13;
/tmp/.ldap_cache has loads of (small) ldap_rgroup....cache files <br /><br />&#13;
&#13;
When setting up ldap access I entered <br />&#13;
&#13;
/usr/local/bin/multiotp/multiotp -config ldap-cn-identifier="sAMAccountName"<br />&#13;
  /usr/local/bin/multiotp/multiotp -config ldap-group-cn-identifier="sAMAccountName"<br />&#13;
  /usr/local/bin/multiotp/multiotp -config ldap-group-attribute="memberOf"<br />&#13;
  /usr/local/bin/multiotp/multiotp -config ldap-ssl=0<br />&#13;
  /usr/local/bin/multiotp/multiotp -config ldap-port=389<br />&#13;
  /usr/local/bin/multiotp/multiotp -config ldap-domain-controllers=ldap://its.york.ac.uk<br />&#13;
  /usr/local/bin/multiotp/multiotp -config ldap-base-dn="OU=Users,OU=UoY,DC=its,DC=york,DC=ac,DC=uk"<br />&#13;
  /usr/local/bin/multiotp/multiotp -config ldap-bind-dn="CN=service_multiotpldap,OU=ServiceAccounts,OU=UoY,DC=its,DC=york,DC=ac,DC=uk"<br />&#13;
  /usr/local/bin/multiotp/multiotp -config ldap-server-password="apasword"<br />&#13;
  /usr/local/bin/multiotp/multiotp -config ldap-in-group="somegroup"<br />&#13;
  /usr/local/bin/multiotp/multiotp -config ldap-activated=1<br /><br />&#13;
&#13;
Have I missed a config parameter?<br />]]>
        </description>
    </item>
    <item>
        <title>LDAP connection failed (trying to connect a Sun LDAP server)</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/3/ldap-connection-failed-trying-to-connect-a-sun-ldap-server</link>
        <pubDate>Mon, 31 Mar 2014 15:52:54 +0000</pubDate>
        <category>PHP/Linux command line</category>
        <dc:creator>alexxtasi</dc:creator>
        <guid isPermaLink="false">3@/index.php?p=/discussions</guid>
        <description><![CDATA[<span style="font-size: small; font-family: Arial, Verdana;">Hi there,</span><div>after configuring the mysql back-end (works flawless in 4.2.4), I am&nbsp;trying to configure ldap accounts in multiotp with this command:<div><br /></div></div><blockquote><div><div><div><i>./multiotp.php -config \</i></div></div></div><div><div><i>ldap-activated=1 \</i></div></div><div><div><i>ldap-account-suffix="dc=...,dc=..." \</i></div></div><div><div><i>ldap-base-dn="ou=people,dc=...,dc=..." \</i></div></div><div><div><i>ldap-bind-dn="uid=admin,dc=...,dc=..." \</i></div></div><div><div><i>ldap-cn-identifier="cn" \</i></div></div><div><div><i>ldap-domain-controllers="..url.." \</i></div></div><div><div><i><span style="font-size: small; font-family: Arial, Verdana;">ldap-group-attribute="objectClass" \</span></i></div></div><div><div><i><span style="font-size: small; font-family: Arial, Verdana;">ldap-in-group="INETORGPERSON" \</span></i></div></div><div><div><i>ldap-port=389 \</i></div></div><div><div><i>ldap-server-password="password" \</i></div></div><div><div><i>ldap-ssl=0 \</i></div></div><div><div><i>ldap-network-timeout=100 \</i></div></div><div><div><i>ldap-time-limit=300</i></div></div></blockquote><div><br /></div><div>the output is "<i>19 INFO: Requested operation successfully done</i>".</div><div>When checking the ldap with:</div><div><br /></div><blockquote><div><span style="font-size: small; font-family: Arial, Verdana;"><i>./multiotp.php -ldap-check</i></span></div></blockquote><div>&nbsp;</div><div>the output is also "<i>19 INFO: Requested operation successfully done</i>".</div><div><br /></div><div>But when I provide:</div><div><br /></div><blockquote><div><span style="font-size: small; font-family: Arial, Verdana;"><i>./multiotp.php -ldap-users-sync</i></span></div></blockquote><div><br /></div><div>the output is :</div><div><br /></div><blockquote><div><div><span style="font-size: small; font-family: Arial, Verdana;"><i>LOG 2014-03-31 16:08:59 warning LDAP Error: LDAP connection failed</i></span></div></div><div><div><span style="font-size: small; font-family: Arial, Verdana;"><i><br /></i></span></div></div><div><div><span style="font-size: small; font-family: Arial, Verdana;"><i>LOG 2014-03-31 16:08:59 warning LDAP Info: LDAP access error</i></span></div></div><div><div><span style="font-size: small; font-family: Arial, Verdana;"><i>99 ERROR: Authentication failed (and other possible unknown errors)</i></span></div></div></blockquote><div><br /></div><div>Is this any wrong configuration of mine?</div><div><span style="font-size: small; font-family: Arial, Verdana;">How can I find more info for the success of the connection (is there a&nbsp;successful&nbsp;bind or not)?</span></div><div><span style="font-size: small; font-family: Arial, Verdana;"><br /></span></div><div><span style="font-size: small; font-family: Arial, Verdana;">thanks in advance</span></div>]]>
        </description>
    </item>
    <item>
        <title>Simple login script</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/13/simple-login-script</link>
        <pubDate>Mon, 08 Sep 2014 11:48:50 +0000</pubDate>
        <category>PHP/Linux command line</category>
        <dc:creator>PeachT</dc:creator>
        <guid isPermaLink="false">13@/index.php?p=/discussions</guid>
        <description><![CDATA[Hi, <br /><br />I'm trying to use multiOTP for a silple login script. From a form I'm posting username and data for a validating.php script.<br /><br />I use this code : <a rel="nofollow" href="http://pastebin.com/rmb7wVJC">http://pastebin.com/rmb7wVJC</a><br /><br />When I'm validating the username and the token I always get the next error in the log:<br /><br />multiotp 4.2.4.2<br />Your script is running from D:\xampp\htdocs\learn\login\multiOTP\<br />2014-09-08 12:06:25&nbsp;&nbsp;&nbsp; critical&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System&nbsp;&nbsp;&nbsp; Error: the configuration encryption key is not matching<br />2014-09-08 12:06:25&nbsp;&nbsp;&nbsp; critical&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System&nbsp;&nbsp;&nbsp; Error: the user information encryption key is not matching<br />2014-09-08 12:06:25&nbsp;&nbsp;&nbsp; critical&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System&nbsp;&nbsp;&nbsp; Error: the user information encryption key is not matching<br />2014-09-08 12:06:25&nbsp;&nbsp;&nbsp; warning&nbsp;&nbsp; &nbsp;&nbsp; testusr &nbsp; &nbsp; User&nbsp;&nbsp;&nbsp; Error: User testusr doesn't exist<br /><br />The command line multiotp.exe is working perfecly, and the files are existing. I don't know what the problem is.<br />Could anybody please give me more tutorial or a better documentation? I'm very newbie in this area so please forgive me<br />my ignorance.<br /><br />]]>
        </description>
    </item>
    <item>
        <title>(INSERT INTO `multiotp_log`) - error (version 4.2.3)</title>
        <link>https://forum.multiotp.net/index.php?p=/discussion/1/insert-into-multiotp-log-error-version-4-2-3</link>
        <pubDate>Fri, 28 Mar 2014 15:19:30 +0000</pubDate>
        <category>PHP/Linux command line</category>
        <dc:creator>alexxtasi</dc:creator>
        <guid isPermaLink="false">1@/index.php?p=/discussions</guid>
        <description><![CDATA[<div>Hi all,</div><div>I am using multiotp 4.2.3 (downloaded from download from http://download.multiotp.net/4.x/multiotp-4.2.3.zip).</div><div>After configuring the mysql backend with command line (according to the readme file), I run "./multiotp.php -initialize-backend". The log outputs :</div><div><br /></div><blockquote><div><div><i>LOG 2014-03-28 13:29:17 error System Error: SQL database query error (INSERT INTO `multiotp_log` (`datetime`,`severity`,`user`,`category`,`logentry`) VALUES ('2014-03-28 13:29:17','','Debug: 19 INFO: Requested operation successfully done')) : Column count doesn't match value count at row 1</i></div></div><div><div><i>19 INFO: Requested operation successfully done</i></div></div></blockquote><div><br /></div><div>but mysql tables are created correctly.</div><div>Any idea for this ?</div><div>thanks in advance.</div>]]>
        </description>
    </item>
   </channel>
</rss>
