Hello, thank you for your reply @kevo!
I actually searched the forum quite a bit before submitting my question, nevertheless I might have looked for the wrong keywords, so help me out if I overlooked something.
Sadly, the behaviour I described didn’t change very much at all after updating to 5.0-2.
It seems self-service is kind of broken in 5.0:
on the upper-right-hand-menu (“burger-menu”) there are options like “Protect your account” and “My Profile” despite them clearly being disabled via the corresponding ucr-variables:
root@machine:~# ucr search --brief self-service | grep enabled
self-service/web/enabled: yes
umc/self-service/account-deregistration/enabled: false
umc/self-service/account-registration/backend/enabled: false
umc/self-service/account-registration/frontend/enabled: false
umc/self-service/account-verification/backend/enabled: false
umc/self-service/account-verification/frontend/enabled: false
umc/self-service/enabled: yes
umc/self-service/invitation/enabled: no
umc/self-service/passwordchange/frontend/enabled: no
umc/self-service/passwordreset/backend/enabled: yes
umc/self-service/passwordreset/email/enabled: yes
umc/self-service/passwordreset/external/enabled: no
umc/self-service/passwordreset/frontend/enabled: yes
umc/self-service/passwordreset/sms/enabled: no
umc/self-service/profiledata/enabled: false
umc/self-service/protect-account/backend/enabled: false
umc/self-service/protect-account/frontend/enabled: no
umc/self-service/service-specific-passwords/backend/enabled: false
If there is a misunderstanding on my part, feel free to correct me.
(it used to work like that…)
Anyway I dug around in the dark a bit more and came to the conclusion that the generated link is teh culprit.
The correct URL should be:
https://machine.domain/univention/self-service/#page=newpassword&token=VERRYS3CR3TT0KEN&username=myself
But the link generated in the mail actually is:
https://machine.domain/univention/selfservice/#/selfservice/newpassword/?token=VERRYS3CRETT0KEN&username=myself
Since the customer needs this function for his day-to-day-business here’s my hotfix:
root@machine:/usr/lib/python3/dist-packages/univention/management/console/modules/passwordreset/sending# diff send_email.py~ send_email.py
108,109c108,109
< 'link': "https://{fqdn}/univention/selfservice/#/selfservice/newpassword/".format(fqdn=frontend_server),
< 'tokenlink': "https://{fqdn}/univention/selfservice/#/selfservice/newpassword/?token={token}&username={username}".format(fqdn=frontend_server, username=quote(self.data["username"]), token=quote(self.data["token"]))
---
> 'link': "https://{fqdn}/univention/self-service/#page=newpassword".format(fqdn=frontend_server),
> 'tokenlink': "https://{fqdn}/univention/self-service/#page=newpassword&token={token}&username={username}".format(fqdn=frontend_server, username=quote(self.data["username"]), token=quote(self.data["token"]))
Univention, please fix soonish.
(am I really the only eskimo to use self-service?)
Kind Regards,
Werner