Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBulletin Ldap Authentication Plugin 1.0.1 Details »»
vBulletin Ldap Authentication Plugin 1.0.1
Version: 1.01, by malcolmx malcolmx is offline
Developer Last Online: Mar 2020 Show Printable Version Email this Page

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:
  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:
    PHP Code:
    if ($vbulletin->GPC['vb_login_username'] == '')
             {
              eval(
    standard_error(fetch_error('badlogin'$vbulletin->options['bburl'], ....
             } 
    add hook after if statement, becomes:
    PHP Code:
    (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
  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:
    PHP Code:
    $show['nopasswordempty'
    and change:
    PHP Code:
    defined('DISABLE_PASSWORD_CLEARING') ? 0
    to:
    PHP Code:
    defined('DISABLE_PASSWORD_CLEARING') ? 1
  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

File Type: zip ldapAuth_1.0.1.zip (6.4 KB, 406 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-14-2010, 08:07 PM
tuwebfacil tuwebfacil is offline
 
Join Date: Jan 2005
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is

Code:
<?php
//
// ldap configuration for vBulletin authentication against LDAP
// (c) andreas sartori, 2006
//

error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT', 'ldapconfig.php');

// Server Settings
$ldapServer = "dc2.mydomain.org";
$ldapPort = 389;
$ldapBase = "dc=mydomain, dc=org";

// Search Settings
$ldapEmailAttr = array( "mail" );
$noEmailExists = "";

?>
Reply With Quote
  #23  
Old 03-15-2010, 07:41 PM
FFSBC FFSBC is offline
 
Join Date: Apr 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried this with vbulletin 4-0-2 Patch Level 1 and Server 2003 AD with no luck. Installed Haqa's LDAP mod version 1.5 (which I had previously used with version 3.8.2 without issues) and it worked on the first try without any other tweaking:

https://vborg.vbsupport.ru/showthread.php?t=196596
Reply With Quote
  #24  
Old 03-22-2010, 01:45 AM
hamzi hamzi is offline
 
Join Date: Mar 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can ldap login work while also enabling non-ldap users to register ? Even if registration is done manually by the administrator? I like to have users who are'nt on the ldap directory to be able to be members of the forum. Any help would be much appreciated.

thanks
Reply With Quote
  #25  
Old 03-25-2010, 02:12 AM
hamzi hamzi is offline
 
Join Date: Mar 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hamzi View Post
can ldap login work while also enabling non-ldap users to register ? Even if registration is done manually by the administrator? I like to have users who are'nt on the ldap directory to be able to be members of the forum. Any help would be much appreciated.

thanks
I might have found a solution.

I have changed the 'Hook Location' for the Ldap plugin from 'ldap_login_hook(ldap)' to 'login_failure'. I presumed that this would force it to login as usual and on failure it will try ldap. This works now.

Can you see any problems with this?
Reply With Quote
  #26  
Old 03-29-2010, 05:11 PM
jgarland jgarland is offline
 
Join Date: Mar 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

These are the worst instructions I have encountered in a long time. Your target audience varies, I am not stupid, and there doesnt seem tot be that many steps, yet this thread is unclear and I couldnt get it to work. I will move on to another LDAP plugin in hopes it works. Would be great if you could write them step by step.
Reply With Quote
  #27  
Old 03-29-2010, 05:16 PM
jgarland jgarland is offline
 
Join Date: Mar 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The are the worst instructions. Why write a program if you arent taking the time to write instructions properly. I will review other ldap plugins.
Reply With Quote
  #28  
Old 04-01-2010, 06:29 PM
danlavu danlavu is offline
 
Join Date: Dec 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

jgarland,

That is completely unnecessary, a lot of people here do this on their spare time and all we're trying to do is help. So why don't we help you get it working, because it does work and you can contribute like the rest of us and write some better documentation?
Reply With Quote
  #29  
Old 05-20-2010, 05:38 PM
cowbert cowbert is offline
 
Join Date: May 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Auth works but fails to create the user if the user does not already exist in vB, so you get logged out as soon as it redirects after logging in.
Reply With Quote
  #30  
Old 05-24-2010, 07:51 PM
kfurloni kfurloni is offline
 
Join Date: May 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I have tried this add on in 4.0.0 and i'm it is not functioning.
Is there a log file i can check to see if it trying to log onto the server? how can i troubleshoot this?

Keith
Reply With Quote
  #31  
Old 06-27-2010, 03:23 AM
medikdave medikdave is offline
 
Join Date: Jun 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kfurloni View Post
Hi,

I have tried this add on in 4.0.0 and i'm it is not functioning.
Is there a log file i can check to see if it trying to log onto the server? how can i troubleshoot this?

Keith
I have the same request. Is there any way to debug the process?

Dave
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 03:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08922 seconds
  • Memory Usage 2,342KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (5)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete