Same patch previously applied in other files. ajax.php was missed at
that time.
https://github.com/cosmocode/contagged/commit/
e6398bad6d0293d1c7da37a410ae7e359895c41e
Incidentally it restore the auto-completion feature within Contagged
editor page.
require_once('inc/init.php');
ldap_login();
-if ($conf['userlogreq'] && $user == ''){
+if ($conf['userlogreq'] && !isset($_SESSION['ldapab']['username'])){
header("HTTP/1.1 401 Access Denied");
echo '<h1>Access Denied</h1>';
exit();