Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to dispaly login Form #14

Open
BDZK opened this issue Jun 22, 2024 · 11 comments
Open

Unable to dispaly login Form #14

BDZK opened this issue Jun 22, 2024 · 11 comments
Labels
invalid This doesn't seem right

Comments

@BDZK
Copy link

BDZK commented Jun 22, 2024

Hi
I have installed your software on openwrt.
i have this error on login page Error, An error occured. Please retry.

in the log i have :
daemon.err uhttpd[4138]: uspot: 10.1.8.178 - config not found for "null"

Can you help me please?

@BDZK
Copy link
Author

BDZK commented Jun 23, 2024

It seems that the login script cannot get the mac address, IP etc. of the client. I wonder why. Maybe i nee to install manually a dependency?

@f00b4r0
Copy link
Owner

f00b4r0 commented Jun 24, 2024

Please provide:

  • OpenWrt version
  • output of opkg list-installed | grep uspot
  • contents of /etc/config/uspot, /etc/config/firewall, /etc/config/dhcp, /etc/config/uhttpd - mask private information such as passwords
  • output of logread -e uspot when the problem occurs

@BDZK
Copy link
Author

BDZK commented Jun 24, 2024

Hello,
Thanks for your replay. Meanwhile I was able to display the login form.
I just renamed 'example' by 'captive' (the name of the hotspot interface) in /etc/config/uspot.
And also i have commented the uam section in /etc/config/uhttpd.

But not i try to login i have this error in the log (logread -f):
user.err : radcli: rc_read_dictionary: rc_read_dictionary couldn't open dictionary /etc/radcli/dictionary: No such file or directory
I have checked in System/Software and libradcli is installed...

Can i get a dictionnary on line and paste in the /etc/radcli folder?

@f00b4r0
Copy link
Owner

f00b4r0 commented Jun 24, 2024

Please follow the instructions https://github.com/f00b4r0/uspot?tab=readme-ov-file#radcli

@BDZK
Copy link
Author

BDZK commented Jun 25, 2024

Now if i submit the form i have 'invalid credentials'.

logread -e uspot is giving me this:
Tue Jun 25 02:59:09 2024 daemon.err uhttpd[2558]: uspot: 10.1.8.44 - start radius flow
Tue Jun 25 02:59:26 2024 daemon.err uhttpd[2558]: uspot: 10.1.8.234 - invalid credentials
Tue Jun 25 02:59:26 2024 daemon.err uhttpd[2558]: uspot: 10.1.8.234 - start radius flow
Tue Jun 25 02:59:26 2024 daemon.err uhttpd[2558]: uspot: 10.1.8.234 - start radius flow

It seems that the form is not even submitting.

Because i check on the radius server and no auth request is present from the client...

@f00b4r0
Copy link
Owner

f00b4r0 commented Jun 25, 2024

Please provide all the requested data.

@BDZK
Copy link
Author

BDZK commented Jun 25, 2024

Here are the requested data :

  • Openwrt 23.05.3
  • logread -e uspot
    Tue Jun 25 09:14:20 2024 daemon.debug uspot: captive acct-on call
    Tue Jun 25 09:14:37 2024 daemon.err uhttpd[2590]: uspot: 10.1.8.44 - start credentials flow
    Tue Jun 25 09:14:37 2024 daemon.err uhttpd[2590]: uspot: 10.1.8.44 - start credentials flow
    Tue Jun 25 09:14:44 2024 daemon.err uhttpd[2590]: uspot: 10.1.8.44 - invalid credentials
    Tue Jun 25 09:14:44 2024 daemon.err uhttpd[2590]: uspot: 10.1.8.44 - start credentials flow
    Tue Jun 25 09:14:44 2024 daemon.err uhttpd[2590]: uspot: 10.1.8.44 - start credentials flow

Other files attached.

Thanks.
dhcp.txt
firewall.txt
httpd.txt
uspot.txt

@f00b4r0
Copy link
Owner

f00b4r0 commented Jun 25, 2024

Option nasmac is unset, I think that's the problem.

@BDZK
Copy link
Author

BDZK commented Jun 25, 2024

Still not working... I have set it with the mac of the captive interface but still not working

@f00b4r0
Copy link
Owner

f00b4r0 commented Jun 25, 2024

You either have a configuration error in uspot or a configuration error in your RADIUS server. With no further information there is very little I can do. You can try setting option debug '1' in the uspot interface configuration to expand further error messages from uspot

@f00b4r0 f00b4r0 added the invalid This doesn't seem right label Sep 17, 2024
@f00b4r0
Copy link
Owner

f00b4r0 commented Sep 17, 2024

Do you have further input to provide or has this issue been resolved for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants