action #36511
closedIt should be possible for admins to manage mailaccounts for other users
Description
For now users can only manage their own mailaccounts with cornaz (cornaz is now part of the invis-portal #29909). If the admin has to do this he needs the users password. ...not the best solution. We should make the mailaccount management possible for admins (global management) and users (just own accounts).
Updated by flacco over 4 years ago
- Due date set to 2021-02-28
Wäre schön, wenn wir hier mal anfangen würden.
Updated by ingogoeppert over 4 years ago
Yes, indeed. But you know yourself that tickets sometimes take a very long time until they get done ;-)
Updated by flacco over 4 years ago
The invis portal checks if an authenticated user is member of the group domain users or not. This should be the base for the new function. Or should we restrict this function on the administrator account?
Updated by ingogoeppert about 4 years ago
- Due date changed from 2021-02-28 to 2021-03-31
Updated by flacco almost 4 years ago
- Category set to Feature
- Status changed from New to Feedback
- Assignee changed from ingogoeppert to flacco
- Target version changed from Future to 14.3
- % Done changed from 0 to 60
Workarounds added:
- New Toolbox-Script "refreshfrc" tor rewrite .fetchmailrc added. It's possible to use this script via invis-portal or commandline.
- New Toolbox-Script "addmailaccount" to add external mailaccounts for a user via commandline.
This was much easier than adding this functionality to invis-Portal.
The question: Should we add an administration mode to manage mailaccounts via invis-Portal or fits these workarounds our needs?
Updated by flacco over 3 years ago
- Subject changed from It should be possible for admins to manage mailaccounts for other users with cornaz to It should be possible for admins to manage mailaccounts for other users
- % Done changed from 60 to 70
Mit dem neuen Toolbox-Script "changemacstate" ist es jetzt auf der Kommandozeile möglich den Mailabruf für definierte Benutzer zu aktivieren, oder deaktivieren.
Damit sind im Grunde alle Werkzeuge zur administrativen Verwaltung externer Mailkonten beisamen. Sie funktionieren derzeit allerdings nicht, wenn einem lokalen Benutzer mehr als ein externes Mailkonto zugewiesen ist.
Der Umgang mit mehreren Mailkonten muss noch getestet werden und macht ganz sicher noch ein paar Anpassungen an den Scripts erforderlich.
Updated by flacco over 3 years ago
- Related to action #98042: Release invis-Server 14.3 added
Updated by flacco over 3 years ago
- % Done changed from 70 to 80
Das Script "refreshfrc" kann jetzt auch damit umgehen, wenn ein Benutzer mehr als ein externes Email-Postfach besitzt.
Dabei bin ich auf zwei sehr schöne Moves in Sachen Shellscripting gestossen:
Mit csplit Dateien anhand von Mustern in mehrere Dateien zerlegen:
csplit -f $workdir/splitfile_ -z /$tmpfile /^dn:/ '{*}'
"csplit -f Muster-Zieldateien -z Quelldatei Trennmuster 'für jedes vorkommen wiederholen'"
Duplikate aus bash Arrays entfernen:
sauberesarray=($(echo "${unsauberesarray[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '))
Warum hab ich da nich früher mal genauer recherchiert, hätte mir viel Arbeit erspart.
Updated by flacco over 3 years ago
- % Done changed from 80 to 90
Das Script changemacstate kann jetzt auch damit umgehen, wenn ein User mehrere externe Postfächer besitzt.
Fehlen allenfalls noch ein paar Tests...
Updated by flacco over 3 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
Sieht gut aus. Job done.