Coder Social home page Coder Social logo

Comments (6)

aler9 avatar aler9 commented on June 11, 2024 1

@carlo161 after some investigation with the configuration you provided, it turned out that when ips is not set explicitly, the default value from the default configuration is loaded, which in case of your second entry is 127.0.0.1, and this prevents access to any machine other than localhost.

This is fixed by #3316.

In the meanwhile you can fix your issue by using explicit ips in the configuration:

authInternalUsers:
- user: any
  pass:
  ips: []
  permissions:
  - action: publish
- user: carlo
  pass: carlo
  ips: []
  permissions:
  - action: read

Next time open a dedicated issue.

from mediamtx.

timerlan avatar timerlan commented on June 11, 2024

I have same problem. In version 1.5.1 working correctly.

from mediamtx.

geeuk avatar geeuk commented on June 11, 2024

Thank you @timerlan I had revert to 1.5.1..

from mediamtx.

aler9 avatar aler9 commented on June 11, 2024

Hello, readUser and readPass were deprecated in v1.6.0, now there's a global authentication system that you can tune by editing the authInternalUsers key in the configuration.

More informations are in the configuration file.

from mediamtx.

carlo161 avatar carlo161 commented on June 11, 2024

Hello,
thanks @aler9, I tried to configure it but I cannot authenticate, my settings are:

authInternalUsers:
- user: any
  pass:
  permissions:
  - action: publish
- user: carlo
  pass: carlo
  permissions:
  - action: read

I can publish but every read attempt failed. I also tried with sha256 with the same outcome.

from mediamtx.

carlo161 avatar carlo161 commented on June 11, 2024

Thanks, I installed version 1.8.1 with the #3316 and I specify explicitly the ips in the yaml file.

from mediamtx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.