Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2002, 11:04 PM
Drau87 Drau87 is offline
 
Join Date: Jun 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default This is a bit complex...someone plz help me

Ok well I have on my site a gallery that allows people to upload and download files, but they have to be members of the gallery to upload and download....I want to know if there is a way to 'link' the members of my vb to the gallery...so that all the members on the forums will be added to the gallery with the same username and password, and if a member joins the vb, itll update on the gallery and vice versa, as well as if someone changes their password...so they will be synchronized. Also the Gallery and the Forums are on diffrent servers...Is there a way to do this? and if any of you can help please do^^
Reply With Quote
  #2  
Old 12-13-2002, 05:52 PM
bostonhack bostonhack is offline
 
Join Date: Dec 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hacked a mod to the Apache Authorization (mod_auth_mysql) to have it use the same username and passwords (and group) that VBulletin creates... (Vbulletin uses md5 encryption and the base mod uses crypt encryption).

I'm running it on the same machine but (theoretically) it should work on different servers (you'd need the mysql client on the gallery machine).

If this makes sense to you, I'll send you my hack and basic instructions... I'm sorry, but I not going to be able to provide any additional support.
Reply With Quote
  #3  
Old 12-13-2002, 10:43 PM
Drau87 Drau87 is offline
 
Join Date: Jun 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Eh..well send the hacking instructions anyway...ill eiter get it or not, it cant hurt^^
Reply With Quote
  #4  
Old 12-14-2002, 02:08 PM
bostonhack bostonhack is offline
 
Join Date: Dec 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I started on linux with the mod_auth_sql at this location: http://sourceforge.net/projects/modauthmysql/ (this uses the crypt function, but vbulletin uses the md5 function - so it's possible to change vbulletin to use crypt... but then all your users would have to reenter new passwords ;( )

I didn't take the time to generalize this - the instructions above use the apxs program to link - but I needed to link in the md5.o library and just built my own shell script to do this. You'd need to make the appropriate changes for your system.

The attached file also include the httpd.conf file that defines the authorization. I started with /is to figure out what mod_auth is all about (use an .htaccess file created by htpasswd), then /is2 was using the instructions from the above, /is3 was a test using md5 passwords, /is4 was the final test using vbulletin tables (it ends up doing a join (result by specifying the fields this weird way)) that ties the group you belong to in vbulletin (you can say "require group Administrator" for example). (P.S. - it would be nice if vbulletin allowed you to belong to multiple groups - maybe another day)

Oh, if you're going to try /is2 - when you create the passwords, you need to "insert into user_info values("uname",encrypt("passwd"));" or for /is3 (md5) "insert into user_info values("uname",md5("passwd"));

Good luck!

Thanks to the original authors and contributors:

* http_auth_msql: authentication
*
* Rob McCool & Brian Behlendorf.
*
* Adapted to Shambhala by rst.
*
* converted to use MySQL by Vivek Khera <khera@kciLink.com>
*
* now maintained by Sam Brauer <sbrauer@users.sourceforge.net>
Attached Files
File Type: zip vbmodhack.zip (28.5 KB, 12 views)
Reply With Quote
  #5  
Old 12-16-2002, 06:15 PM
Drau87 Drau87 is offline
 
Join Date: Jun 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...eheheh...as i feared....Haha well sorry but your last post was like another language to me...But thanx a lot for trying to help^^

Well...uhh does anyone know of a more...simplistic way? [forgive mah stupidity^^]
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 11:16 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07646 seconds
  • Memory Usage 2,214KB
  • Queries Executed 12 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete