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,
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,