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

Authentication not working after update #7

Closed
jerheij opened this issue Mar 19, 2019 · 8 comments
Closed

Authentication not working after update #7

jerheij opened this issue Mar 19, 2019 · 8 comments
Assignees

Comments

@jerheij
Copy link

jerheij commented Mar 19, 2019

First of all; thanks for your freeradius container, I've been using it as authentication issue for a while and it has been working great.

Unfortunately after updating from container version 1.3 to latest the authentication doesn't work any more. They all result in failures. I've been using this test as a final test: link.

With version tag 1.3 it works without issues but with latest it results in failures. Do you have any clue what the issue could be? I already compared the versions of freeradius in the container and them seem identical.

I only use a basic docker-compose config and an external database:

version: '3.2'

services:
  freeradius:
    container_name: radius
    image: "2stacks/freeradius:latest"
    ports:
      - "<IP>:1812:1812/udp"
    environment:
      - DB_NAME=radius_docker
      - DB_HOST=<db IP>
      - DB_USER=<db_user>
      - DB_PASS=<db_pass>
      - DB_PORT=3306
      - RADIUS_KEY=<random key>
      - RAD_CLIENTS=*
      - RAD_DEBUG=yes
    restart: always
    networks:
      infra:
        ipv4_address: <IP>

networks:
  infra:
    external: true
@2stacks
Copy link
Owner

2stacks commented Mar 19, 2019

Sorry about the issue, I'm glad you've found it useful. In the latest version I removed eap to cut back on some of the dependencies in my envirionment. You can see the full change list since v1.3 here v1.3...master. In hind site that may not have been a great idea. Version 1.4 also includes the latest Freeradius 3 raddb and a new mysql schema that supports IPv6. It should be mostly compatible with your existing database but at least one other user had issues with accounting because of a new field 'groupname' in the schema. So long as you are using an older version of raddb you shouln't have this issue.

I'll add back eap and push an update. I also made changes to how the container waits for the mysql service to start that I'm not positive I like. You may or may not see issues with that. I'll try to push a commit later today.

@2stacks 2stacks self-assigned this Mar 19, 2019
@jerheij
Copy link
Author

jerheij commented Mar 19, 2019

Thanks for your quick reply! I am running my MySQL server on the Docker host itself, so that dependency can't be the issue.

My setup is indeed depending on the EAP compatibility, authentication still works if I use a Windows tool that puts everything on automatic. Is it maybe an idea to have EAP disabled by default and just an option in the Docker startup (like EAP=enabled)? Or would that make the start of the container to complicated/timely?

@2stacks
Copy link
Owner

2stacks commented Mar 19, 2019 via email

@jerheij
Copy link
Author

jerheij commented Mar 19, 2019

That would be awesome! :)

2stacks added a commit that referenced this issue Mar 20, 2019
added Bourne Shell version of wait-for.sh.
fixes #7
@2stacks
Copy link
Owner

2stacks commented Mar 20, 2019 via email

@jerheij
Copy link
Author

jerheij commented Mar 20, 2019

EAP authentication seems to work fine again when using tag 1.4.1!

@2stacks
Copy link
Owner

2stacks commented Mar 20, 2019 via email

@2stacks
Copy link
Owner

2stacks commented Mar 20, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants