Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBulletin Ldap Authentication Plugin Details »
vBulletin Ldap Authentication Plugin
Mod Version: 1.00, by malcolmx (Member) malcolmx is offline
Developer Last Online: Jun 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.10 Rating: (9 votes - 4.67 average) Installs: 41
Released: 31 May 2007 Last Update: Never Downloads: 474
Not Supported Uses Plugins Code Changes Additional Files Re-usable Code Translations  

I am using vbulletin for a long time now and before there was the plugin system introduces i hacked every single version of vb to enable ldap authentication. with the introduction of the plugin system i have written a little plugin that works in every version since VBulletin 3.5. This Plugin is the buyable VBulletin Ligh Authentication from http://www.sartori.at. now its FREE.

Since its working and i will not enhance this small plugin anymore, i will make it public. If there are any enhancements, i can put it into my versioning system and update this plugin.

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:
  1. copy ldapAuth directory to your vb forum installation directory
  2. change the path to controller.php directory in ldap-plugin.xml
  3. copy the hooks_ldap.xml to FORUM_ROOT/inclucdes/xml directory
  4. in login.php search for:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    insert below:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  5. activate plugin system (if not done already) in admincp
  6. in admin cp import the product at "Download / Upload" Plugins
  7. in global.php search for:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    and change:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    to:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  8. configure the ldap settings in: ldapconfig.inc.php
  9. 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.

Download Now

Only licensed members can download files, Click Here for more information.

Addons

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks LDAP Authentication Haqa Modification Graveyard 148 10 May 2013 14:50
Integration with vBulletin LDAP Authentication zemic vBulletin 3.6 Add-ons 61 08 Mar 2010 23:18

  #106  
Old 24 Feb 2009, 21:52
Rondo44 Rondo44 is offline
 
Join Date: Oct 2008
what was the line of code to add for this functionality and to what file. if i may ask. thank you
Reply With Quote
  #107  
Old 05 Jul 2009, 21:06
Johnny G Johnny G is offline
 
Join Date: Mar 2009
Real name: John Gaskell
Hi - first post, newbie alert, etc.
I've taken over running a forum which has around 5000 members. Now, we've got an online shop (which isn't quite live yet) running on OSCommerce and I'm just in the process of putting Joomla! on the site.

Now, I know LDAP from work, but there's a wondering I've got about how this works.

Firstly, if I install this mod on a clean LDAP database, how can I import the 5000 usernames from the vBulletin installation?

Would I be correct in assuming that when a user logs in to the forum, the LDAP would be checked, then report no such user. Then vB would be queried and report a success - with the LDAP then taking in the information from vB.

... or have I got this completely wrong. If so, any pointers on how to get the users in the LDAP DB?

Thanks in advance!
Reply With Quote
  #108  
Old 13 Jul 2009, 15:21
Aylwin Aylwin is offline
 
Join Date: Mar 2005
Originally Posted by Johnny G View Post
Would I be correct in assuming that when a user logs in to the forum, the LDAP would be checked, then report no such user. Then vB would be queried and report a success - with the LDAP then taking in the information from vB.
I think your understanding is the wrong way 'round.

The plugin will kick in after failed vB login. In other words, any users that are on vB already can login directly. For users that are not yet registered, they are checked from the LDAP. If they are on LDAP but not on vB then a new user is created.

So, LDAP does not get information from vB. vB is the one that gets information from LDAP. Your existing 5000 users will continue to use vB as before. There is no need to move them to LDAP.
Reply With Quote
  #109  
Old 13 Jul 2009, 15:25
Aylwin Aylwin is offline
 
Join Date: Mar 2005
How to debug '$newuser->errors'?

In controller.php, there is an if condition that checks for errors before a new user is created:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

How can I check what exactly the error is?

If I remove the if condition and force the new user to be created, I get the following error message:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #110  
Old 15 Nov 2009, 11:07
drsox drsox is offline
 
Join Date: Nov 2009
Fantastic, I had to make a few changes to the line which logs people in once they have passed authentication, other than that - perfect.

Thanks malcolmx!

Tom - www.mouselike.org
Reply With Quote
  #111  
Old 28 Dec 2009, 21:43
ysam ysam is offline
 
Join Date: Dec 2009
Ok I am confused now.. Which LDAP mode has better support and has anyone got it to work on vb4 yet?
Reply With Quote
  #112  
Old 29 Dec 2009, 10:04
malcolmx malcolmx is offline
 
Join Date: May 2003
i have already installed a test system with vb4 and i think a new version with vb4 support will be out in the first week of january.

malc
Reply With Quote
  #113  
Old 30 Dec 2009, 00:32
ysam ysam is offline
 
Join Date: Dec 2009
Thank you Malc,

since I am testing the whole ldap functionality starting with Haqa's mod,
I am realy looking forward to see yours as well since both are very interesting implementations.
Reply With Quote
  #114  
Old 02 Jan 2010, 12:49
malcolmx malcolmx is offline
 
Join Date: May 2003
plugin is ready for vbulletin version4

http://www.vbulletin.org/forum/showthread.php?t=231909
Reply With Quote
  #115  
Old 14 Feb 2011, 21:49
Dwayne Dwayne is offline
 
Join Date: May 2005
Originally Posted by rrusinko View Post
I am new to using plugins for vBulletin and the error is probaly basic.
I downloaded the plugin and followed the directions, but when I get to step 6:
I receive a message "invalid file specified".
Step 6 is in admin cp import the product at "Download / Upload" Plugins
I am using the plugin hooks_ldap.xml located in the ./includes/xml/.

Any help would be appreciated.

I'm getting this, not sure how to resolve.


Also does this work ok with OpenLDAP (linux debian), seems pretty AD heavy?
Reply With Quote
  #116  
Old 16 Feb 2011, 19:01
malcolmx malcolmx is offline
 
Join Date: May 2003
Originally Posted by Dwayne View Post
I'm getting this, not sure how to resolve.


Also does this work ok with OpenLDAP (linux debian), seems pretty AD heavy?
sure, i am running it with sun enterprise ldap server. it doesnt matter which ldap server you use.

-malc
Reply With Quote
  #117  
Old 14 Apr 2011, 01:05
Dwayne Dwayne is offline
 
Join Date: May 2005
Sweet thanks for the reply.

I'll have another crack at it today.

OU=People,dc=host,dc=co,dc=nz
uid=
Reply With Quote
  #118  
Old 19 Jun 2013, 13:18
MatthewCheatle MatthewCheatle is offline
 
Join Date: Nov 2011
Hi,

Brilliant plugin.

Has anyone had problems with cookies. Basically when I use the hook and tick the 'Remember Me' box it doesn't remember me when I close the browser and relaunch it. If I disable the hook it works. Any idea how to fix this.

Thank you.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:27.

Layout Options | Width: Wide Color: