Hi I'm using tvheadend since 2013.
Today i have updated my nas to a new ubuntu version and installed a new version of tvheadend.
But my old setup dont work anymore.
My setup looks like this:
tvheadend 4.0.8 installed from repository
Apache/2.4.10 installd from ubuntu repo
Samba4 4.3.0 self compiled
Now to the config that run perfect with tvheadend 3.4/3.9
I want to secure my tvheadend server via ldap and used a apache reverse proxy.
I have created a user with no name and password, so that all users, which are accepted by apache, can access tvheadend.
Now to the problem with tvheadend 4.0.8.
Apache ask me for a username and a password, afterwards tvheadend ask me for username and password too.
After pressing enter, for the user with no name, or entering admin login data, the browser returns me to the apache login, than again to the tvheadend login and so on.
I also installed(compiled) an old version of tvheadend(3.4) on the new setup, that works.
Has anyone any idea how I can get this setup with tvheadend Version 4.0.8 to run.
Many thanks in advance
<VirtualHost *:80>
ServerName www.tvheadend.foo.net
ServerAlias tvheadend.foo.net
ServerSignature Off
RedirectMatch ^/(.*)$ https://www.tvheadend.foo.net/$1
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerName www.tvheadend.foo.net
ServerAlias tvheadend.foo.net
ServerSignature Off
# Activate SSL
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/www.tvheadend.foo.net.crt
SSLCertificateKeyFile /etc/apache2/ssl/www.tvheadend.foo.net.key
ProxyRequests Off
<Proxy *>
AuthType Basic
AuthName "foo tvHeadend Login"
AuthBasicProvider ldap
AuthLDAPURL ldap://localhost:389/DC=foo,DC=net?sAMAccountName?sub?(objectClass=*)
AuthLDAPBindDN CN=ApacheUser,OU=ServiceUser,DC=foo,DC=net
AuthLDAPBindPassword "testme"
AuthLDAPGroupAttribute member
AuthLDAPGroupAttributeIsDN On
require ldap-group CN=tvHeadend,OU=Sicherheitsgruppen,DC=foo,DC=net
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:9981/
ProxyPassReverse / http://localost:9981/
ProxyPassReverseCookieDomain localhost www.tvheadend.foo.net
ProxyPreserveHost On
</VirtualHost>