Solved

Customized Login Script to Access DirectAdmin

Posted on 2004-04-23
7
526 Views
Last Modified: 2012-06-21
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.
0
Comment
Question by:r31ne
  • 4
  • 3
7 Comments
 
LVL 6

Accepted Solution

by:
CosminB earned 500 total points
ID: 10898169
make the action and the fields of the form be the same as the action of the form from DirectAdmin
something like:
<form action="/CMD_LOGIN" method="post" name="form">
<input type=hidden name=referer value="/">
Username: <input type="text" name="username">
Password: <input type=password name=password>
<input type=submit value='Login'>
</form>

you'll have to change "/CMD_LOGIN" to whatever DirectAdmin uses on your server
0
 
LVL 6

Expert Comment

by:CosminB
ID: 10898194
you can find out the action of the DirectAdmin form by going to the DirectAdmin login page and viewing it's source
0
 

Author Comment

by:r31ne
ID: 10898483
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.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 6

Expert Comment

by:CosminB
ID: 10898807
what do you mean nothing happend??
0
 

Author Comment

by:r31ne
ID: 10899341
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.
0
 

Author Comment

by:r31ne
ID: 10899682
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.
0
 
LVL 6

Expert Comment

by:CosminB
ID: 10900579
your welcome
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now