Quote:
Originally Posted by warhau
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.
|
[s]I can't seem to get this working. I've got everything up and going with being able to log in and authenticating against LDAP. It immediately processes the login and the user's away and posting.
I can't get password changes working though. I tested it with an account, as soon as the password changes, they can't log in with the new password, they can only log in with the old password.
Also,
If someone changes their password through their CP, it not only breaks their old password from working, but the new one doesn't work as well.
Also Also,
It appears that by changing my password through the CP it has broken my ability to create new users....?[/s]
EDIT For follow up:
I edited the line
$show['nopasswordempty'] = defined('DISABLE_PASSWORD_CLEARING') ? 1 : 0; // this nees to be an int for the templates
To appear like above
I was able to log in again with accounts. I don't know if this was somehow reset during my monkeying or not. Everything appears to be working now,
including password changes.