Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LDAP connection config #76

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions templates/CoreConfig.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,29 @@
<connector port="8446" clientAuth="false" _name="cert_https"/>
-->
<!-- Disable webtak and non-admin user interfaces -->
<connector port="8443" _name="https" enableWebtak="false" enableNonAdminUI="false" />
<connector port="8443" _name="https" enableWebtak="{{getenv "WEBTAK_ENABLE" "false"}}" enableNonAdminUI="false" />
</network>
<auth>
{{if getenv "LDAP_BIND_PASSWORD" ""}}
<auth default="ldap" x509groups="true" x509addAnonymous="false">
<File location="/opt/tak/data/UserAuthenticationFile.xml"/>
<ldap url="{{getenv "LDAP_URL" "ldap://openldap:1389"}}"
updateinterval="60"
userstring="uid={username},ou=users,dc=example,dc=org"
style="DS"
ldapSecurityType="simple"
serviceAccountDN="cn={{getenv "LDAP_BIND_USER" "admin"}},dc=example,dc=org"
serviceAccountCredential="{{getenv "LDAP_BIND_PASSWORD" ""}}"
groupBaseRDN="ou=groups,dc=example,dc=org"
groupObjectClass="groupOfNames"
groupNameExtractorRegex="(?:cn|CN)=(?:tak_)?(.+?),"
groupprefix="CN=tak_"
/>
</auth>
{{else}}
<auth x509groups="true" x509addAnonymous="false">
<File location="/opt/tak/data/UserAuthenticationFile.xml"/>
</auth>
{{end}}
<submission ignoreStaleMessages="false" validateXml="false"/>

<subscription reloadPersistent="false">
Expand Down
Empty file added updates/.keep
Empty file.