It also fails if you erase some user from your LDAP directory but not from the forums I think...
I was trying to do a mix between the zemick's solution and the one from sartori's, but I'm having a basic/weird problem.
I can't access the $vbulletin var, I do an isset and it is, but I print_r his value and is '1'.
I've seen you access it, and I think it's better than $_POST without processing, so, you know what could I be doing wrong?
Here is the code to test it in my xml file:
PHP Code:
<phpcode><![CDATA[//if the login form has not been submitted dont execute the code
define('THIS_SCRIPT', 'functions_ldap.php');
require_once('./global.php');
if (isset($vbulletin->GPC)){error_log("->".print_r($vbulletin->GPC),0);}
if(isset($_POST[vb_login_username])) {
...
It prints '1' on my error_log, I've tried without the require for global.php, and it's the same result...
Thanks again