Skip to content

Commit

Permalink
try adding the schema ia env
Browse files Browse the repository at this point in the history
  • Loading branch information
aimee-889 committed Sep 27, 2024
1 parent 4a9abcc commit 91376f8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data:
# no sure why this sleep is needed again - but it is
sleep 10
# /bin/bash /script/02.sh
ldapapply -Y EXTERNAL -H ldapi:/// -f /script/schemas.ldif
# ldapapply -Y EXTERNAL -H ldapi:/// -f /script/ucsmail.ldif
# this script is needed so that Helm Chart is stable if persistence is enabled
Expand Down Expand Up @@ -74,7 +74,7 @@ data:
fi
schemas.ldif: |
ucsmail.ldif: |
# add custom schema
dn: cn=ucsMail,cn=schema,cn=config
objectClass: olcSchemaConfig
Expand Down
2 changes: 1 addition & 1 deletion charts/dbildungs-iam-ldap/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
fi
cp /tmp-init-scripts/01.sh /script/01.sh &&
cp /tmp-init-scripts/02.sh /script/02.sh &&
cp /tmp-init-scripts/schemas.ldif /script/schemas.ldif
# cp /tmp-init-scripts/ucsmail.ldif /opt/bitnami/openldap/etc/schema/ucsmail.ldif
chmod +x /script/01.sh
chmod +x /script/02.sh
{{- if .Values.global.existingSecret }}
Expand Down
16 changes: 13 additions & 3 deletions charts/dbildungs-iam-ldap/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,19 @@ 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:
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

Expand Down

0 comments on commit 91376f8

Please sign in to comment.