Invalid user name - EAP

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Invalid user name - EAP

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Invalid user name - EAP
Invalid user name - EAP
2017-05-15 08:36:04
Model :

Hardware Version :

Firmware Version :

ISP :

I installed eap controller 2.4.7 and create a username and password. Into login page, i can access normally, but using http post request like https://127.0.0.1:8043/login (by postman) with same credentials, is returned: "Invalid user name.".


Can anyone help me? How is that possible?

EAP Controller: http://www.tp-link.com/en/download/EAP110.html#Controller_Software

What i tried: http://www.tp-link.com/us/faq-928.html


Below, the evidences:











  0      
  0      
#1
Options
8 Reply
Re:Invalid user name - EAP
2017-05-15 09:02:06
The username field must be userName, not name n the POST form.
༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#2
Options
Re:Invalid user name - EAP
2017-05-15 09:24:34
The form's field for the username must be userName, not name. Note the uppercase 'N'.

The info in the FAQ is wrong.
༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#3
Options
Re:Invalid user name - EAP
2017-05-15 09:32:50
Try it with content-type application/x-www-form-urlencoded instead of raw. It works for me using curl with this content type.
༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#4
Options
Re:Invalid user name - EAP
2017-05-16 07:13:49
Thanks R1D2, now I got success to log in.

But I have another problem, in the next step 8 of http://www.tp-link.com/us/faq-928.html, I tried make a "fake" request, only to get a JSON and test before build my app. So, all my requests generated a HTTP Error 400:



  0  
  0  
#5
Options
Re:Invalid user name - EAP
2017-05-16 23:04:08
Thanks R1D2, now I got success to log in. But I have another problem, in the next step 8 of http://www.tp-link.com/us/faq-928.html, I tried make a "fake" request, only to get a JSON and test before build my app. So, all my requests generated a HTTP Error 400:
  0  
  0  
#6
Options
Re:Invalid user name - EAP
2017-05-17 06:30:04
I'm not sure, but probably now you have to use raw mode. The difference is that with the login request you simulate filling in a form and submitting it, while the request for authentication might be processed differently. Try raw mode and set Content-type and Content-length header appropriately. Just a guess.

Unfortunately TP-Link's documentation for Business Class devices is lacking details needed for proper integration in customized systems. While I understand the (intentional) lack of technical details in the documentation for SOHO equipment to keep the average user happy, I think for SMB equipment TP-Link should make a little more in-depth documentation available, at least to system integrators such as you and me.
༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#7
Options
Re:Invalid user name - EAP
2017-05-17 07:28:44
Nice R1D2 , you were right! It worked! I changed to raw and text/plain and i got the json. You are correct, this docs are not enought to build an app, we need more information and examples. But now i can continue and do more tests.


Thank you very much! :D
  0  
  0  
#8
Options
Re:Invalid user name - EAP
2017-05-17 07:37:07

gjunior022 wrote

Thank you very much! :D


Glad it worked! So it saves me time for a test on my own, thank you for the feedback! :D
༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#9
Options

Information

Helpful: 0

Views: 3401

Replies: 8

Related Articles