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

can't specify users in users.conf #74

Open
n1trux opened this issue Nov 1, 2019 · 2 comments
Open

can't specify users in users.conf #74

n1trux opened this issue Nov 1, 2019 · 2 comments

Comments

@n1trux
Copy link

n1trux commented Nov 1, 2019

I took the standard Dockerfile and made a docker-compose.yml with the following content:

version: "3"

services:
  uhub:
    image: uhub
    build: ./build/uhub
    volumes:
      - ./conf:/conf
    ports:
      - "411:411"
      - "1511:1511"

Then I made a uhub.conf:

server_port=411
server_bind_addr=any
server_alt_ports = 1511

# The maximum amount of users allowed on the hub.
max_users=100

# If 1, will show a "Powered by uHub/{VERSION}".
show_banner=1

# If enabled then operating system and cpu architecture is part of the banner.
show_banner_sys_info=1

# Allow only registered users on the hub if set to 1.
registered_users_only=1

# A server name and description.
hub_name=Test Hub
hub_description=Powered by uHub

# Set this to 0, and the hub will disconnect everyone
hub_enabled=1

# Access control list (user database)
file_acl=/conf/users.conf

And an ACL:

user_admin      testadm:11admin11

When I want to connect with EiskaltDC++, I get the following messages:

[20:07:54] <Test Hub> Powered by uhub/0.5.1-git-78a7039 on Linux/AMD64
[20:07:54] <Test Hub> Hub is for registered users only
[20:07:54] *  Hub is for registered users only 

What am I doing wrong?

@mimicmod
Copy link
Contributor

mimicmod commented Nov 1, 2019

users.conf is deprecated, try using auth simple plugin, which I think is not complete, or sqlite auth plugin

@n1trux
Copy link
Author

n1trux commented Nov 1, 2019

Then why on earth is the users.conf still used by default?

Will use SQLite.

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