The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#42
|
||||
|
||||
I need to make some corrections to my original posting about using the LDAP bind for authentication. Unfortunately, there were two errors in the code which was causing @ldap_bind to do an anonymous bind. If your directory does not allow anonymous, then the code would fail. If your directory does allow anonymous, then any password would work.
Here is the corrected code from ldap_authentication.php. Code:
//... check if the username and password entered in the login form are correct (in LDAP) //by default LDAP stores passwords in CRYPT format, but we'd need to know the plain text //password to check against CRYPT. VB converts the password into MD5 on form submission //and because we have the password already stored as MD5 in LDAP, we can do this! // ---- Modified by Mark Tomlinson - 11/28/2007 ---- // if($info[0]["$ldapfield"][0] == $_POST[vb_login_md5password]) if (@ldap_bind($ds, $info[0]["dn"], $_POST[vb_login_password])) // ---- End Modifications ---- { |
#43
|
|||
|
|||
I'm a newbie, and seem to be technically challenged today.
Have installed vBulletin v3.6.8 PL2 on Solaris, w/Apache2.2, PHP5.2.4, and MySQL4.1.22. vBulletin is working, but now I need to have LDAP support for Single Sign On authentication. Ok, followed the simple instructions for installing the "ldapconfig.php", but I'm stuck at step #3, where I "Add / Import the product (xml file)" I logged in to the Admin CP, but don't see the Add/Import. Down the left side I see: - vBulletin Options - Style & Template - Language & Phrases - FAQ (and the list goes on) I have expanded each and all sections, but nothing is jumping out at me that says "Add/Import" Where is it??? Lost and wandering aimlessly. Stacy |
#44
|
|||
|
|||
OK, I figured out the installation, but now its not authenticating known users?
any clues??? |
#45
|
|||
|
|||
Usual culprits are UID field or no MD5 field. MD5 is not a standard LDAP field but most people create it. So if you only got CRYPT to store your passwords, this script wont work without some template changes (which is not recommended).
|
#46
|
|||
|
|||
Are there any logs to find out why a user isn't able to authenticate correctly? I'm using openldap for telnet/ssh access to the server, but I'm still trying to debug this plugin.
Thanks |
#47
|
|||
|
|||
Ok, I think I have narrowed my problem down.
I can't do an anonymous bind and refused access to the md5hash due to security reasons. So, not I am looking to use a .htaccess mechanism, and have started to search the forum. any recommendations??? |
#48
|
||||
|
||||
Quote:
You may want to try the method of binding using the user ID that I outline several posts above. Here is a reprise of the code. PHP Code:
PHP Code:
PHP Code:
And here is something very important that I forgot to mention before. This only works if the login form passes the password. To make that happen, you have to modify global.php (if anyone knows a better way, please let me know). Add the following anywhere near the top. PHP Code:
|
#49
|
|||
|
|||
Has anyone got this to work with Active Directory? If so, mind lending some insight?
I have also set this module up correctly as far as I can tell, but I'm not seeing anything in the security event log on the domain controller... |
#50
|
|||
|
|||
Does this LDAP mod also sit on top of admincp and modcp? Currently using another mod that doesn't and it's causing some headaches..
|
#51
|
|||
|
|||
Great work folks, I've tried the plugin with Mark's modifications to the CRYPT "problem" and it works...
Now, I see a little problem, we want to perform always the login towards the LDAP, so if the user changes his password in the userCP, this password isn't going to be valid. You know if it's possible to deactivate some UserCP fields (in our case, the password and possibly the e-mail) ? Thanks in advance |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|