Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2010, 01:32 PM
vicelover's Avatar
vicelover vicelover is offline
 
Join Date: Dec 2009
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Store Password as plain text

Hi,

For some reason, I need make all the users' passwords stored as plain text in DB. How to do it?

Thanks in advanced.

Best Regards,

vicelover
Reply With Quote
  #2  
Old 03-13-2010, 09:17 PM
CoRRuPtD CoRRuPtD is offline
 
Join Date: Dec 2008
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vicelover View Post
Hi,

For some reason, I need make all the users' passwords stored as plain text in DB. How to do it?

Thanks in advanced.

Best Regards,

vicelover
Why would you want to do that?
Reply With Quote
  #3  
Old 03-13-2010, 09:21 PM
Andrei29 Andrei29 is offline
 
Join Date: Mar 2010
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting. Any possibility to store the password as plain text instead of those 32 char ?
Reply With Quote
  #4  
Old 03-13-2010, 10:40 PM
zanthor zanthor is offline
 
Join Date: Dec 2009
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's an effective way to harvest e-mails and passwords which you can then use to try and steal other accounts that have e-mail recovery options on them.

I can't think of any legitimate reason to want to store passwords in plain text.
Reply With Quote
  #5  
Old 03-13-2010, 10:43 PM
War.Frog's Avatar
War.Frog War.Frog is offline
 
Join Date: Aug 2009
Location: Ontario, Canada
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL. I can't think of a single need for this. If your users are happy enough to oblige, why don't you just start a thread and ask them to post those details?

By the way - I need your credit card numbers and expiry dates.
Reply With Quote
  #6  
Old 03-14-2010, 02:07 AM
vicelover's Avatar
vicelover vicelover is offline
 
Join Date: Dec 2009
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At first, thanks for any kind of reply. Steal is ashame.

Add an explanation for why I ask that question.

I use vB embed into my site, they have separate DB, and the password of user should be saved as the same.

The encryption scheme vB used is MD5 , but I want to use another encryption scheme in my site coded by other program language. How to make the password stored in vB's DB is the same one in my site's DB?
Reply With Quote
  #7  
Old 03-17-2010, 03:30 PM
zanthor zanthor is offline
 
Join Date: Dec 2009
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vicelover View Post
At first, thanks for any kind of reply. Steal is ashame.

Add an explanation for why I ask that question.

I use vB embed into my site, they have separate DB, and the password of user should be saved as the same.

The encryption scheme vB used is MD5 , but I want to use another encryption scheme in my site coded by other program language. How to make the password stored in vB's DB is the same one in my site's DB?
Now this is something I can get behind, you don't actually want their username and password data, you just want it stored properly.

I hacked a bridge between vb4 and eqdkp's web product recently, basically the idea is that you need to chose which product will control their usernames and passwords, and then bridge that information into the other.

In my example I modified the login process of EQDKP to present the U/P to vbulletin, if it matched and the user was successfully logged in, I had EQDKP update the password in it's own database using it's own salt. I also had both apps set their cookies at this time so logging into the main application logged you into the secondary.

I wish I could provide sample code, but shortly after doing this I migrated hosts and as part of that migration cleaned up the stuff I wasn't using... and tossed eqdkp to the bin.
Reply With Quote
  #8  
Old 03-18-2010, 02:02 AM
vicelover's Avatar
vicelover vicelover is offline
 
Join Date: Dec 2009
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zanthor View Post
Now this is something I can get behind, you don't actually want their username and password data, you just want it stored properly.

I hacked a bridge between vb4 and eqdkp's web product recently, basically the idea is that you need to chose which product will control their usernames and passwords, and then bridge that information into the other.

In my example I modified the login process of EQDKP to present the U/P to vbulletin, if it matched and the user was successfully logged in, I had EQDKP update the password in it's own database using it's own salt. I also had both apps set their cookies at this time so logging into the main application logged you into the secondary.

I wish I could provide sample code, but shortly after doing this I migrated hosts and as part of that migration cleaned up the stuff I wasn't using... and tossed eqdkp to the bin.
Thanks a thousand.

This morning(GMT +8) I just solved this nut. The main idea is, just like what you said, to choose one product as the main enter for user login.

I'm very glab to receive your sample code in your convience. ( I'll send my email address via PM.)

Thanks again for your warmhearted help. :up:

Best Regards,

Jerry
Reply With Quote
  #9  
Old 04-03-2010, 10:30 PM
shyguy82 shyguy82 is offline
 
Join Date: Feb 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

zanthor,

Any way you can share you piece of code with me? I too have another site, written in .NET that I want to "marry" with vB. I dont want to keep 2 sets of users but I want to authenticate people in .NET site using vB's users base.

Thanks in advance
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 09:57 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.04142 seconds
  • Memory Usage 2,241KB
  • Queries Executed 11 (?)
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
  • (3)bbcode_quote
  • (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_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