Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by gedescamps (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-29-2001 Last Update: Never Installs: 0
 
No support by the author.

Hi,

I'm using vBulletin in an intranet, where
we already have several applications all with SSO
(single sign-on) based on unix login/passwd
like CVS, Bugzilla...

I wrote a script to synchronize my database into vBulletin.

As I'm a Unix user, I have only access to the crypt password,
not the plain password, so I populated the field password
into the table user with the crypted passwd (second field
of the yellow pages map).

Then I looked into hacking vBulletin to support crypted passwords.
I only had to change ONE line:
diff -r1.1 member.php
47c47
< if ($user[password]!=$password) { // check password
---
> if ($user[password]!=crypt($password,substr($user['password'],0,2))) {
// check password

it seems to work, but I'm a bit concerned:
it's too simple.

I've surely missed something
but what ?

Thanks,

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-29-2001, 07:05 AM
JamesUS's Avatar
JamesUS JamesUS is offline
 
Join Date: Oct 2001
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it does seem a bit too simple.

You should take a look at the Admin CP login routine, as well as the 'forgotten password' feature. I guess register and change profile would be an issue as well if you plan to use those.
Reply With Quote
  #3  
Old 07-29-2001, 03:37 PM
Ivan
Guest
 
Posts: n/a
Default

You must look at this hack first
http://vbulletin.com/forum/showthrea...threadid=18868
and customise it to use your encryption scheme.
Reply With Quote
  #4  
Old 07-29-2001, 07:53 PM
CoffeeMugDude CoffeeMugDude is offline
 
Join Date: Nov 2001
Location: South Africa
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi gedescamps,

I had a similar problem using MD5. Only when I couldn't log into my CP did I realise there were more changes...

There are 3 files to change:

member.php (lost password, logon, etc.)
register.php (initial registration)
admin/sessions.php (for passwords into CP)

Also see: http://www.vbulletin.com/forum/showt...threadid=23957 (A hack I released covering MD5 encrypted passwords)
Reply With Quote
  #5  
Old 07-30-2001, 03:11 PM
gedescamps
Guest
 
Posts: n/a
Default

Good, it seems that it is that simple...

vBulletin is a slave of the Unix login/passwd
1) registration is disabled.
2) no simple way to get clear-text password
(of course, there is always crack...)
I modified the mail template to tell users
to use their usual Unix login/passwd,
or go see a Sysadmin if they forgot it.
3) Everynight a script synchronize Unix (Yellow pages)
on vBulletin.

I left the special account for administering
vBulletin with its clear-text password (Argh !)

Thanks for vBulletin. Looks great !
I'm about to see how my 220 users are going to react to it.

PS: I realized that there was no standard place for the full name.
(first name, middle initial, last name)
Will it be possible to have this in the next version ?
Reply With Quote
  #6  
Old 07-30-2001, 03:15 PM
JamesUS's Avatar
JamesUS JamesUS is offline
 
Join Date: Oct 2001
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by gedescamps

PS: I realized that there was no standard place for the full name.
(first name, middle initial, last name)
Will it be possible to have this in the next version ?
You could add this yourself with the 'Custom Profile Fields' feature in the control panel.
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:52 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.03899 seconds
  • Memory Usage 2,240KB
  • Queries Executed 19 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (3)postbit_onlinestatus
  • (6)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete