Link to home
Start Free TrialLog in
Avatar of r31ne
r31ne

asked on

Customized Login Script to Access DirectAdmin

I currently offer hosting solutions to my clients and want them to easily login to their control panel thru my site's main page. I have a reseller account using DirectAdmin instead of CPanel.

How can I pass data sent thru my customized login to DirectAdmin? I have a basic form that asks for the username and password - now I want this passed to DirectAdmin for validation before the client can access his control panel.
ASKER CERTIFIED SOLUTION
Avatar of CosminB
CosminB

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CosminB
CosminB

you can find out the action of the DirectAdmin form by going to the DirectAdmin login page and viewing it's source
Avatar of r31ne

ASKER

CosminB, nothing happened. I mean I used this action:

action="http://my-ip-address:2222/CMD_LOGIN"

and nothing happened. It didn't even processed the form - both in IE and Mozilla.
what do you mean nothing happend??
Avatar of r31ne

ASKER

My first try: Nothing happened because the </form> tag came before the submit button. That's my fault.

My second try: Got a 404 error.
Avatar of r31ne

ASKER

It's my fault why I got a 404 error in my second try. I forgot the referrer field.

Thanks for the replies, CosminB. It's working perfectly now and I accept your answer.
your welcome