Quote:
Originally Posted by FFSBC
I use the default global_complete hook, yes. Everything seems to be working fine, except password changes in Active directory aren't transferring to vBulletin... not sure why?
|
Excellent. Good to know that it's possible without modifying the vb code (login.php or global.php). I'm still completely stuck with the failed login message on new account creation.
Interestingly I was having your problem of password changes not updating from the external source. I added some debug code and found that without
define('DISABLE_PASSWORD_CLEARING', 1);
in config.php, the first test in the plugin was failing
$vbulletin->GPC['vb_login_password'] == '' was true
so the plugin was exiting. I re-added the line to config.php, and password changes work. However, I did notice that, because of the way my plugin is written, the old VB password will continue to work until the new external password is entered. This is because my plugin fails over to internal users if external auth fails.
Unforunately when the new external password for an existing user is set in VB upon login, I still get the failed login error message, even though the new password gets set, and you can log in using the new password by refreshing the page.
There's obviously something missing from my plugin that should be setting some cookies and/or session stuff correctly. Can't figure it out.