Is this Nethserver module helpful to you?
Please consider donating to the author

Thank you kindly!

2019/03/04 11:32 · HF

Available for NS6 and NS7

Madsonic is a web-based media library and media streamer with jukebox functionality. Based on Java technology, Madsonic runs on most platforms, including Windows, Mac, Linux, OSX, and Unix variants.

If you have constrained bandwidth, you may set an upper limit for the bitrate of the music streams. Madsonic will then automatically resample the music to a suitable bitrate. In addition to being a streaming media server, Madsonic works very well as a local jukebox. The intuitive web interface, as well as search and index facilities, are optimized for efficient browsing through large media libraries.

Clients can connect via the built in website or with many other clients that support the Madsonic/Subsonic REST API.

Madsonic is open-source software licensed under GPL but you have to pay for the full version. Read More

Stephane de Labrusse at stephdl@de-labrusse.fr

First you need to install my repository, see how to do it

Then you can install the module

yum install nethserver-madsonic --enablerepo=stephdl

Go to https://YourIPorHostname/madsonic. The first login is 'admin', the password 'admin'

You have a thin panel to enable the service, to allow the access in a private or public mode an to allow users in the samba share of madsonic. This samba share is used to put media files in your server, admin is allowed by default, the guest access is forced if the samba AD (nethserver-dc) is not configured.

madsonic can act as a dlna server for your tv (only a example), for this, think to activate this service in the panel setting. An action is launched to retrieve the good dlna port and open it in the firewall at each service start, because the port is set randomly….why :'(

you have some db

# config show madsonic
madsonic=service
    MaxMemory=512      #maximum memory allowed (in MB)
    Name=madsonic      #determine the name of the web alias/samba share
    TCPPort=4040       #change the tcp port
    status=enabled     #enabled/disabled the web access
    webaccess=private  #allow in a public/private mode

after a change do

signal-event nethserver-madsonic-update

Madsonic supports authentication with LDAP.

Local OpenLDAP Account Provider

These settings were reported to be working on NethServer 7:

  • LDAP search filter: `(uid={0})`
  • LDAP group searchBase: `ou=groups`
  • LDAP group filter: `(memberuid={0})`
  • LDAP group role attribute: `ou`
  • LDAP manager DN: `cn=ldapservice,dc=directory,dc=nh`
  • Password: the LDAP bind password thrown by `account-provider-test dump` command, or reported on NethServer server-manager.
  • Automatically create users in Madsonic: checked

LDAP settings can be tweaked to apply more restrictive filters.


Local AD Account Provider

These settings were reported to be working on NethServer 7:

  • LDAP URL: `ldap://your_server_or_nsdc_address:389/dc=domain,dc=tld` (Replace `your_server_or_nsdc_address`, `domain` and `tld` with yours).
  • LDAP search filter: `(sAMAccountName={0})`
  • LDAP group searchBase: `cn=Users`
  • LDAP group filter: `(member={0})`
  • LDAP group role attribute: `cn`
  • LDAP manager DN: `DOMAIN\SERVER$` (bindDN obtained from `account-provider-test dump` command).
  • Password: the LDAP bind password thrown by `account-provider-test dump` command.
  • Automatically create users in Madsonic: checked

LDAP settings can be tweaked to apply more restrictive filters.

yum remove madsonic nethserver-madsonic
rm -rf /var/madsonic
yum install nethserver-madsonic

if needed you can restart/reconfigure madsonic by

signal-event nethserver-madsonic-update

Please raise Issues on github

  • madsonic.txt
  • Last modified: 2019/03/04 11:51
  • by HF