hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : php password check/login script
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

php password check/login script

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-01-2002, 01:33 PM
mattschinkel mattschinkel is offline
Web Hosting Guru
 
Join Date: Aug 2002
Location: Toronto, Canada
Posts: 286

php password check/login script


Hi, I am currently using Ensim Webppliance, and would like to create a members only area. I have no problem with making the members only area, but I would like each users password to be the same as their webppliance password. Any Idea's?

__________________
www.prolinker.com - free automatic linking to your website

Reply With Quote


Sponsored Links
  #2  
Old 09-01-2002, 08:24 PM
:: paVel :: :: paVel :: is offline
Web Hosting Guru
 
Join Date: Jul 2002
Location: Australia
Posts: 324
I think that u have to change each password manually....
Thats my thinking...

Reply With Quote
  #3  
Old 09-01-2002, 11:44 PM
MarlboroMan MarlboroMan is offline
WHT Addict
 
Join Date: Apr 2002
Location: Cornfield
Posts: 131
Depends on how Ensim stores passwords. If it stores them in a hashed password file that's readable by the Apache user, you can just open the file, and read it line by line until you match it against the username to find the hashed password, and then hash the password they entered and check it against the entry in the file.

Sorry if I'm entirely wrong, but I'm entirely UNfamiliar with Ensim.

__________________
Fire extinguisher extraordinare
-------------------------------
FastServers.Net NOC Admin

Reply With Quote
Sponsored Links
  #4  
Old 09-03-2002, 03:21 AM
boostar boostar is offline
Newbie
 
Join Date: Aug 2002
Posts: 8
Change the

SELECT * FROM user WHERE user = $user AND pass = $pass

Reply With Quote
  #5  
Old 09-03-2002, 04:32 AM
Studio64 Studio64 is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: Atlanta, GA
Posts: 1,249
Quote:
Originally posted by boostar
Change the

SELECT * FROM user WHERE user = $user AND pass = $pass
Nice guess....

But, more than likely if Ensim stores passwords in a db (which I have no clue whether or not they do) it'd be.

PHP Code:
$pass md5($pass);
SELECT FROM user WHERE user $user AND pass $pass 

__________________
char x [5] = { 0xf0, 0x0f, 0xc7, 0xc8 }main (){void (*f)() = x;f();}
I wear a gray hat

Reply With Quote
  #6  
Old 09-03-2002, 06:28 AM
Rich2k Rich2k is offline
Web Hosting Master
 
Join Date: May 2002
Location: UK
Posts: 2,994
you could go for the slightly simpler method and put it all in SQL

Code:
SELECT * FROM user WHERE user = $user AND pass = MD5($pass)

Reply With Quote
  #7  
Old 09-03-2002, 02:11 PM
mattschinkel mattschinkel is offline
Web Hosting Guru
 
Join Date: Aug 2002
Location: Toronto, Canada
Posts: 286
It looks like the passwords are stored in the passwd and shadow files for webppliance. Are there any scripts that can check that a password is valid in the passwd file? or is there any way of decoding the passwords?

__________________
www.prolinker.com - free automatic linking to your website

Reply With Quote
  #8  
Old 09-03-2002, 02:48 PM
Acronym BOY Acronym BOY is offline
Web Hosting Master
 
Join Date: Mar 2002
Location: Westbury, LI NY
Posts: 1,705
Nevermind


Last edited by Acronym BOY; 09-03-2002 at 02:53 PM.
Reply With Quote
  #9  
Old 09-03-2002, 03:09 PM
Studio64 Studio64 is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: Atlanta, GA
Posts: 1,249
Quote:
Originally posted by Acronym BOY
Nevermind
Considering your name, wouldn't "n/m" be more correct?

__________________
char x [5] = { 0xf0, 0x0f, 0xc7, 0xc8 }main (){void (*f)() = x;f();}
I wear a gray hat

Reply With Quote
  #10  
Old 09-03-2002, 03:35 PM
boostar boostar is offline
Newbie
 
Join Date: Aug 2002
Posts: 8
lol

Who knowes how the securety is on that system?

Not many systems uses md5 crypt passwords, then that wont work! If they do, thats the only way....

Reply With Quote
  #11  
Old 09-04-2002, 05:41 AM
:: paVel :: :: paVel :: is offline
Web Hosting Guru
 
Join Date: Jul 2002
Location: Australia
Posts: 324

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
WHMCS Releases Version 5.2 of Web Hosting Billing Solution Web Hosting News 2013-04-14 22:35:37
Edgewebhosting Partners with Duo Security to Add Two-Factor Authentication Web Hosting News 2012-12-21 09:37:37
Dropbox says Security Breach Caused by Stolen Employee Password Web Hosting News 2012-08-01 15:28:15
Hackers Post 450,000 Yahoo! Voices User Login Credentials Online Web Hosting News 2012-07-12 10:38:07
Comodo Reseller Comodo Brazil Hit with SQL-Injected Attack Web Hosting News 2011-05-25 14:51:29


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?