Version: 1.01, by malcolmx
Developer Last Online: Mar 2020
Category: Integration with vBulletin -
Version: 4.0.0
Rating:
Released: 01-01-2010
Last Update: Never
Installs: 27
Uses Plugins
Re-useable Code Code Changes Additional Files
No support by the author.
This is a very small plugin for enabling ldap authentication for vBulletin Suite 4. The original version is from www.sartori.at.
if you need any help installing the plugin, please post into this thread here.
if you need any extra changes i will modify the plugin for extra charge.
In contrast to the ldap authentication from zemic my board can authenticate against every - already deployed - ldap directory without changeing the encryption type.
If the ldap user is not added in the VBulletin database, the user is automatically added the first time he authenticates against the ldap. if the user already exists then nothing is changed, except the authentication against the directory.
in the admin or moderator panel no user is authenticated against the directory.
Requirements
php with ldap support
Installation Notes:
copy ldapAuth directory to your vb forum installation directory
change the path to controller.php directory in ldap-plugin.xml
copy the hooks_ldap.xml to FORUM_ROOT/includes/xml directory
in login.php search for:
PHP Code:
if ($vbulletin->GPC['vb_login_username'] == '')
{
eval(standard_error(fetch_error('badlogin', $vbulletin->options['bburl'], ....
}
activate plugin system (if not done already) in admincp
in admin cp import the product at "Plugins & Products -> Download / Upload Plugins", use "Import Plugin Definitions XML File" at the bottom of the page, example import input './ldapAuth/ldap-plugin.xml'
recheck if the include for controller.php is right
in includes/class_bootstrap.php search for:
PHP Code:
$show['nopasswordempty']
and change:
PHP Code:
defined('DISABLE_PASSWORD_CLEARING') ? 1 : 0;
to:
PHP Code:
defined('DISABLE_PASSWORD_CLEARING') ? 0 : 1;
configure the ldap settings in: ldapconfig.inc.php
test the product
Additional Notes:
If you are running a Microsoft Active Directory as Ldap server you have to change some settings to allow anonymous queries. This is described at Novell and Microsoft
I would be happy if you support my modification in any way. Install or nominate it or donate some cents at paypal.
since this addon does not use vb functions to authenticate the users, those features are not available. if you want to change passwords / email addresses in your ldap / active directory then use
software that is available on the open source market.
if you want ldap functions implemented in vBulletin, you need another addon or need a request for paid services.
6. in admin cp import the product at "Plugins & Products -> Download / Upload Plugins", use "Import Plugin Definitions XML File" at the bottom of the page, example import input './ldapAuth/ldap-plugin.xml'
Make some changes to the if else statement, delete or comment out the following and change one variable.
Code:
// write the FIRST found DN to $bindDn;
--$bindDn=$searchResult[0]['dn'];
// bind to the ldap server with specified credentials (dn, password)
--$ldap_bind = @ldap_bind($ldapConnection, $bindDn, $vbulletin->GPC['vb_login_password']);
// close the server connection
ldap_close($ldapConnection);
// ldap bind did not succeed, wrong username/password combination
++if ($ldapBind != 1)
--if ($ldap_bind != 1)
Now you should be able to connect to a more secure ldap server. Anonymous queries against my AD makes it hard for me to sleep at night.