Web Hosting Talk







View Full Version : get cpanel hash password


mindnetcombr
10-26-2004, 11:45 PM
Hello,

I have one reseller account with WHM/cPanel. In my website, I offer to all my customers a control panel to view bills, access especial files, get support etc.

This work fine, but all customers need to use two passwords: one in cPanel and another to website control panel (in my site, writed in php).

I know how-to integrate this, just need the hash password stored in cPanel, when a user try to login in website, my script transform the password in hash and compare with hash in cPanel.

Im write my own application to create, delete, suspend and unsuspend accounts in WHM, I don't use modernbill or others softwares.

Anyone kwow how (in PHP, Perl etc) get the password in cPanel/WHM ? I know this password is encrypted, but I think all passwords are stored in MD5 HASH, or another format.

It's possible ? Or someone have a tip to integrate the login of cPanel with one external script ?

thank, my english is poor.

Alvaro - Rio de Janeiro - BRASIL

w33t
10-27-2004, 01:11 AM
You might want to try over on cpanel.net. They have forums over there where the developers go every day to answer questions

Steven
10-27-2004, 01:17 AM
the password is stored in the /etc/shadow file as md5

lemel
10-27-2004, 02:34 AM
/etc/shadow you can't access with reseller permissions right?

kosmo
10-27-2004, 10:46 AM
Use the username/password provided to connect to ftp or to the mail server. If connection is successful, the login data provided is correct.

kosmo