vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - vBulletin Ldap Authentication Plugin (https://vborg.vbsupport.ru/showthread.php?t=148573)

malcolmx 07-31-2008 07:22 AM

i assume you use active directory as ldap server?

if you want to give me the changes, please make a diff and post it here on the boards. i will look at the changes.

-malc

randycarroll 07-31-2008 07:28 AM

I'll send ya a PM with the actual file details.

It's Active Directory on Windows Server 2003.

edit: I'll put it up tomorrow -- I'm going to clean up/comment my code additions + its easier to manipulate files at work.
Laptop keyboard -- not for me.

edit: Hold off a little more, can we fix the missing arguments issue? At the end of controller.php when it calls upon function_login.php from VB, it is giving errors about missing arguments. I get these, however, I can still login no problem. Essentially, if I shut off verbose error reporting, I can use this script error free :-).

Warning: Missing argument 4 for verify_authentication(), called in [path]/ldapAuth/controller.php on line 98 and defined in [path]/includes/functions_login.php on line 135

Warning: Missing argument 5 for verify_authentication(), called in [path]/ldapAuth/controller.php on line 98 and defined in [path]/includes/functions_login.php on line 135

Warning: Missing argument 6 for verify_authentication(), called in [path]/ldapAuth/controller.php on line 98 and defined in [path]/includes/functions_login.php on line 135

malcolmx 08-01-2008 04:52 AM

look at the file forum_root/includes/functions_login.php. there you can find the function verify_authentication().

i didnt need to pass over some parameters, since thre is no need to verify.

text from my initial post:
Quote:

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

randycarroll 08-01-2008 05:36 AM

Quote:

Originally Posted by malcolmx (Post 1588917)
look at the file forum_root/includes/functions_login.php. there you can find the function verify_authentication().

i didnt need to pass over some parameters, since thre is no need to verify.

text from my initial post:

I'm eliminating the need for anonymous queries and modifying the script for authenticated binding.

malcolmx 08-01-2008 05:48 AM

thats nice.i didnt implement this, because some of my customers (when i sold the plugin) had problems with some tachnical aspects. the administrator of the company didnt even know what a DN is. so i never implemented this (in case there are more people that just know: right click, left click, right,...)

-malc

kev82 08-13-2008 09:50 AM

Would allowing (or enabling) admincp/modcp logins with this script be difficult? What would I need to do to enable it?

malcolmx 08-13-2008 10:05 AM

thats easy. but before you do that, you have to give users rights to access the admin /mod cp.

Code:

if(($vbulletin->GPC['logintype'] == "cplogin") || ($vbulletin->GPC['logintype'] == "modcplogin"))
{
        return;
}

try to remove this after you have set the rights. that should be the solution.

-malc

kev82 08-13-2008 12:18 PM

I commented this bit out and gave the proper permissions but that didn't seem to cut it... Could there be something else?

btw thanks for the fast reply, I didn't expect that :)

malcolmx 08-13-2008 12:26 PM

maybe, that was just a shot into the blue. i will try it in the next days and give you some hint.

-malc

kev82 08-18-2008 08:39 AM

Did you get a chance to look at this? I'm no good with vbulletin architechture so I couldn't figure this one out myself.


All times are GMT. The time now is 05:17 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.01265 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete