vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   LDAP Single Sign-On (https://vborg.vbsupport.ru/showthread.php?t=217610)

anthonym16 07-01-2009 07:37 PM

LDAP Single Sign-On
 
I've developed some code that does LDAP integration based on a couple of the popular LDAP plug-ins available on this site. I created my own hook in login.php and that's worked out well so far. I'd like to take it to the next level and provide single sign-on support.

I'm running IIS. After the user's browser authenticates, my code grabs $_SERVER["LOGON_USER"] and queries AD for a valid user. I've tested this code in pieces separate from vb with limited success. The roadblock that I'm at currently is that I'm not sure what vb hook to attach this code to.

In my debug output in vb, I see that init_startup is the first hook called. Is that the route I should take? global_setup_complete also seems promising. Any suggestions?

Dismounted 07-02-2009 04:49 AM

init_startup is a good place to start, as it is run before most code, allowing you to manipulate more things before "runtime". Note that many vBulletin variables are not available at init_startup, purely because it is so early.


All times are GMT. The time now is 06:25 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.00912 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete