vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   switching to crypted passwords: too simple ? (https://vborg.vbsupport.ru/showthread.php?t=23921)

gedescamps 07-29-2001 01:05 AM

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 :mad:
but what :confused: ?

Thanks,

JamesUS 07-29-2001 07:05 AM

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.

Ivan 07-29-2001 03:37 PM

You must look at this hack first
http://vbulletin.com/forum/showthrea...threadid=18868
and customise it to use your encryption scheme.

CoffeeMugDude 07-29-2001 07:53 PM

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... :D

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)

gedescamps 07-30-2001 03:11 PM

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 ?

JamesUS 07-30-2001 03:15 PM

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.


All times are GMT. The time now is 12:35 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.00981 seconds
  • Memory Usage 1,723KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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