How to Disable NTLM Authentication in Bitrix
When deploying a copy of a Bitrix24 portal, you may discover that NTLM authentication was enabled. After restoration, the portal may redirect to the login form or fail to open. Disable NTLM authentication using UnSetBitrixVMAuthSupport.
To disable NTLM authentication, connect to the portal via SSH or FTP and upload a file, such as ntlmoff.php, containing the following code:
You can also add the following line before require_once:
Back to blog
To disable NTLM authentication, connect to the portal via SSH or FTP and upload a file, such as ntlmoff.php, containing the following code:
<?
$_SERVER["DOCUMENT_ROOT"] = '/home/bitrix/www';
$DOCUMENT_ROOT = $_SERVER["DOCUMENT_ROOT"];
define("NO_KEEP_STATISTIC", true);
define("NOT_CHECK_PERMISSIONS",true);
define('BX_NO_ACCELERATOR_RESET', true);
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
if(!CModule::IncludeModule('ldap'))
return false;
CLdapUtil::UnSetBitrixVMAuthSupport(true);
echo 'Ntlm auth off';
?>
Open the page in your browser. You can also add the following line before require_once:
define( 'LDAP_NO_PORT_REDIRECTION' , true );