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 09-30-2004, 03:49 PM
kia44 kia44 is offline
 
Join Date: Sep 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Authentication against existing database

Hello,

I am a studnet worker and I am not very familiar with PHP. The place I work for has already bought vBulletin and is looking to use vBulletin as a forum for high school teachers where they can share their ideas or whatever. We have an existing database that includes all our users and passwords and email addresses, etc. The database is set up as a web service. My job is to figure out a way (hack) to call this database as a webservice using PHP, for authentication for vBulletin and copy the authentication information in to the mysql database for the forums. In a way, we want the mysql database for the forum to be an extension of our original database. I have done some reaserach and i am not sure how to go about this. I am suppose to use a SOAP header to encrypt, authenticate and authorize users. But my main problem is just calling the database/web service with PHP. Any ideas would be appreciated.

Thanks,

Kia

P.S. I do have WSDL files and also SOAP request and response samples available to me.
Reply With Quote
  #2  
Old 09-30-2004, 03:56 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmmm

lets see. What kind of database do you currently have (with the authentification information)? MSSQL, MySQL?

What you would probably have to do, is set up vBulletin (if you haven't done so yet), and then code some kind of import script which fetches the users from the old database and inputs them in the new one. Don't forget to add a $salt for each user and to encrypt the password with it.
Reply With Quote
  #3  
Old 09-30-2004, 04:28 PM
kia44 kia44 is offline
 
Join Date: Sep 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I took this straight out of the description I got from the project design document:

"The database may be implemented on any enterprise capable RDBMS, and will be fully SQL-92 compliant in its design. It is recommended at this time that SQL Server 2000 be used. The database will be accessed via XML Web Services to enable cross-platform integration for any end use application."

It's not a database we want to get rid of. It's the main database and I just need to get the information for authentication by calling it as a webservice. I am not sure if fetching and inputing the users would work. What would be the best way to call a web service using PHP? I guess that would be the first step.

Kia
Reply With Quote
  #4  
Old 09-30-2004, 04:57 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, it seems that's to high for me, sorry.

Still, good luck!
Reply With Quote
  #5  
Old 09-30-2004, 05:06 PM
kia44 kia44 is offline
 
Join Date: Sep 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, seems that way for me too, but I can't give up!

Thanks anyways,

If anyone else has any ideas let me know please!

Kia
Reply With Quote
  #6  
Old 09-30-2004, 06:02 PM
miz miz is offline
 
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey Kia44 i posted a hack that makes what you want
in here :
https://vborg.vbsupport.ru/showthrea...threadid=63972

hmm if you want i can costumize it to your needs
Reply With Quote
  #7  
Old 09-30-2004, 06:32 PM
kia44 kia44 is offline
 
Join Date: Sep 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not sure if that's really what I need. If you read the first post in the thread I think my problem would be a little more clear.
I forgot to put that the whole point is that I don't want users to have to register to use the forum, since they already have a username and password in my other database. I just want to call my database/web service using PHP and authenticate the users for the forum and then save the authentication information in the mysql database so next time they can be authenticated against that.

I might still be able to use your code alittle bit, but not much I don't think.

Thanks,

Kia44
Reply With Quote
  #8  
Old 09-30-2004, 06:40 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

me again...

I just wanted to mention that it might be worth discussing this project again, to see what the reasons for keeping that database are.

If you still find that that's the only way to go, here are some tips:

You'll have to add a user with those details anyway, as almost any action has an influence on the user table. That being things from permission checking (based on usergroup) to updating the post count or the lastvisit timestamp.

You might be able to adapt the login function to fit your needs. That should cover all the instances of logins, if you get it to work...

Once again, good luck!
Reply With Quote
  #9  
Old 09-30-2004, 07:00 PM
kia44 kia44 is offline
 
Join Date: Sep 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the database has to be kept, because different departments in the organization use the database to do the same thing or for other reasons. It is the main database for the company, and it can be used by different departments as a basis for user-identified software applications. It's not something I have control over considering this is such a huge organization and I am only a student worker. But yeah, I really appreciate the ideas and tips. So if you ahve anymore, send them my way!

Greets,

Kia
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 10:42 AM.


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.05582 seconds
  • Memory Usage 2,242KB
  • Queries Executed 13 (?)
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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete