forked from jp-gouin/helm-openldap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SPSH-1044 (#5)
- Loading branch information
Showing
5 changed files
with
128 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
charts/dbildungs-iam-ldap/templates/configmap-customschema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,12 +53,12 @@ service: | |
# SourceRangesRestriction: true | ||
# enableLdapPort: false | ||
|
||
# enable this service block and disable the service one above, to make LDAP outside the cluster available | ||
# Note that only one namespace at a time can use this feature!! | ||
# service: | ||
# enableSslLdapPort: true | ||
# type: LoadBalancer | ||
# externalIp: true | ||
# enable this service block and disable the service one above, to make LDAP outside the cluster available | ||
# Note that only one namespace at a time can use this feature!! | ||
# service: | ||
# enableSslLdapPort: true | ||
# type: LoadBalancer | ||
# externalIp: true | ||
# SourceRangesRestriction: false | ||
|
||
|
||
|
@@ -95,17 +95,29 @@ pdb: | |
# Custom openldap schema files used to be used in addition to default schemas | ||
# Note that the supplied files are sorted by name and inserted into 'LDAP_EXTRA_SCHEMAS' env var | ||
# after chart default schemas, allowing you to control the loading sequence. | ||
# customSchemaFiles: | ||
# custom.ldif: |- | ||
# # custom schema | ||
customSchemaFiles: | ||
00-ucsmail.ldif: |- | ||
dn: cn=ucsMail,cn=schema,cn=config | ||
objectClass: olcSchemaConfig | ||
cn: ucsMail | ||
olcAttributeTypes: ( 1.3.6.1.4.1.10176.1010.1.1 NAME 'mailPrimaryAddress' DESC 'Primary mailaddresses for the user' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) | ||
olcAttributeTypes: ( 1.3.6.1.4.1.10176.1010.1.2 NAME 'mailAlternativeAddress' DESC 'Secondary (alias) mailaddresses for the same user' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) | ||
olcAttributeTypes: ( 1.3.6.1.4.1.10176.1010.1.3 NAME 'mailGlobalSpamFolder'DESC 'Move Spam to global spam folder instead of local spam folder' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) | ||
olcAttributeTypes: ( 1.3.6.1.4.1.10176.1010.1.47 NAME 'mailForwardAddress'DESC 'External mail addresses to forward the users emails to' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) | ||
olcAttributeTypes: ( 1.3.6.1.4.1.10176.1010.1.51 NAME 'mailForwardCopyToSelf' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{10} SINGLE-VALUE ) | ||
olcAttributeTypes: ( 1.3.6.1.4.1.10176.1010.1.60 NAME 'univentionMailHomeServer' DESC 'home server of users mailbox' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} SINGLE-VALUE ) | ||
olcAttributeTypes: ( 1.3.6.1.4.1.10176.1010.1.92 NAME 'univentionMailUserQuota' DESC 'Mailbox hard quota limit in MB' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) | ||
olcObjectClasses: ( 1.3.6.1.4.1.10176.1010.2.1 NAME 'univentionMail' DESC 'Univention Mail Preferences' SUP top AUXILIARY MUST uid MAY ( univentionMailHomeServer $ mailPrimaryAddress $ mailAlternativeAddress $ mailGlobalSpamFolder $ univentionMailUserQuota $ mailForwardAddress $ mailForwardCopyToSelf ) ) | ||
# anothercustom.ldif: |- | ||
# # another custom schema | ||
# # adjust the configuration script configmap-config-script to make sure schema is always loaded | ||
|
||
|
||
# Custom openldap configuration files used to override default settings | ||
# can not get loaded if TLS is required ldap_bind: Confidentiality required (13) additional info: TLS confidentiality required | ||
# DO NOT FORGET to put the Root Organisation object as it won't be created while using customLdifFiles | ||
# Files that chage the general config or create ACL are not allowed here, insufficient permissions, they get hendled via the dbildungs-iam-ldap-configuration secret | ||
# Files that change the general config or create ACL are not allowed here, insufficient permissions, they get hendled via the dbildungs-iam-ldap-configuration secret | ||
# Only considered once in the initial setup | ||
customLdifFiles: | ||
00-root.ldif: |- | ||
dn: dc=schule-sh,dc=de | ||
|
@@ -114,6 +126,68 @@ customLdifFiles: | |
objectClass: organization | ||
o: SPSH | ||
# First the apply.ldif gets applied if entry is not existend, then the entries in modify.ldif overwrite the entries | ||
customExtraLdifFiles: | ||
apply.ldif: |- | ||
dn: cn=lehrer,dc=schule-sh,dc=de | ||
cn: lehrer | ||
objectclass: groupOfUniqueNames | ||
objectclass: top | ||
uniquemember: | ||
dn: cn=schueler,dc=schule-sh,dc=de | ||
cn: schueler | ||
objectclass: groupOfUniqueNames | ||
objectclass: top | ||
uniquemember: | ||
dn: ou=oeffentlicheSchulen,dc=schule-sh,dc=de | ||
objectclass: organizationalUnit | ||
objectclass: top | ||
ou: oeffentlicheSchulen | ||
dn: ou=ersatzSchulen,dc=schule-sh,dc=de | ||
objectclass: organizationalUnit | ||
objectclass: top | ||
ou: ersatzSchulen | ||
dn: cn=mmusterschueler,ou=oeffentlicheSchulen,dc=schule-sh,dc=de | ||
uid: mmusterschueler | ||
cn: mmusterschueler | ||
givenname: Moritz | ||
objectclass: inetOrgPerson | ||
objectclass: univentionMail | ||
mailPrimaryAddress: [email protected] | ||
mailAlternativeAddress: [email protected] | ||
objectclass: top | ||
sn: Muster-Schueler | ||
dn: cn=ssuperadmin,ou=oeffentlicheSchulen,dc=schule-sh,dc=de | ||
uid: ssuperadmin | ||
cn: ssuperadmin | ||
givenname: Susi | ||
objectclass: inetOrgPerson | ||
objectclass: univentionMail | ||
mailPrimaryAddress: [email protected] | ||
mailAlternativeAddress: [email protected] | ||
objectclass: top | ||
sn: Superadmin | ||
modify.ldif: |- | ||
# Group members | ||
dn: cn=lehrer,dc=schule-sh,dc=de | ||
cn: lehrer | ||
objectclass: groupOfUniqueNames | ||
objectclass: top | ||
uniquemember: cn=ssuperadmin,ou=oeffentlicheSchulen,dc=schule-sh,dc=de | ||
dn: cn=schueler,dc=schule-sh,dc=de | ||
cn: schueler | ||
objectclass: groupOfUniqueNames | ||
objectclass: top | ||
uniquemember: cn=mmusterschueler,ou=oeffentlicheSchulen,dc=schule-sh,dc=de | ||
replicaCount: 1 | ||
|
||
# will have to work on this | ||
|
@@ -259,7 +333,7 @@ initSchema: | |
## need a secret with tls.crt, tls.key | ||
initTLSSecret: | ||
# adminldap, per default disabled only works with tls_enabled | ||
tls_enabled: false | ||
tls_enabled: false | ||
# tls_enabled: true # needs to get enabled if you want to make the service available to the outside | ||
# Note that only one namespace at a time can use this feature and that you need to copy a tls secret into the namespace, see Confluence for more information | ||
image: | ||
|