infra/roles/jellyfin/templates/LDAP-Auth.xml.j2

18 lines
1.0 KiB
Django/Jinja

<?xml version="1.0" encoding="utf-8"?>
<PluginConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<LdapServer>{{ openldap_url }}</LdapServer>
<LdapBaseDn>{{ openldap_dc }}</LdapBaseDn>
<LdapPort>389</LdapPort>
<LdapSearchAttributes>uid, cn, mail, displayName</LdapSearchAttributes>
<LdapUsernameAttribute>uid</LdapUsernameAttribute>
<LdapSearchFilter>(&amp;(|(objectclass=inetOrgPerson))(|(memberof=cn=notflix,ou=groups,{{ openldap_dc }})))</LdapSearchFilter>
<LdapAdminFilter>(&amp;(|(objectclass=inetOrgPerson))(|(memberof=cn=admin,ou=groups,{{ openldap_dc }})))</LdapAdminFilter>
<LdapBindUser>cn=readonly,{{ openldap_dc }}</LdapBindUser>
<LdapBindPassword>{{ openldap_readonly_pass }}</LdapBindPassword>
<CreateUsersFromLdap>true</CreateUsersFromLdap>
<UseSsl>false</UseSsl>
<UseStartTls>false</UseStartTls>
<SkipSslVerify>true</SkipSslVerify>
<EnableCaseInsensitiveUsername>false</EnableCaseInsensitiveUsername>
</PluginConfiguration>