owntone / owntone-server

Linux/FreeBSD DAAP (iTunes) and MPD media server with support for AirPlay 1 and 2 speakers (multiroom), Apple Remote (and compatibles), Chromecast, Spotify and internet radio.
https://owntone.github.io/owntone-server
GNU General Public License v2.0
2.01k stars 231 forks source link

Password Authentication Issue with Apple Music After Setting Library Password #1778

Open HJH0924 opened 4 days ago

HJH0924 commented 4 days ago

Hello OwnTone Team,

I have encountered an issue with the OwnTone server where the password authentication is not functioning as expected, particularly with Apple Music.

Environment:

Steps to Reproduce:

  1. I compiled the OwnTone server from source with the following steps:

    sudo apt-get update
    sudo apt-get install \
    build-essential git autotools-dev autoconf automake libtool gettext gawk \
    gperf bison flex libconfuse-dev libunistring-dev libsqlite3-dev \
    libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavutil-dev \
    libasound2-dev libxml2-dev libgcrypt20-dev libavahi-client-dev zlib1g-dev \
    libevent-dev libplist-dev libsodium-dev libjson-c-dev libwebsockets-dev \
    libcurl4-openssl-dev libprotobuf-c-dev -y
    git clone https://github.com/owntone/owntone-server.git 
    cd owntone-server
    autoreconf -i
    ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-install-user
    make
    sudo make install

    And then set a password in /etc/owntone.conf under the library section and started the OwnTone service:

    systemctl start owntone.service
  2. iTunes and Apple Music clients were able to connect to my OwnTone server without entering a password, even though a password was set.

  3. I also compiled the OwnTone server from a release package with the following steps:

    sudo apt-get update
    sudo apt-get install \
    build-essential git autotools-dev autoconf automake libtool gettext gawk \
    gperf bison flex libconfuse-dev libunistring-dev libsqlite3-dev \
    libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavutil-dev \
    libasound2-dev libxml2-dev libgcrypt20-dev libavahi-client-dev zlib1g-dev \
    libevent-dev libplist-dev libsodium-dev libjson-c-dev libwebsockets-dev \
    libcurl4-openssl-dev libprotobuf-c-dev -y
    wget https://github.com/owntone/owntone-server/releases/download/28.9/owntone-28.9.tar.xz 
    tar -xvf owntone-28.9.tar.xz
    cd owntone-28.9
    autoreconf -i
    ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-install-user
    make
    sudo make install

    And then set a password in /etc/owntone.conf under the library section and started the OwnTone service.

Results:

Expected Behavior:

Observed Behavior:

Additional Information:

I would appreciate any guidance or assistance in resolving this issue. Thank you for your time and support.

Best regards!

ejurgensen commented 4 days ago

Thanks for the report. I don't have a Mac, so it's going to be hard to debug. @hacketiwack can you reproduce this issue? Remember to set "trusted_networks" to something that won't permit password-less connection, e.g. "localhost" or "none".

hacketiwack commented 3 days ago

I will check that in a few days as I don't have access to my setup right now.