Skip to content

Commit

Permalink
fix: add self service portal entries to domain portal
Browse files Browse the repository at this point in the history
  • Loading branch information
m0wer committed Oct 22, 2024
1 parent e040bde commit 2457e69
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
31 changes: 27 additions & 4 deletions helm/stack-data-ums/data-files/default/41-selfservice-portal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@
{{ with .Values.stackDataContext }}



---
action: "create"
module: "portals/entry"
position: "cn=entry,cn=portals,cn=univention,{{ include "stack-data-ums.ldapBaseDn" $ }}"
properties:
name: "self-service-password-change"
icon: {{ $.Files.Get "data-files/default/selfservice-icons/passwordchange.svg" | b64enc | quote }}
activated: True
anonymous: False
linkTarget: "samewindow"
allowedGroups:
{{ toYaml .portaltileGroupUserStandard | indent 4 }}
displayName:
en_US: "Change your password"
de_DE: "Ihr Passwort ändern"
description:
en_US: "Change your password"
de_DE: "Ihr Passwort ändern"
link:
- - "en_US"
- "#/selfservice/passwordchange"

---
action: "create"
module: "portals/entry"
Expand Down Expand Up @@ -58,7 +81,7 @@ properties:
de_DE: "Kontozugang schützen"
link:
- - "en_US"
- '#/selfservice/protectaccount'
- "#/selfservice/protectaccount"
---
action: "create"
module: "portals/entry"
Expand Down Expand Up @@ -92,10 +115,9 @@ properties:
entries:
- "cn=self-service-protect-account,cn=entry,cn=portals,cn=univention,{{ include "stack-data-ums.ldapBaseDn" $ }}"
- "cn=self-service-password-forgotten,cn=entry,cn=portals,cn=univention,{{ include "stack-data-ums.ldapBaseDn" $ }}"

- "cn=self-service-password-change,cn=entry,cn=portals,cn=univention,{{ include "stack-data-ums.ldapBaseDn" $ }}"

---
# Create the portal with the categories above
action: "create"
module: "portals/portal"
position: "cn=portal,cn=portals,cn=univention,{{ include "stack-data-ums.ldapBaseDn" $ }}"
Expand All @@ -113,10 +135,11 @@ properties:
---
action: "ensure_list_contains"
module: "portals/portal"
position: "cn=self-service,cn=portal,cn=portals,cn=univention,{{ include "stack-data-ums.ldapBaseDn" $ }}"
position: "cn=domain,cn=portal,cn=portals,cn=univention,{{ include "stack-data-ums.ldapBaseDn" $ }}"
properties:
userLinks:
- "cn=self-service-protect-account,cn=entry,cn=portals,cn=univention,{{ include "stack-data-ums.ldapBaseDn" $ }}"
- "cn=self-service-password-forgotten,cn=entry,cn=portals,cn=univention,{{ include "stack-data-ums.ldapBaseDn" $ }}"
- "cn=self-service-password-change,cn=entry,cn=portals,cn=univention,{{ include "stack-data-ums.ldapBaseDn" $ }}"
- "cn=self-service-my-profile,cn=entry,cn=portals,cn=univention,{{ include "stack-data-ums.ldapBaseDn" $ }}"
{{ end }}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2457e69

Please sign in to comment.