Hello,
I'm new about Arduino and was looking for a webpage where than you have done the logon with default ID and password, like user;user, you can change them in new ID and new password.
Also in the same page, you can change default IP and gatway in new Ip and gatway, before to do something.
I hope to have been clear.
thanks for your help.
No it's not clear. Are you talking about the arduino as a web server? With Ethernet shield? With wifi shield? Your router?
Yes, I'm talking about the arduino as a web server, with Ethernet shield.
Practically when you connect with your browser to arduino server, it will give you a web page where
You can do a logon with username and password, if it is, for example, user/user you can go to the page
Where can read some information.
If it is admin/admin you go in an other page where change the all IP configuration(IP,Subnet,Gateway,DNS) and
Username and password of user and admin.
I hope to be clear this time.
Thanks
Before trying to get the Arduino to implement such a scheme, you should try running a web server on your PC, and developing the login page and user and admin pages there.
Determine what you need to do to get the login page to appear. Determine how you will react to the submit action. Determine how you will verify the supplied credentials. Notice how the password is sent as clear text. Oooh, that's not good. Now, determine how you will remedy that.
When you have that worked out, determine how to redirect the user to the appropriate page (user or admin).
Now, notice how easy it would be to bypass the login page, and go directly to the user or admin page. Figure out how to make an attempt to go directly to the user or admin page without having gone through the login page redirect to the login page.
When you have a complete understanding of how to do all that, you'll see that implementing most of that on the Arduino is trivial. The encryption/decryption of the passwords will be the biggest challenge.
It doesn't make sense to configure the web server's network info,(ip, gateway etc). You would lose your connection the moment you make the change. It's more secure if that was done in the hard code.
Also why do that on the device?
Use DHCP and then config IP etc it on the router.
mistergreen:
It doesn't make sense to configure the web server's network info,(ip, gateway etc).
Sure it does. If you want those parameters to be adjustable and your only interface to the device is through the web browser, there is only one way to adjust them.
Yes you'll lose your connection once the change is made. Nothing says that the change has to be immediate. User could have to do a power cycle. Maybe there is a 10-15s countdown before the web browser tries to reconnect (like many routers do). Plenty of intelligent ways to implement that.
Sincerly, I found 2 ways:
one can be storage IP, Gatawey, etc on SD and running from there.
it is easy to change them how you want.
the problem in this case is for the password.
Second case, can be storage everything in the eeprom.
this one can be safe but more complicate, but more professional.
I am following the first case, but I have some problem with the
password.
Storage also it on the SD? or what?
do you have some code?
thanks
You have to change your password from the router interface not the arduino. The arduino is just another device in a network.