Register Members List Search Today's Posts Mark Forums Read

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

vB Version: 4.0.0 Rating: (3 votes - 4.33 average) Installs: 26
Released: 02 Jan 2010 Last Update: Never Downloads: 408
Not Supported Uses Plugins Code Changes Additional Files Re-usable Code  

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:
  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/includes/xml directory
  4. in login.php search for:

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

    add hook after if statement, becomes:

    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 "Plugins & Products -> Download / Upload Plugins", use "Import Plugin Definitions XML File" at the bottom of the page, example import input './ldapAuth/ldap-plugin.xml'
  7. recheck if the include for controller.php is right
  8. in includes/class_bootstrap.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.

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

vBulletin 3.6 version

Download Now

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

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
Integration with vBulletin vBulletin Ldap Authentication Plugin malcolmx vBulletin 3.6 Add-ons 117 19 Jun 2013 13:18
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

Comments
  #2  
Old 02 Jan 2010, 23:04
Zate Zate is offline
 
Join Date: Apr 2003
Does this support native vb functions such as changing password, username or email address?
__________________
http://www.tamparacing.com - Floridas #1 Automotive Community
http://www.tampaforums.com - Tampa's #1 Place for Shennanigans
http://www.verbalwarfare.com.com - Unmoderated Offtopic Mayhem.
Reply With Quote
  #3  
Old 03 Jan 2010, 08:25
malcolmx malcolmx is offline
 
Join Date: May 2003
hello,

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.

greetings

-malc
Reply With Quote
  #4  
Old 09 Jan 2010, 01:54
yambert yambert is offline
 
Join Date: Jan 2010
A few things that could be more clear on the installation notes:

4. in login.php search for:


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

add hook after if statement, becomes:

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

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'
Reply With Quote
  #5  
Old 09 Jan 2010, 07:17
malcolmx malcolmx is offline
 
Join Date: May 2003
thanks for the suggestions. changes made!

-malc
Reply With Quote
  #6  
Old 19 Jan 2010, 04:13
DraculaVN DraculaVN is offline
 
Join Date: Aug 2005
Dear malcolmx !

Thanks for your plugin. Now I want to a question for you: How to config plugin if my LDAP don't allow anonymous queries.

Because my company don't allow anonymous queries.

Please help me !!!
Reply With Quote
  #7  
Old 19 Jan 2010, 05:37
malcolmx malcolmx is offline
 
Join Date: May 2003
Originally Posted by DraculaVN View Post
Dear malcolmx !

Thanks for your plugin. Now I want to a question for you: How to config plugin if my LDAP don't allow anonymous queries.

Because my company don't allow anonymous queries.

Please help me !!!
as there habe been alot of questions for this feature (in the "old" plugin, too) i will add it to the code. see it online within 2 days.

kind regards

-malc
Reply With Quote
  #8  
Old 19 Jan 2010, 06:52
DraculaVN DraculaVN is offline
 
Join Date: Aug 2005
Oh ... I'm feeling happy with your answer. I will waiting for your plugin. I donate this plugin .
Thanks so much
Reply With Quote
  #9  
Old 20 Jan 2010, 16:09
danlavu danlavu is offline
 
Join Date: Dec 2009
I hope this helps but I modified the controller.php so you can bind a username and password, so you do not need to open your ldap server.

My changes are below.

Add the following at


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

For every instance of $ldapConnection add the follow below the line. Should be two instances.

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

Make some changes to the if else statement, delete or comment out the following and change one variable.

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

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.
Reply With Quote
  #10  
Old 21 Jan 2010, 01:23
DraculaVN DraculaVN is offline
 
Join Date: Aug 2005
Oh thanks danlavu. I will check it.
Reply With Quote
  #11  
Old 21 Jan 2010, 02:25
DraculaVN DraculaVN is offline
 
Join Date: Aug 2005
I can't connect to my LDAP with danlavu's code.

Dear Malcolmx,

I'm waiting your new plugin. I hope it will successful.
Reply With Quote
  #12  
Old 21 Jan 2010, 16:07
danlavu danlavu is offline
 
Join Date: Dec 2009
If you want, pastebin what you have and I can take a look at it, because its working fine for me. Also if you modify controller.debug.php and make the changes, it'll give you a lot more information on what the error is, if you can pastebin that I certain i can help you get it working.
Reply With Quote
  #13  
Old 22 Jan 2010, 01:47
DraculaVN DraculaVN is offline
 
Join Date: Aug 2005
Dear danlavu,

Thanks for support. Can you send me your "controller.php" file you have repair it or you send me your plugin you config.

Thanks so much
Reply With Quote
  #14  
Old 22 Jan 2010, 02:06
danlavu danlavu is offline
 
Join Date: Dec 2009
Dracula,

I found a bug in my code, if I can it working without this bug I'll post a solution but in the meanwhile please disregard my solution, it allows users to login as long as they match a username in ldap, no actual authentication occurs.

So I apologize for prematurely posting any code.

Dan
Reply With Quote
  #15  
Old 22 Jan 2010, 07:49
danlavu danlavu is offline
 
Join Date: Dec 2009
OK, I finally got it working properly, here is my controller.php and ldapconfig.inc.php

controller.php (modified ldap parameters to bind to a database, and because I'm using AD, I changed my search filter to 'samaccountname' instead of uid.

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

ldapconfig.inc.php (Add user bind and pass variable)

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

I hope this helps.
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 11:37.

Layout Options | Width: Wide Color: