Quote:
Originally Posted by n0manarmy
anthonym16 thanks for the post. Ive managed to make a lot of progress so far due to your information. I've gotten to an interesting sticking point though. When I have a user log in with their username and password, it fails the first time, when they try again right away it succeeds and adds them as a user. Any thoughts?
Edit:
It's adding the user on the first failed attempt.
|
Where do you have your hook in login.php? In my 3.8.1 login.php file, it's on line 100. It seems like the the ldap plugin is firing correctly but in the wrong place? If the hook is in the right place, my next thought is maybe your cookies are not working properly.
In Haqa's code, once an email is found in AD, this line executes:
Code:
$vbulletin->GPC['cookieuser'] = $vbulletin->GPC['vb_login_username'];
Then, in login.php, after the correct hook location, GPC['cookieuser'] is passed into verify_authentication().
I'm still trying to learn the hooks system and vb myself. I only have a couple weeks of head start on you...