- First: you need configuration your vBulletin login via LDAP Authentication follow structure at here: http://www.vbulletin.org/forum/showthread.php?t=231909&highlight=ldap+authenticate
- 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:
- if ($vbulletin->GPC['vb_login_username'] == '')
- {
- eval(standard_error(fetch_error('badlogin', $vbulletin->options['bburl'], ....
- }
- Add hook after if statement, becomes:
- if ($vbulletin->GPC['vb_login_username'] == '')
- {
- eval(standard_error(fetch_error('badlogin', $vbulletin->options['bburl'], ....
- }
- ($hook = vBulletinHook::fetch_hook('ldap_login_hook')) ? eval($hook) : false;
- 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:
- $show['nopasswordempty']
- And change:
- defined('DISABLE_PASSWORD_CLEARING') ? 1 : 0;
- to:
- defined('DISABLE_PASSWORD_CLEARING') ? 0 : 1;
- Configure the ldap settings in: ldapconfig.inc.php
- Test the product
- Maybe you will got this error: http://shinphp.blogspot.com/2011/08/php-ldapbind-unable-to-bind-to-server.html
- Go to file: "/forum-root/includes/adminfunctions.php"
- Find: <form action="../login.php?do=login" method="post" name="loginform" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)">
- Replace: <form action="../login.php?do=login" method="post" name="loginform" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 1)">
- Done!
Good luck!
No comments:
Post a Comment